summaryrefslogtreecommitdiff
path: root/taler-ios-build/build-ios-v8
blob: 23471dca1228c965fbbe60847c890c51ed90b285 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env bash

set -eu -o pipefail

scriptdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
cd $scriptdir/..

DEST_CPU_ARCH=$1

# We do not export anything about the tool chain, as v8
# will pick their own toolchain for android from the ndk

cd ./deps/v8

python3 ./tools/node/fetch_deps.py $PWD

gn_args=$(cat <<EOF
is_official_build = true
v8_enable_backtrace = false
v8_enable_slow_dchecks = true
v8_optimized_debug = false
ios_deployment_target = 10
is_component_build = false
is_debug = false
target_cpu = "$DEST_CPU_ARCH"
target_os = "ios"
use_custom_libcxx = false
use_xcode_clang = true
v8_enable_i18n_support = false
v8_monolithic = true
v8_use_external_startup_data = false
EOF
)

echo gn_args $gn_args

echo "executing gn gen"

./buildtools/mac/gn gen out.gn/ios-$DEST_CPU_ARCH "--args=$gn_args"

echo "executing ninja"

./_depot_tools/ninja -C out.gn/ios-$DEST_CPU_ARCH v8_monolith d8