forked from rhcad/vgandroid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·39 lines (38 loc) · 1.51 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
36
37
38
39
#!/bin/sh
# Type './build.sh' to make Android native libraries.
# 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` to build for the x86 Emulator.
#
if [ "$1"x = "-swig"x ] || [ ! -f touchvg_java_wrap.cpp ] ; then # Make JNI classes
mkdir -p ../src/rhcad/touchvg/core
rm -rf ../src/rhcad/touchvg/core/*.*
swig -c++ -java -package rhcad.touchvg.core -D__ANDROID__ \
-outdir ../src/rhcad/touchvg/core \
-o touchvg_java_wrap.cpp \
-I../../../vgcore/core/include \
-I../../../vgcore/core/include/canvas \
-I../../../vgcore/core/include/graph \
-I../../../vgcore/core/include/cmd \
-I../../../vgcore/core/include/storage \
-I../../../vgcore/core/include/geom \
-I../../../vgcore/core/include/shape \
-I../../../vgcore/core/include/cmdobserver \
-I../../../vgcore/core/include/cmdbase \
-I../../../vgcore/core/include/test \
-I../../../vgcore/core/include/view \
-I../../../vgcore/core/include/cmdbasic \
-I../../../vgcore/core/include/shapedoc \
-I../../../vgcore/core/include/jsonstorage \
-I../../../vgcore/core/include/cmdmgr \
-I../../../vgcore/core/include/record \
-I../../../vgcore/core/src/view \
../../../vgcore/core/src/view/touchvg.swig
python replacejstr.py
#python addlog.py
fi
if [ "$1"x = "-swig"x ] ; then
ndk-build $2
else
ndk-build $1 $2
fi