Skip to content

Commit 88ab69c

Browse files
committed
Updates for ICS 4.0.x compatibility
- bump platform-framework-base to android-4.0.3_r1 tag - bump platform-system-core to android-4.0.3_r1 tag - compile and link 2.x compatible String8 and String16 to avoid dynamic link under 4 for external build - remove incompatible includes for String16 and String8 from jni build
1 parent e34354a commit 88ab69c

9 files changed

+2315
-9
lines changed

external/Android.mk

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ sqlcipher_cflags := -DSQLITE_HAS_CODEC -DHAVE_FDATASYNC=0 -Dfdatasync=fsync
4646
include $(CLEAR_VARS)
4747

4848
LOCAL_CFLAGS += $(android_sqlite_cflags) $(sqlcipher_cflags)
49-
LOCAL_C_INCLUDES := openssl/include sqlcipher
49+
LOCAL_C_INCLUDES := includes openssl/include sqlcipher
5050
LOCAL_LDFLAGS += $(project_ldflags)
5151
LOCAL_LDLIBS += -lcrypto
5252
LOCAL_MODULE := libsqlcipher
@@ -64,7 +64,8 @@ libsqlite3_android_local_src_files := \
6464
android-sqlite/android/PhoneNumberUtils.cpp \
6565
android-sqlite/android/OldPhoneNumberUtils.cpp \
6666
android-sqlite/android/PhoneticStringUtils.cpp \
67-
platform-frameworks-base/libs/utils/String8.cpp
67+
String16.cpp \
68+
String8.cpp
6869
# android-sqlite/android/PhoneNumberUtilsTest.cpp \
6970
# android-sqlite/android/PhoneticStringUtilsTest.cpp \
7071
@@ -81,8 +82,8 @@ LOCAL_STATIC_LIBRARIES := libsqlcipher libicui18n libicuuc
8182
LOCAL_CFLAGS += $(android_sqlite_cflags) $(sqlite_cflags) -DOS_PATH_SEPARATOR="'/'"
8283

8384
LOCAL_C_INCLUDES := \
85+
$(LOCAL_PATH)/includes \
8486
$(LOCAL_PATH)/sqlcipher \
85-
$(LOCAL_PATH)/include \
8687
$(LOCAL_PATH)/icu4c/i18n \
8788
$(LOCAL_PATH)/icu4c/common \
8889
$(LOCAL_PATH)/platform-system-core/include \

0 commit comments

Comments
 (0)