diff options
| author | Marijn Tamis <[email protected]> | 2018-05-03 18:22:48 +0200 |
|---|---|---|
| committer | Marijn Tamis <[email protected]> | 2018-05-03 18:22:48 +0200 |
| commit | ca32c59a58d37c1822e185a2d5f3d0d3e8943593 (patch) | |
| tree | b06b9eec03f34344ef8fc31aa147b2714d3962ee /NvCloth/BuildProjectsIOS.sh | |
| parent | Forced rename of platform folders in cmake dir. Git didn't pick this up before. (diff) | |
| download | nvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.tar.xz nvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.zip | |
NvCloth 1.1.4 Release. (24070740)
Diffstat (limited to 'NvCloth/BuildProjectsIOS.sh')
| -rw-r--r-- | NvCloth/BuildProjectsIOS.sh | 31 |
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 ../../ + |