-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.bash
executable file
·28 lines (21 loc) · 945 Bytes
/
build.bash
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
#! /bin/bash
SPECIFIC_REVISION="1198bb06b041e2df5d42cc5cf18fac81fcefa03f"
if [ -z "$ANDROID_HOME" ]; then
echo "You must set ANDROID_HOME environment variable. See README."
fi
if [ -z "$JAVA_HOME" ]; then
echo "You must set JAVA_HOME environment variable. See README."
fi
mkdir -p build
pushd build
echo "Setting up Repo"
repo init -u https://android.googlesource.com/platform/manifest -b android-games-sdk || exit $?
repo sync -c -j8 gamesdk || exit $?
repo sync -c -j8 external/modp_b64 external/googletest external/nanopb-c external/protobuf external/StatsD tools/repohooks || exit $?
repo sync -c -j8 prebuilts/cmake/linux-x86 prebuilts/cmake/windows-x86 prebuilts/cmake/darwin-x86 || exit $?
echo "Checking out the specific revision."
cd gamesdk
git checkout ${SPECIFIC_REVISION} || exit $?
cp ../../local.properties local.properties || exit $?
./gradlew packageLocalZip -Plibraries=swappy -PpackageName=local || exit $?
popd