-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sh
executable file
·35 lines (30 loc) · 1.57 KB
/
build.sh
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
#!/bin/sh
# Type './build.sh' to make Android native libraries for the armeabi devices.
# Type './build.sh -B' to rebuild the native libraries.
# Type `./build.sh -swig` to re-generate JNI classes too.
# Type `./build.sh APP_ABI=x86` or `./build.sh APP_ABI=x86 -B` to build for the x86 Emulator.
# Type `./build.sh -swig APP_ABI=x86` to re-generate JNI classes and build for the x86 Emulator.
#
if [ ! -f ../vgcore/android/build.sh ] ; then
git clone https://github.com/rhcad/vgcore ../vgcore
fi
if [ ! -f ../vgandroid/build.sh ] ; then
git clone https://github.com/rhcad/vgandroid ../vgandroid
fi
if [ ! -f ../DemoCmds/android/build.sh ] ; then
git clone https://github.com/rhcad/DemoCmds ../DemoCmds
fi
cd ../vgandroid; sh build.sh $1 $2; cd ../vgandroid-demo
cd ../DemoCmds/android; sh build.sh $1 $2; cd ../../vgandroid-demo
mkdir -p output/touchvg_libs/armeabi
cp -vR ../vgandroid/TouchVG/bin/touchvg.jar output
cp -vR ../vgandroid/TouchVG/libs/armeabi output/touchvg_libs
cp -vR ../vgandroid/TouchVG/libs/x86 output/touchvg_libs
mkdir -p output/democmds_libs/armeabi
cp -vR ../DemoCmds/android/DemoCmds/bin/democmds.jar output
cp -vR ../DemoCmds/android/DemoCmds/libs/armeabi output/democmds_libs
cp -vR ../DemoCmds/android/DemoCmds/libs/x86 output/democmds_libs
cp -vR ../vgandroid/TouchVG/libs/armeabi output
cp -vR ../vgandroid/TouchVG/libs/x86 output
cp -vR ../DemoCmds/android/DemoCmds/libs/armeabi output
cp -vR ../DemoCmds/android/DemoCmds/libs/x86 output