-if not defined VCINSTALLDIR (\r
- if defined VS140COMNTOOLS (\r
- call "%VS140COMNTOOLS%\vsvars32.bat"\r
- ) else (\r
- 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
- )\r
+:SetEdkToolsPath\r
+if %WORKSPACE:~-1% EQU \ (\r
+ @set EDK_BASETOOLS=%WORKSPACE%BaseTools\r
+) else (\r
+ @set EDK_BASETOOLS=%WORKSPACE%\BaseTools\r
+)\r
+if exist %EDK_BASETOOLS% (\r
+ set EDK_TOOLS_PATH=%EDK_BASETOOLS%\r
+ set EDK_BASETOOLS=\r
+) else (\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