File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
.DEFAULT_GOAL := all
2
2
JNI_DIR := ${CURDIR}/jni
3
+ LIBS_DIR := ${CURDIR}/libs
3
4
EXTERNAL_DIR := ${CURDIR}/external
4
5
SQLCIPHER_DIR := ${CURDIR}/external/sqlcipher
5
6
SQLCIPHER_CFLAGS := -DHAVE_USLEEP=1 -DSQLITE_HAS_CODEC \
@@ -12,6 +13,8 @@ SQLCIPHER_CFLAGS := -DHAVE_USLEEP=1 -DSQLITE_HAS_CODEC \
12
13
-DSQLITE_THREADSAFE -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS3_PARENTHESIS \
13
14
-DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_FTS5
14
15
16
+ .PHONEY : clean
17
+
15
18
init : init-environment build-openssl-libraries
16
19
17
20
init-environment :
@@ -27,22 +30,25 @@ build-amalgamation:
27
30
CFLAGS=" ${SQLCIPHER_CFLAGS} " && \
28
31
make sqlite3.c
29
32
33
+ build-java :
34
+ ant release
35
+
30
36
build-native :
31
37
cd ${JNI_DIR} && \
32
38
ndk-build V=1 --environment-overrides NDK_LIBS_OUT=$(JNI_DIR ) /libs \
33
39
SQLCIPHER_CFLAGS=" ${SQLCIPHER_CFLAGS} "
34
40
35
41
ndk-clean :
36
- cd ${JNI_DIR} && \
42
+ - cd ${JNI_DIR} && \
37
43
ndk-build clean
38
44
39
45
clean : ndk-clean
40
- cd ${SQLCIPHER_DIR} && \
46
+ - cd ${SQLCIPHER_DIR} && \
41
47
make clean
42
- cd ${JNI_DIR} && \
43
- ndk-build clean
48
+ ant clean
49
+ rm -rf ${LIBS_DIR}
44
50
45
51
distclean : clean
46
52
rm -rf ${EXTERNAL_DIR} /android-libs
47
53
48
- all : build-amalgamation build-native
54
+ all : build-amalgamation build-native build-java
You can’t perform that action at this time.
0 commit comments