Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.5 KiB

  1. @echo off
  2. REM ** Pick a target platform.
  3. REM **
  4. REM ** First see if they requested something specifically,
  5. REM ** next try the Platform SDK cpu var, then default to
  6. REM ** the processor architecture of the host.
  7. if "%1" == "amd64" Goto x64_Target
  8. if "%1" == "Amd64" Goto x64_Target
  9. if "%1" == "AMD64" Goto x64_Target
  10. if "%1" == "x86" Goto x86_Target
  11. if "%1" == "X86" Goto x86_Target
  12. if "%1" == "i386" Goto x86_Target
  13. if "%1" == "I386" Goto x86_Target
  14. if "%CPU%" == "AMD64" Goto x64_Target
  15. if "%CPU%" == "i386" Goto x86_Target
  16. if "%PROCESSOR_ARCHITECTURE%" == "AMD64" Goto x64_Target
  17. if "%PROCESSOR_ARCHITECTURE%" == "x86" Goto x86_Target
  18. echo Could not detect target from command-line, CPU, or PROCESSOR_ARCHITECTURE, exiting ...
  19. Goto Exit
  20. :x64_Target
  21. Set Lib=%DXSDK_DIR%Lib\x64;%Lib%
  22. Set Include=%DXSDK_DIR%Include;%Include%
  23. echo Dx x64 target enviroment is now enabled.
  24. Goto Host
  25. :x86_Target
  26. Set Lib=%DXSDK_DIR%Lib\x86;%Lib%
  27. Set Include=%DXSDK_DIR%Include;%Include%
  28. echo Dx x86 target enviroment is now enabled.
  29. Goto Host
  30. :Host
  31. REM ** Pick a host platform based on processor architecture.
  32. if "%PROCESSOR_ARCHITECTURE%" == "AMD64" Goto x64_Host
  33. if "%PROCESSOR_ARCHITECTURE%" == "x86" Goto x86_Host
  34. echo Could not detect host from PROCESSOR_ARCHITECTURE, exiting ...
  35. goto Exit
  36. :x86_Host
  37. Set Path=%DXSDK_DIR%Utilities\Bin\x86;%Path%
  38. echo Dx x86 host enviroment is now enabled.
  39. Goto Exit
  40. :x64_Host
  41. Set Path=%DXSDK_DIR%Utilities\Bin\x64;%DXSDK_DIR%Utilities\Bin\x86;%Path%
  42. echo Dx x64 host enviroment is now enabled.
  43. Goto Exit
  44. :Exit