Skip to content

Commit

Permalink
initial ios junk
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff committed Jul 6, 2022
1 parent a9a9593 commit 18c3d8b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@
[submodule "external/oxen-encoding"]
path = external/oxen-encoding
url = https://github.com/oxen-io/oxen-encoding.git
[submodule "external/ios-cmake"]
path = external/ios-cmake
url = https://github.com/leetal/ios-cmake
32 changes: 32 additions & 0 deletions contrib/ios.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash
#
# Build the shit for iphone, only builds embeded lokinet

set -e
set +x
if ! [ -f LICENSE ] || ! [ -d llarp ]; then
echo "You need to run this as ./contrib/ios.sh from the top-level lokinet project directory"
fi

mkdir -p build/iphone
cd build/iphone
cmake \
-G Ninja \
-DCMAKE_TOOLCHAIN_FILE=../../external/iso-cmake/ios.toolchain.cmake \
-DBUILD_STATIC_DEPS=ON \
-DBUILD_PACKAGE=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TESTING=OFF \
-DBUILD_LIBLOKINET=ON \
-DWITH_TESTS=OFF \
-DNATIVE_BUILD=OFF \
-DSTATIC_LINK=ON \
-DWITH_SYSTEMD=OFF \
-DFORCE_OXENMQ_SUBMODULE=ON \
-DFORCE_OXENC_SUBMODULE=ON \
-DSUBMODULE_CHECK=ON \
-DWITH_LTO=ON \
-DCMAKE_BUILD_TYPE=Release \
"$@" \
../..
ninja lokinet-shared
1 change: 1 addition & 0 deletions external/ios-cmake
Submodule ios-cmake added at ab8607

0 comments on commit 18c3d8b

Please sign in to comment.