2
0

prepare_solution_win.bat 783 B

12345678910111213141516171819202122232425262728293031323334
  1. @ECHO OFF
  2. REM
  3. REM Copyright (c) Contributors to the Open 3D Engine Project.
  4. REM For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. REM
  6. REM SPDX-License-Identifier: Apache-2.0 OR MIT
  7. REM
  8. set platform=win
  9. set architecture=x64
  10. set generator="Visual Studio 17 2022"
  11. set curr_dir=%~dp0
  12. set src_path=%curr_dir%\src
  13. set build_path=%curr_dir%\build\%platform%_%architecture%
  14. set cmake_exe=cmake
  15. if not exist "%build_path%" mkdir "%build_path%"
  16. cd "%build_path%" || goto :error
  17. REM ----------------------------------
  18. REM Generate AZSLc project
  19. cd "%build_path%"
  20. %cmake_exe% -G %generator% "%src_path%" || goto :error
  21. if [%1] == [] pause
  22. goto :EOF
  23. :error
  24. @echo Failed to prepare solution :(
  25. cd "%curr_dir%"
  26. if [%1] == [] pause
  27. exit /b 1