aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/BuildProjectsOsx.sh
blob: e25cffc1ed7ab123af1952888ba35b78954faf8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash

# Make sure the various variables that we need are set

export GW_DEPS_ROOT="$PWD""/../"

[ -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/osx64-cmake/
$CMAKE --build . --target ALL_BUILD --clean-first --config release -- -parallelizeTargets -jobs 5 || exit 1
cd ../../

cd compiler/osx64-cmake/
$CMAKE --build . --target ALL_BUILD --clean-first --config debug -- -parallelizeTargets -jobs 5 || exit 1
cd ../../