summaryrefslogtreecommitdiff
path: root/taler-android-build/build-android-node
blob: 5463ce9697bff969d7d4a1bd8b7445e4f429d642 (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
#!/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
}

PATH="$PATH:./deps/v8/_depot_tools"

myconf && make