- if defined VS120COMNTOOLS (\r
- call "%VS120COMNTOOLS%\vsvars32.bat"\r
- ) else ( \r
- if defined VS110COMNTOOLS (\r
- call "%VS110COMNTOOLS%\vsvars32.bat"\r
- ) else (\r
- if defined VS100COMNTOOLS (\r
- call "%VS100COMNTOOLS%\vsvars32.bat"\r
- ) else (\r
- if defined VS90COMNTOOLS (\r
- call "%VS90COMNTOOLS%\vsvars32.bat"\r
- ) else (\r
- if defined VS80COMNTOOLS (\r
- call "%VS80COMNTOOLS%\vsvars32.bat"\r
- ) else (\r
- if defined VS71COMNTOOLS (\r
- call "%VS71COMNTOOLS%\vsvars32.bat"\r
- ) else (\r
- echo.\r
- echo !!! WARNING !!! Cannot find Visual Studio !!!\r
- echo.\r
- )\r
- )\r
- )\r
+ if defined PACKAGES_PATH (\r
+ for %%i IN (%PACKAGES_PATH%) DO (\r
+ if exist %%~fi\BaseTools (\r
+ set EDK_TOOLS_PATH=%%~fi\BaseTools\r
+ goto checkNt32Flag\r