Debian Codegraph @

android/app/jni/scripts/release-mac.sh

raw
1 #!/bin/bash
2 # make macOS release
3 # this script shall be run in macOS with CMake and the dev tools installed
4
5 # no, I won't use XCode...
6
7 if [ ! -e /tmp/furnace ]; then
8 ln -s "$PWD" /tmp/furnace || exit 1
9 fi
10
11 cd /tmp/furnace
12
13 if [ ! -e macbuild ]; then
14 mkdir macbuild || exit 1
15 fi
16
17 cd macbuild
18
19 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET="10.9" -DCMAKE_C_FLAGS="-O2" -DCMAKE_CXX_FLAGS="-O2 -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Werror" -DWITH_JACK=OFF -DCMAKE_EXE_LINKER_FLAGS="" -DBUILD_PROGRAMS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DENABLE_EXTERNAL_LIBS=OFF -DENABLE_MPEG=OFF .. || exit 1
20 make -j4 || exit 1
21 cpack || exit 1
22
23 cd ..
24
25 mkdir -p release/macos || exit 1
26 cd release/macos
27
28 cp ../../macbuild/_CPack_Packages/Darwin/Bundle/Furnace*.dmg .