summaryrefslogtreecommitdiff
path: root/taler-ios-build/arm64
blob: ff08370c3bc124d7a513667e0690ae110d0f62b8 (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
#!/usr/bin/env bash

set -eu -o pipefail

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

############
# Build Node
############

export DEST_CPU_ARCH=arm64

cd $scriptdir

# Cache build files so we don't have to rebuild each time
if [ -d ../out ]; then
  rm -rf ../out
fi
if [ -d ../out-arm64 ]; then
  mv ../out-arm64 ../out
else
  mkdir ../out
  cp ../tools/gyp/pylib/gyp/mac_tool.py ../out/gyp-mac-tool
fi

./build-ios-node arm64

cd $scriptdir/..
x=$scriptdir/compiled/node-arm64/
mkdir -p $x
cp out/Release/*.a $x/
cd $scriptdir

mv ../out ../out-arm64