Created
February 23, 2019 19:06
-
-
Save TheNoim/6b0f6a0fa18c094ba1441e383893c016 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
ROOT=${PWD} | |
SCRIPT_DIR="$(dirname "$BASH_SOURCE")" | |
cd "$SCRIPT_DIR" | |
SCRIPT_DIR=${PWD} | |
#should be the node's source root | |
cd ../ | |
LIBRARY_PATH='out/Release' | |
make clean | |
TARGET_LIBRARY_PATH='tools/ios-framework/bin/arm64' | |
./configure --dest-os=ios --dest-cpu=arm64 --without-chakra-jit --with-intl=none --openssl-no-asm | |
make -j$(getconf _NPROCESSORS_ONLN) | |
mkdir -p $TARGET_LIBRARY_PATH | |
cp $LIBRARY_PATH/libcares.a $TARGET_LIBRARY_PATH/ | |
cp $LIBRARY_PATH/libChakraCoreStatic.a $TARGET_LIBRARY_PATH/ | |
cp $LIBRARY_PATH/libchakrashim.a $TARGET_LIBRARY_PATH/ | |
cp $LIBRARY_PATH/libhttp_parser.a $TARGET_LIBRARY_PATH/ | |
cp $LIBRARY_PATH/libnghttp2.a $TARGET_LIBRARY_PATH/ | |
cp $LIBRARY_PATH/libnode.a $TARGET_LIBRARY_PATH/ | |
cp $LIBRARY_PATH/libopenssl.a $TARGET_LIBRARY_PATH/ | |
cp $LIBRARY_PATH/libuv.a $TARGET_LIBRARY_PATH/ | |
cp $LIBRARY_PATH/libzlib.a $TARGET_LIBRARY_PATH/ | |
make clean | |
TARGET_LIBRARY_PATH='tools/ios-framework/bin/x64' | |
./configure --dest-os=ios --dest-cpu=x64 --without-chakra-jit --with-intl=none --openssl-no-asm | |
make -j$(getconf _NPROCESSORS_ONLN) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment