8000 Update build script · dw3/android-database-sqlcipher@fc4726f · GitHub
[go: up one dir, main page]

Skip to content

Commit fc4726f

Browse files
Update build script
1 parent 400e2d5 commit fc4726f

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

Makefile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DEFAULT_GOAL := all
22
JNI_DIR := ${CURDIR}/jni
3+
LIBS_DIR := ${CURDIR}/libs
34
EXTERNAL_DIR := ${CURDIR}/external
45
SQLCIPHER_DIR := ${CURDIR}/external/sqlcipher
56
SQLCIPHER_CFLAGS := -DHAVE_USLEEP=1 -DSQLITE_HAS_CODEC \
@@ -12,6 +13,8 @@ SQLCIPHER_CFLAGS := -DHAVE_USLEEP=1 -DSQLITE_HAS_CODEC \
1213
-DSQLITE_THREADSAFE -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS3_PARENTHESIS \
1314
-DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_FTS5
1415

16+
.PHONEY: clean
17+
1518
init: init-environment build-openssl-libraries
1619

1720
init-environment:
@@ -27,22 +30,25 @@ build-amalgamation:
2730
CFLAGS="${SQLCIPHER_CFLAGS}" && \
2831
make sqlite3.c
2932

33+
build-java:
34+
ant release
35+
3036
build-native:
3137
cd ${JNI_DIR} && \
3238
ndk-build V=1 --environment-overrides NDK_LIBS_OUT=$(JNI_DIR)/libs \
3339
SQLCIPHER_CFLAGS="${SQLCIPHER_CFLAGS}"
3440

3541
ndk-clean:
36-
cd ${JNI_DIR} && \
42+
-cd ${JNI_DIR} && \
3743
ndk-build clean
3844

3945
clean: ndk-clean
40-
cd ${SQLCIPHER_DIR} && \
46+
-cd ${SQLCIPHER_DIR} && \
4147
make clean
42-
cd ${JNI_DIR} && \
43-
ndk-build clean
48+
ant clean
49+
rm -rf ${LIBS_DIR}
4450

4551
distclean: clean
4652
rm -rf ${EXTERNAL_DIR}/android-libs
4753

48-
all: build-amalgamation build-native
54+
all: build-amalgamation build-native build-java

0 commit comments

Comments
 (0)
0