forked from couchbaselabs/Android-Couchbase-SourceBuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.erlang
executable file
·27 lines (20 loc) · 933 Bytes
/
build.erlang
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
#!/bin/bash -x
#
source scripts/env
# Make sure we have a valid environment before we continue
./scripts/checkenv
if [[ $? -ne 0 ]]; then
exit 1
fi
cd $ERL_HOME
SKIP=("appmon" "asn1" "common_test" "cosEvent" "cosEventDomain" "cosFileTransfer" "cosNotification" "cosProperty" "cosTime" "cosTransactions" "wx" "debugger" "ssh" "test_server" "toolbar" "odbc" "orber" "reltool" "observer" "dialyzer" "docbuilder" "edoc" "et" "gs" "hipe" "runtime_tools" "percept" "pman" "inviso" "tv" "typer" "webtool" "jinterface" "megaco" "mnesia" "erl_interface" "diameter" "pcre")
for item in ${SKIP[*]}
do
touch "lib/$item/SKIP"
done
export ANDROID_SYS_ROOT=$ANDROID_NDK_ROOT
./otp_build autoconf
./otp_build configure --xcomp-conf=xcomp/erl-xcomp-android.conf --with-ssl=$COUCH_ANDROID_HOME/build/deps/openssl/android-platform_external_openssl
./otp_build boot -a
./otp_build release -a $COUCH_ANDROID_HOME/build/deps/otp_rel
exit 0