aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/BuildProjectsIOS.sh
diff options
context:
space:
mode:
Diffstat (limited to 'NvCloth/BuildProjectsIOS.sh')
-rw-r--r--NvCloth/BuildProjectsIOS.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/NvCloth/BuildProjectsIOS.sh b/NvCloth/BuildProjectsIOS.sh
new file mode 100644
index 0000000..aa6bca2
--- /dev/null
+++ b/NvCloth/BuildProjectsIOS.sh
@@ -0,0 +1,31 @@
+#!/usr/bin/env bash
+
+# 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"
+
+
+# Build projects here
+cd compiler/ios-cmake/
+$CMAKE --build . --target ALL_BUILD --clean-first --config release -- -parallelizeTargets -jobs 5 || exit 1
+cd ../../
+
+cd compiler/ios-cmake/
+$CMAKE --build . --target ALL_BUILD --clean-first --config debug -- -parallelizeTargets -jobs 5 || exit 1
+cd ../../
+