Skip to content

Commit c88dfdd

Browse files
Build 32-bit and 64-bit native libraries individually
1 parent 5da0eb6 commit c88dfdd

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,20 @@ build-amalgamation:
4747
build-java:
4848
ant release
4949

50-
build-native:
50+
build-native-32:
5151
cd ${JNI_DIR} && \
5252
ndk-build V=1 --environment-overrides NDK_LIBS_OUT=$(JNI_DIR)/libs32 \
5353
NDK_APPLICATION_MK=$(JNI_DIR)/Application32.mk \
54-
SQLCIPHER_CFLAGS="${SQLCIPHER_CFLAGS}" && \
54+
SQLCIPHER_CFLAGS="${SQLCIPHER_CFLAGS}"
55+
56+
build-native-64:
57+
cd ${JNI_DIR} && \
5558
ndk-build V=1 --environment-overrides NDK_LIBS_OUT=$(JNI_DIR)/libs64 \
5659
NDK_APPLICATION_MK=$(JNI_DIR)/Application64.mk \
5760
SQLCIPHER_CFLAGS="${SQLCIPHER_CFLAGS}"
5861

62+
build-native: build-native-32 build-native-64
63+
5964
clean-java:
6065
ant clean
6166
rm -rf ${LIBS_DIR}
@@ -77,7 +82,7 @@ distclean: clean
7782
rm -rf ${EXTERNAL_DIR}/android-libs
7883

7984
copy-libs:
80-
cp -R ${JNI_DIR}/libs32/* ${JNI_DIR}/libs64/* ${LIBS_DIR}
85+
-cp -R ${JNI_DIR}/libs32/* ${JNI_DIR}/libs64/* ${LIBS_DIR}
8186

8287
release-aar:
8388
-rm ${LIBS_DIR}/sqlcipher.jar

0 commit comments

Comments
 (0)