aboutsummaryrefslogtreecommitdiff
path: root/PxShared/GenerateProjects.bat
diff options
context:
space:
mode:
Diffstat (limited to 'PxShared/GenerateProjects.bat')
-rw-r--r--PxShared/GenerateProjects.bat49
1 files changed, 49 insertions, 0 deletions
diff --git a/PxShared/GenerateProjects.bat b/PxShared/GenerateProjects.bat
new file mode 100644
index 0000000..7924d3f
--- /dev/null
+++ b/PxShared/GenerateProjects.bat
@@ -0,0 +1,49 @@
+@echo off
+
+REM Make sure the various variables that we need are set
+
+IF NOT DEFINED GW_DEPS_ROOT GOTO GW_DEPS_ROOT_UNDEFINED
+
+IF NOT DEFINED BOOST_ROOT GOTO BOOST_ROOT_UNDEFINED
+
+IF NOT DEFINED CUDA_BIN_PATH GOTO CUDA_ROOT_UNDEFINED
+
+IF EXIST GW_DEPS_ROOT\CMakeModules (
+ set CMAKE_MODULE_PATH=%GW_DEPS_ROOT%\CMakeModules
+) ELSE (
+ set CMAKE_MODULE_PATH=%GW_DEPS_ROOT%\sw\physx\tools\CMakeModules
+)
+
+REM Generate projects here
+
+rmdir /s /q compiler\vc12win32-cmake\
+mkdir compiler\vc12win32-cmake\
+pushd compiler\vc12win32-cmake\
+cmake ..\cmake\windows -G "Visual Studio 12 2013" -AWin32 -DTARGET_BUILD_PLATFORM=windows
+popd
+
+rmdir /s /q compiler\vc12win64-cmake\
+mkdir compiler\vc12win64-cmake\
+pushd compiler\vc12win64-cmake\
+cmake ..\cmake\windows -G "Visual Studio 12 2013" -Ax64 -DTARGET_BUILD_PLATFORM=windows
+popd
+
+popd
+
+GOTO :End
+
+:GW_DEPS_ROOT_UNDEFINED
+ECHO GW_DEPS_ROOT has to be defined, pointing to the root of the dependency tree.
+PAUSE
+GOTO END
+
+:BOOST_ROOT_UNDEFINED
+ECHO BOOST_ROOT has to be defined, pointing to the root of your local Boost install.
+PAUSE
+GOTO END
+
+:CUDA_ROOT_UNDEFINED
+ECHO CUDA_BIN_PATH has to be defined, pointing to the bin folder of your local CUDA install.
+PAUSE
+
+:End