10000 modified sqlcipher_android make to work with different version OS libs · boxer/android-database-sqlcipher@7b5feda · GitHub
[go: up one dir, main page]

Skip to content

Commit 7b5feda

Browse files
committed
modified sqlcipher_android make to work with different version OS libs
1 parent d7777c2 commit 7b5feda

File tree

8 files changed

+15
-13
lines changed

8 files changed

+15
-13
lines changed

external/Android.mk

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# make -f Android.mk copy-libs-hack
77

88
LOCAL_PATH := $(call my-dir)
9+
LOCAL_PRELINK_MODULE := false
910

1011
# how on earth to you make this damn Android build system run cmd line progs?!?!
1112
build-local-hack: sqlcipher/sqlite3.c ../obj/local/armeabi/libcrypto.so
@@ -23,9 +24,9 @@ sqlcipher/sqlite3.c:
2324
copy-libs-hack: build-local-hack
2425
install -p -m644 openssl/libs/armeabi/*.so ../obj/local/armeabi/
2526
install -p -m644 libs/armeabi/*.so ../obj/local/armeabi/
26-
install -p -m644 android-2.2/*.so ../obj/local/armeabi/
27+
## install -p -m644 android-2.2/*.so ../obj/local/armeabi/
2728

28-
project_ldflags:= -L../obj/local/armeabi/ -L/tmp/foolibs/
29+
project_ldflags:= -Llibs/armeabi/ -Landroid-2.3/
2930

3031
#------------------------------------------------------------------------------#
3132
# libsqlite3
@@ -52,38 +53,39 @@ LOCAL_SRC_FILES := $(sqlcipher_files)
5253

5354
include $(BUILD_SHARED_LIBRARY)
5455

55-
5656
#------------------------------------------------------------------------------#
5757
# libsqlcipher_android (our version of Android's libsqlite_android)
5858

5959
# these are all files from various external git repos
6060
libsqlite3_android_local_src_files := \
61-
android-sqlite/android/PhonebookIndex.cpp \
62-
android-sqlite/android/PhoneNumberUtils.cpp \
63-
android-sqlite/android/OldPhoneNumberUtils.cpp \
64-
android-sqlite/android/PhoneticStringUtils.cpp \
6561
android-sqlite/android/sqlite3_android.cpp
62+
# android-sqlite/android/PhonebookIndex.cpp \
63+
# android-sqlite/android/PhoneNumberUtils.cpp \
64+
# android-sqlite/android/OldPhoneNumberUtils.cpp \
65+
# android-sqlite/android/PhoneticStringUtils.cpp \
6666
# android-sqlite/android/PhoneNumberUtilsTest.cpp \
67-
android-sqlite/android/PhoneticStringUtilsTest.cpp \
67+
# android-sqlite/android/PhoneticStringUtilsTest.cpp \
6868
6969
include $(CLEAR_VARS)
7070

7171
## this might save us linking against the private android shared libraries like
7272
## libnativehelper.so, libutils.so, libcutils.so, libicuuc, libicui18n.so
73-
LOCAL_ALLOW_UNDEFINED_SYMBOLS := true
73+
LOCAL_ALLOW_UNDEFINED_SYMBOLS := false
7474

7575
# TODO this needs to depend on libsqlcipher being built, how to do that?
7676

7777
LOCAL_REQUIRED_MODULES += libsqlcipher
7878
LOCAL_CFLAGS += $(android_sqlite_cflags) $(sqlite_cflags)
7979
LOCAL_C_INCLUDES := \
8080
$(LOCAL_PATH)/sqlcipher \
81+
$(LOCAL_PATH)/include \
8182
$(LOCAL_PATH)/icu4c/i18n \
8283
$(LOCAL_PATH)/icu4c/common \
83-
$(LOCAL_PATH)/platform-system-core/include \
84-
$(LOCAL_PATH)/platform-frameworks-base/include
85-
LOCAL_LDFLAGS += $(project_ldflags)
86-
LOCAL_LDLIBS := -lsqlcipher -llog -licuuc -licui18n -lutils -lcutils -lnativehelper
84+
# $(LOCAL_PATH)/platform-system-core/include \
85+
# $(LOCAL_PATH)/platform-frameworks-base/include
86+
#LOCAL_LDFLAGS += $(project_ldflags)
87+
LOCAL_LDFLAGS += -L$(LOCAL_PATH)/android-2.3/ -L$(LOCAL_PATH)/libs/armeabi/
88+
LOCAL_LDLIBS := -lsqlcipher -llog -licuuc -licui18n -lutils -lcutils
8789
LOCAL_MODULE := libsqlcipher_android
8890
LOCAL_SRC_FILES := $(libsqlite3_android_local_src_files)
8991

-466 KB
Binary file not shown.

external/android-2.2/libicudata.so

-4.98 MB
Binary file not shown.

libs/armeabi/libdatabase_sqlcipher.so

12 KB
Binary file not shown.
7.41 KB
Binary file not shown.
7.41 KB
Binary file not shown.
7.41 KB
Binary file not shown.

libs/armeabi/libsqlcipher_android.so

-13.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)
0