blob: 480addb84f3641f73fee23d9f90d97bc01ab295a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/usr/bin/env bash
# This script assumes that all the right environment variables
# (CC, LD, STRIP, ...) areset.
set -eu -o pipefail
scriptdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
outdir="out-$DEST_CPU_ARCH"
cd $scriptdir/..
export GYP_DEFINES="target_arch=$DEST_CPU_ARCH host_os=mac target_os=ios"
function myconf() {
./configure \
--debug \
--output-dir=$outdir \
--cross-compiling \
--dest-cpu=$DEST_CPU_ARCH \
--dest-os=ios \
--without-intl \
--openssl-no-asm \
--v8-options=--jitless \
--enable-static \
--without-node-code-cache \
--without-node-snapshot
}
myconf && make OUTPUT_DIR=$outdir
|