Skip to content

Instantly share code, notes, and snippets.

@TheNoim
Created July 10, 2018 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheNoim/6d9dff8bd0df4cf46295d921977dfde4 to your computer and use it in GitHub Desktop.
Save TheNoim/6d9dff8bd0df4cf46295d921977dfde4 to your computer and use it in GitHub Desktop.
#!/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