diff options
| author | mtamis <[email protected]> | 2017-02-15 16:06:25 +0100 |
|---|---|---|
| committer | mtamis <[email protected]> | 2017-02-15 16:06:25 +0100 |
| commit | 85305930aeeb1d513e23522bd91f29ba81aa6d14 (patch) | |
| tree | 45f1bb20a45a300d1fef107e436cac95602a0e57 /NvCloth/GenerateProjectsLinux.sh | |
| download | nvcloth-85305930aeeb1d513e23522bd91f29ba81aa6d14.tar.xz nvcloth-85305930aeeb1d513e23522bd91f29ba81aa6d14.zip | |
NvCloth library v1.0.0
Diffstat (limited to 'NvCloth/GenerateProjectsLinux.sh')
| -rw-r--r-- | NvCloth/GenerateProjectsLinux.sh | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/NvCloth/GenerateProjectsLinux.sh b/NvCloth/GenerateProjectsLinux.sh new file mode 100644 index 0000000..e34e51f --- /dev/null +++ b/NvCloth/GenerateProjectsLinux.sh @@ -0,0 +1,41 @@ +#!/bin/sh +x + +# Make sure the various variables that we need are set + +export GW_DEPS_ROOT="$PWD""/../../../../../" + +if [ -e $PWD"/../Externals/CMakeModules" ]; then + export GW_DEPS_ROOT="$PWD""/../" +fi + +[ -z "$GW_DEPS_ROOT" ] && echo "GW_DEPS_ROOT not defined." && exit 1; + + +export PX_OUTPUT_ROOT="$PWD" + + +# Generate projects here + +rm -r -f compiler/linux64-debug-cmake/ +mkdir compiler/linux64-debug-cmake/ +cd compiler/linux64-debug-cmake/ +cmake ../cmake/Linux -G "Unix Makefiles" -DTARGET_BUILD_PLATFORM=Linux -DCMAKE_BUILD_TYPE=debug -DPX_GENERATE_GPU_PROJECTS=0 -DPX_OUTPUT_DLL_DIR=$PX_OUTPUT_ROOT/bin/linux64-cmake -DPX_OUTPUT_LIB_DIR=$PX_OUTPUT_ROOT/lib/linux64-cmake -DPX_OUTPUT_EXE_DIR=$PX_OUTPUT_ROOT/bin/linux64-cmake +cd ../../ + +rm -r -f compiler/linux64-checked-cmake/ +mkdir compiler/linux64-checked-cmake/ +cd compiler/linux64-checked-cmake/ +cmake ../cmake/Linux -G "Unix Makefiles" -DTARGET_BUILD_PLATFORM=Linux -DCMAKE_BUILD_TYPE=checked -DPX_GENERATE_GPU_PROJECTS=0 -DPX_OUTPUT_DLL_DIR=$PX_OUTPUT_ROOT/bin/linux64-cmake -DPX_OUTPUT_LIB_DIR=$PX_OUTPUT_ROOT/lib/linux64-cmake -DPX_OUTPUT_EXE_DIR=$PX_OUTPUT_ROOT/bin/linux64-cmake +cd ../../ + +rm -r -f compiler/linux64-profile-cmake/ +mkdir compiler/linux64-profile-cmake/ +cd compiler/linux64-profile-cmake/ +cmake ../cmake/Linux -G "Unix Makefiles" -DTARGET_BUILD_PLATFORM=Linux -DCMAKE_BUILD_TYPE=profile -DPX_GENERATE_GPU_PROJECTS=0 -DPX_OUTPUT_DLL_DIR=$PX_OUTPUT_ROOT/bin/linux64-cmake -DPX_OUTPUT_LIB_DIR=$PX_OUTPUT_ROOT/lib/linux64-cmake -DPX_OUTPUT_EXE_DIR=$PX_OUTPUT_ROOT/bin/linux64-cmake +cd ../../ + +rm -r -f compiler/linux64-release-cmake/ +mkdir compiler/linux64-release-cmake/ +cd compiler/linux64-release-cmake/ +cmake ../cmake/Linux -G "Unix Makefiles" -DTARGET_BUILD_PLATFORM=Linux -DCMAKE_BUILD_TYPE=release -DPX_GENERATE_GPU_PROJECTS=0 -DPX_OUTPUT_DLL_DIR=$PX_OUTPUT_ROOT/bin/linux64-cmake -DPX_OUTPUT_LIB_DIR=$PX_OUTPUT_ROOT/lib/linux64-cmake -DPX_OUTPUT_EXE_DIR=$PX_OUTPUT_ROOT/bin/linux64-cmake +cd ../../
\ No newline at end of file |