Skip to content

Commit

Permalink
Updates for ICS 4.0.x compatibility
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
sjlombardo committed Dec 30, 2011
1 parent e34354a commit 88ab69c
Show file tree
Hide file tree
Showing 9 changed files with 2,315 additions and 9 deletions.
7 changes: 4 additions & 3 deletions external/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ sqlcipher_cflags := -DSQLITE_HAS_CODEC -DHAVE_FDATASYNC=0 -Dfdatasync=fsync
include $(CLEAR_VARS)

LOCAL_CFLAGS += $(android_sqlite_cflags) $(sqlcipher_cflags)
LOCAL_C_INCLUDES := openssl/include sqlcipher
LOCAL_C_INCLUDES := includes openssl/include sqlcipher
LOCAL_LDFLAGS += $(project_ldflags)
LOCAL_LDLIBS += -lcrypto
LOCAL_MODULE := libsqlcipher
Expand All @@ -64,7 +64,8 @@ libsqlite3_android_local_src_files := \
android-sqlite/android/PhoneNumberUtils.cpp \
android-sqlite/android/OldPhoneNumberUtils.cpp \
android-sqlite/android/PhoneticStringUtils.cpp \
platform-frameworks-base/libs/utils/String8.cpp
String16.cpp \
String8.cpp
# android-sqlite/android/PhoneNumberUtilsTest.cpp \
# android-sqlite/android/PhoneticStringUtilsTest.cpp \
Expand All @@ -81,8 +82,8 @@ LOCAL_STATIC_LIBRARIES := libsqlcipher libicui18n libicuuc
LOCAL_CFLAGS += $(android_sqlite_cflags) $(sqlite_cflags) -DOS_PATH_SEPARATOR="'/'"

LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/includes \
$(LOCAL_PATH)/sqlcipher \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/icu4c/i18n \
$(LOCAL_PATH)/icu4c/common \
$(LOCAL_PATH)/platform-system-core/include \
Expand Down
Loading

0 comments on commit 88ab69c

Please sign in to comment.