2021-05-14 17:07:44 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
2021-07-29 17:26:12 +00:00
|
|
|
# Build the shit on mac
|
|
|
|
#
|
|
|
|
# You will generally need to add: -DCODESIGN_APP=... to make this work, and (unless you are a
|
|
|
|
# lokinet team member) will need to pay Apple money for your own team ID and arse around with
|
|
|
|
# provisioning profiles. See macos/README.txt.
|
2021-05-14 17:07:44 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set +x
|
2021-07-29 17:26:12 +00:00
|
|
|
if ! [ -f LICENSE.txt ] || ! [ -d llarp ]; then
|
|
|
|
echo "You need to run this as ./contrib/mac.sh from the top-level lokinet project directory"
|
|
|
|
fi
|
|
|
|
|
2021-05-14 17:07:44 +00:00
|
|
|
mkdir -p build-mac
|
|
|
|
cd build-mac
|
|
|
|
cmake \
|
|
|
|
-G Ninja \
|
|
|
|
-DBUILD_STATIC_DEPS=ON \
|
|
|
|
-DBUILD_PACKAGE=ON \
|
|
|
|
-DBUILD_SHARED_LIBS=OFF \
|
|
|
|
-DBUILD_TESTING=OFF \
|
|
|
|
-DBUILD_LIBLOKINET=OFF \
|
|
|
|
-DWITH_TESTS=OFF \
|
|
|
|
-DNATIVE_BUILD=OFF \
|
|
|
|
-DSTATIC_LINK=ON \
|
|
|
|
-DWITH_SYSTEMD=OFF \
|
|
|
|
-DFORCE_OXENMQ_SUBMODULE=ON \
|
|
|
|
-DSUBMODULE_CHECK=OFF \
|
2021-09-02 22:07:40 +00:00
|
|
|
-DWITH_LTO=ON \
|
2021-05-14 17:07:44 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2021-07-27 18:43:48 +00:00
|
|
|
"$@" \
|
|
|
|
..
|
2021-07-29 17:26:12 +00:00
|
|
|
ninja sign
|
|
|
|
|
|
|
|
echo -e "Build complete, your app is here:\n"
|
2021-08-16 13:07:31 +00:00
|
|
|
ls -lad $(pwd)/daemon/lokinet.app
|
2021-07-29 17:26:12 +00:00
|
|
|
echo ""
|