diff options
Diffstat (limited to 'NvCloth/GenerateProjectsIOS.sh')
| -rw-r--r-- | NvCloth/GenerateProjectsIOS.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/NvCloth/GenerateProjectsIOS.sh b/NvCloth/GenerateProjectsIOS.sh new file mode 100644 index 0000000..aebcb18 --- /dev/null +++ b/NvCloth/GenerateProjectsIOS.sh @@ -0,0 +1,36 @@ +#!/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" + + + +# Install cmake using packman +export PACKMAN="./scripts/packman/packman.sh" +source $PACKMAN pull -p mac "./scripts/packman/packages/cmake.packman.xml" || exit 1 +export CMAKE="$PM_cmake_PATH/bin/cmake" + + +# Cuda isn't supported on ios +export USE_CUDA=0 + + +# Generate projects here + +rm -r -f compiler/ios-cmake/ +mkdir compiler/ios-cmake/ +cd compiler/ios-cmake/ +$CMAKE ../cmake/ios -G Xcode -DCMAKE_TOOLCHAIN_FILE=$GW_DEPS_ROOT/sw/physx/tools/CMakeModules/ios/ios.toolchain.cmake -DTARGET_BUILD_PLATFORM=ios -DCMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET="8.0" -DNV_CLOTH_ENABLE_CUDA=$USE_CUDA -DUSE_CUDA=$USE_CUDA -DPX_GENERATE_GPU_PROJECTS=0 -DPX_OUTPUT_DLL_DIR=$PX_OUTPUT_ROOT/bin/ios-cmake -DPX_OUTPUT_LIB_DIR=$PX_OUTPUT_ROOT/lib/ios-cmake -DPX_OUTPUT_EXE_DIR=$PX_OUTPUT_ROOT/bin/ios-cmake || exit 1 +cd ../../ + + |