mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 18:31:59 -05:00
build macOS with make instead of ninja
This commit is contained in:
parent
db99a90d15
commit
b726177ea7
1 changed files with 15 additions and 2 deletions
|
@ -33,9 +33,22 @@ else
|
|||
echo -e "\033[0;36mBuilding OpenRCT2...\033[0m"
|
||||
mkdir -p bin && cd bin
|
||||
export DESTDIR=install
|
||||
cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=/usr "$@"
|
||||
|
||||
# macOS runners do not have Ninja installed by default
|
||||
if [[ $(uname) == "Darwin" ]]; then
|
||||
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local "$@"
|
||||
else
|
||||
cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=/usr "$@"
|
||||
fi
|
||||
|
||||
if [[ "$TESTPAINT" == "true" ]]; then
|
||||
testpaint_target=testpaint
|
||||
fi
|
||||
ninja -k0 $testpaint_target all install
|
||||
|
||||
# macOS runners do not have Ninja installed by default
|
||||
if [[ $(uname) == "Darwin" ]]; then
|
||||
make install
|
||||
else
|
||||
ninja -k0 $testpaint_target all install
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue