blob: c9e5a41da5625f3cc73486195f3cc701161a7a7c (
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
|
#!/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)"
cd $scriptdir/..
export GYP_DEFINES="OS=android clang=1"
function myconf() {
./configure \
--ninja \
--cross-compiling \
--dest-cpu=$DEST_CPU_ARCH \
--dest-os=android \
--without-intl \
--openssl-no-asm \
--without-bundled-v8 \
--shared
}
myconf && make
|