diff options
| author | Marijn Tamis <[email protected]> | 2018-09-12 14:12:47 +0200 |
|---|---|---|
| committer | Marijn Tamis <[email protected]> | 2018-09-12 14:12:47 +0200 |
| commit | 7bceea80d4a04649f495f4f4331d7e3bdcdb05ca (patch) | |
| tree | 824767cccf7b516a8c0b32467c6314eaa802f58d /NvCloth/Tools/AuthoringLibrary/CmakeGenerateProjects.bat | |
| parent | Added missing GenerateProjectsIOS.sh file (diff) | |
| download | nvcloth-7bceea80d4a04649f495f4f4331d7e3bdcdb05ca.tar.xz nvcloth-7bceea80d4a04649f495f4f4331d7e3bdcdb05ca.zip | |
1.1.5 Release (24934621)
Diffstat (limited to 'NvCloth/Tools/AuthoringLibrary/CmakeGenerateProjects.bat')
| -rw-r--r-- | NvCloth/Tools/AuthoringLibrary/CmakeGenerateProjects.bat | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/NvCloth/Tools/AuthoringLibrary/CmakeGenerateProjects.bat b/NvCloth/Tools/AuthoringLibrary/CmakeGenerateProjects.bat new file mode 100644 index 0000000..e3a297c --- /dev/null +++ b/NvCloth/Tools/AuthoringLibrary/CmakeGenerateProjects.bat @@ -0,0 +1,37 @@ +CD /D %~dp0 +echo "Note: You need to run this with admin rights for the first time to set GW_DEPS_ROOT globally." +call "../../scripts/locate_gw_root.bat" GW_DEPS_ROOT_F +@echo on +setx GW_DEPS_ROOT "%GW_DEPS_ROOT_F% +echo GW_DEPS_ROOT = %GW_DEPS_ROOT% + +REM Install cmake using packman +set PACKMAN=call ../../scripts/packman/packman.cmd +%PACKMAN% pull -p windows "../../scripts/packman/packages/cmake.packman.xml" +IF %ERRORLEVEL% NEQ 0 ( + set EXIT_CODE=%ERRORLEVEL% + goto End +) +set CMAKE=%PM_cmake_PATH%/bin/cmake.exe + +set PX_OUTPUT_ROOT=%~dp0 + +set OUTPUT_ROOT=%~dp0 +set AUTHORINGLIBRARY_ROOT_DIR=%~dp0 + + +rmdir /s /q compiler\vc14win64-cmake\ +mkdir compiler\vc14win64-cmake\ +pushd compiler\vc14win64-cmake\ +%CMAKE% ..\.. -G "Visual Studio 14 2015" -Ax64 -DTARGET_BUILD_PLATFORM=windows -DSTATIC_WINCRT=0 -DBL_DLL_OUTPUT_DIR=%OUTPUT_ROOT%\bin\vc14win64-cmake -DBL_LIB_OUTPUT_DIR=%OUTPUT_ROOT%\lib\vc14win64-cmake -DBL_EXE_OUTPUT_DIR=%OUTPUT_ROOT%\bin\vc14win64-cmake + +popd + +rmdir /s /q compiler\vc14win32-cmake\ +mkdir compiler\vc14win32-cmake\ +pushd compiler\vc14win32-cmake\ +%CMAKE% ..\.. -G "Visual Studio 14 2015" -AWin32 -DTARGET_BUILD_PLATFORM=windows -DSTATIC_WINCRT=0 -DBL_DLL_OUTPUT_DIR=%OUTPUT_ROOT%\bin\vc14win32-cmake -DBL_LIB_OUTPUT_DIR=%OUTPUT_ROOT%\lib\vc14win32-cmake -DBL_EXE_OUTPUT_DIR=%OUTPUT_ROOT%\bin\vc14win32-cmake + +popd + +pause |