- echo.\r
- echo !!! ERROR !!! The BaseTools Package was not found !!!\r
- echo.\r
- echo Set the system environment variable, EDK_TOOLS_PATH to the BaseTools,\r
- echo For example,\r
- echo set EDK_TOOLS_PATH=C:\MyTools\BaseTools\r
- echo The setup script, toolsetup.bat must reside in this folder.\r
- echo.\r
- @goto end\r
+ @echo.\r
+ @echo !!! ERROR !!! The BaseTools Package was not found !!!\r
+ @echo.\r
+ @echo Set the system environment variable, EDK_TOOLS_PATH to the BaseTools,\r
+ @echo For example,\r
+ @echo set EDK_TOOLS_PATH=C:\MyTools\BaseTools\r
+ @echo The setup script, toolsetup.bat must reside in this folder.\r
+ @echo.\r
+ goto end\r
+\r
+:check_NASM\r
+if not defined NASM_PREFIX (\r
+ @echo.\r
+ @echo !!! WARNING !!! NASM_PREFIX environment variable is not set\r
+ @if exist "C:\nasm\nasm.exe" @set "NASM_PREFIX=C:\nasm\"\r
+ @if exist "C:\nasm\nasm.exe" @echo Found nasm.exe, setting the environment variable to C:\nasm\\r
+ @if not exist "C:\nasm\nasm.exe" echo Attempting to build modules that require NASM will fail.\r
+)\r
+\r
+:check_CLANGPDB\r
+@REM In Windows, set CLANG_HOST_BIN=n to use nmake command\r
+@set CLANG_HOST_BIN=n\r
+if not defined CLANG_BIN (\r
+ @echo.\r
+ @echo !!! WARNING !!! CLANG_BIN environment variable is not set\r
+ @if exist "C:\Program Files\LLVM\bin\clang.exe" (\r
+ @set "CLANG_BIN=C:\Program Files\LLVM\bin\"\r
+ @echo Found LLVM, setting CLANG_BIN environment variable to C:\Program Files\LLVM\bin\\r
+ )\r
+)\r