diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2017-08-07 14:01:02 +0200 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2017-11-03 16:57:11 +0100 |
| commit | a6606a33308ab5a9e61baa5c0145e40699f4d45d (patch) | |
| tree | 3e5060a9563a8f33f8390e1fcfa714d917860ada | |
| parent | 4e8c7d95ad31c076b0a626c7cc59ec831da7b6c2 (diff) | |
| download | monzero-gui-a6606a33308ab5a9e61baa5c0145e40699f4d45d.tar.gz monzero-gui-a6606a33308ab5a9e61baa5c0145e40699f4d45d.tar.xz monzero-gui-a6606a33308ab5a9e61baa5c0145e40699f4d45d.zip | |
IOS libwallet build script
| -rwxr-xr-x | ios_get_libwallet.api.sh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/ios_get_libwallet.api.sh b/ios_get_libwallet.api.sh index 3592829c..df07a98e 100755 --- a/ios_get_libwallet.api.sh +++ b/ios_get_libwallet.api.sh @@ -1,4 +1,12 @@ #!/bin/bash -e + +# 3 header files required by monero are missing from the IOS SDK. I copied them from iphoneSimulator SDK +# cd /Applications/XCode.app +# sudo cp ./Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/sys/vmmeter.h ./Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/ +# sudo cp ./Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/netinet/udp_var.h ./Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/netinet/ +# sudo cp ./Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/netinet/ip_var.h ./Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/netinet/ + + if [ -z $BUILD_TYPE ]; then BUILD_TYPE=release fi @@ -18,17 +26,17 @@ if [ -z $OPENSSL_ROOT_DIR ]; then fi echo "Building IOS armv7" -rm -r monero/build +rm -r monero/build > /dev/null mkdir -p monero/build/release pushd monero/build/release cmake -D IOS=ON -D ARCH=armv7 -D BOOST_LIBRARYDIR=${BOOST_INCLUDEDIR} -D BOOST_INCLUDEDIR=${BOOST_INCLUDEDIR} -D OPENSSL_INCLUDE_DIR=${OPENSSL_INCLUDE_DIR} -D OPENSSL_ROOT_DIR=${OPENSSL_ROOT_DIR} -D CMAKE_BUILD_TYPE=debug -D STATIC=ON -D BUILD_GUI_DEPS=ON -D INSTALL_VENDORED_LIBUNBOUND=ON -D CMAKE_INSTALL_PREFIX="/Users/jacob/crypto/monero-core/monero" ../.. make -j4 && make install popd echo "Building IOS arm64" -rm -r monero/build +rm -r monero/build > /dev/null mkdir -p monero/build/release pushd monero/build/release -cmake -D IOS=ON -D ARCH=arm64 -D BOOST_LIBRARYDIR=${BOOST_INCLUDEDIR} -D BOOST_INCLUDEDIR=${BOOST_INCLUDEDIR} -D OPENSSL_INCLUDE_DIR=${OPENSSL_INCLUDE_DIR} -D OPENSSL_ROOT_DIR=${OPENSSL_ROOT_DIR} -D CMAKE_BUILD_TYPE=debug -D STATIC=ON -D BUILD_GUI_DEPS=ON -D INSTALL_VENDORED_LIBUNBOUND=ON -D CMAKE_INSTALL_PREFIX="/Users/jacob/crypto/monero-core/monero" ../.. +cmake -D IOS=ON -D ARCH=armv8-a -D BOOST_LIBRARYDIR=${BOOST_INCLUDEDIR} -D BOOST_INCLUDEDIR=${BOOST_INCLUDEDIR} -D OPENSSL_INCLUDE_DIR=${OPENSSL_INCLUDE_DIR} -D OPENSSL_ROOT_DIR=${OPENSSL_ROOT_DIR} -D CMAKE_BUILD_TYPE=debug -D STATIC=ON -D BUILD_GUI_DEPS=ON -D INSTALL_VENDORED_LIBUNBOUND=ON -D CMAKE_INSTALL_PREFIX="/Users/jacob/crypto/monero-core/monero" ../.. make -j4 && make install popd |
