@@ -46,7 +46,7 @@ sqlcipher_cflags := -DSQLITE_HAS_CODEC -DHAVE_FDATASYNC=0 -Dfdatasync=fsync
46
46
include $(CLEAR_VARS )
47
47
48
48
LOCAL_CFLAGS += $(android_sqlite_cflags ) $(sqlcipher_cflags )
49
- LOCAL_C_INCLUDES := openssl/include sqlcipher
49
+ LOCAL_C_INCLUDES := includes openssl/include sqlcipher
50
50
LOCAL_LDFLAGS += $(project_ldflags )
51
51
LOCAL_LDLIBS += -lcrypto
52
52
LOCAL_MODULE := libsqlcipher
@@ -64,7 +64,8 @@ libsqlite3_android_local_src_files := \
64
64
android-sqlite/android/PhoneNumberUtils.cpp \
65
65
android-sqlite/android/OldPhoneNumberUtils.cpp \
66
66
android-sqlite/android/PhoneticStringUtils.cpp \
67
- platform-frameworks-base/libs/utils/String8.cpp
67
+ String16.cpp \
68
+ String8.cpp
68
69
# android-sqlite/android/PhoneNumberUtilsTest.cpp \
69
70
# android-sqlite/android/PhoneticStringUtilsTest.cpp \
70
71
@@ -81,8 +82,8 @@ LOCAL_STATIC_LIBRARIES := libsqlcipher libicui18n libicuuc
81
82
LOCAL_CFLAGS += $(android_sqlite_cflags ) $(sqlite_cflags ) -DOS_PATH_SEPARATOR="'/'"
82
83
83
84
LOCAL_C_INCLUDES := \
85
+ $(LOCAL_PATH ) /includes \
84
86
$(LOCAL_PATH ) /sqlcipher \
85
- $(LOCAL_PATH ) /include \
86
87
$(LOCAL_PATH ) /icu4c/i18n \
87
88
$(LOCAL_PATH ) /icu4c/common \
88
89
$(LOCAL_PATH ) /platform-system-core/include \
@@ -109,6 +110,8 @@ include $(BUILD_SHARED_LIBRARY)
109
110
110
111
ICU_COMMON_PATH := icu4c/common
111
112
113
+ # new icu common build begin
114
+
112
115
icu_src_files := \
113
116
$(ICU_COMMON_PATH ) /cmemory.c $(ICU_COMMON_PATH ) /cstring.c \
114
117
$(ICU_COMMON_PATH ) /cwchar.c $(ICU_COMMON_PATH ) /locmap.c \
@@ -130,7 +133,7 @@ icu_src_files := \
130
133
$(ICU_COMMON_PATH ) /ucnv_set.c $(ICU_COMMON_PATH ) /ucnv_u16.c \
131
134
$(ICU_COMMON_PATH ) /ucnv_u32.c $(ICU_COMMON_PATH ) /ucnv_u7.c \
132
135
$(ICU_COMMON_PATH ) /ucnv_u8.c \
133
- $(ICU_COMMON_PATH ) /udata.c $( ICU_COMMON_PATH ) / udatamem.c \
136
+ $(ICU_COMMON_PATH ) /udatamem.c \
134
137
$(ICU_COMMON_PATH ) /udataswp.c $(ICU_COMMON_PATH ) /uenum.c \
135
138
$(ICU_COMMON_PATH ) /uhash.c $(ICU_COMMON_PATH ) /uinit.c \
136
139
$(ICU_COMMON_PATH ) /uinvchar.c $(ICU_COMMON_PATH ) /uloc.c \
@@ -188,13 +191,16 @@ icu_src_files += \
188
191
$(ICU_COMMON_PATH ) /loclikely.cpp $(ICU_COMMON_PATH ) /locresdata.cpp \
189
192
$(ICU_COMMON_PATH ) /normalizer2impl.cpp $(ICU_COMMON_PATH ) /normalizer2.cpp \
190
193
$(ICU_COMMON_PATH ) /filterednormalizer2.cpp $(ICU_COMMON_PATH ) /ucol_swp.cpp \
191
- $(ICU_COMMON_PATH ) /uprops.cpp $(ICU_COMMON_PATH ) /utrie2.cpp
192
-
194
+ $(ICU_COMMON_PATH ) /uprops.cpp $(ICU_COMMON_PATH ) /utrie2.cpp \
195
+ $(ICU_COMMON_PATH ) /charstr.cpp $(ICU_COMMON_PATH ) /uts46.cpp \
196
+ $(ICU_COMMON_PATH ) /udata.cpp
193
197
194
198
# This is the empty compiled-in icu data structure
195
199
# that we need to satisfy the linker.
196
200
icu_src_files += $(ICU_COMMON_PATH ) /../stubdata/stubdata.c
197
201
202
+ # new icu common build end
203
+
198
204
icu_c_includes := \
199
205
$(ICU_COMMON_PATH ) / \
200
206
$(ICU_COMMON_PATH ) //../i18n
@@ -203,10 +209,10 @@ icu_c_includes := \
203
209
# device and sim builds can use the same codepath, and it's hard to break one
204
210
# without noticing because the other still works.
205
211
206
- icu_local_cflags += -D_REENTRANT -DU_COMMON_IMPLEMENTATION -O3 -DHAVE_ANDROID_OS=1
212
+ icu_local_cflags += -D_REENTRANT -DU_COMMON_IMPLEMENTATION -O3 -DHAVE_ANDROID_OS=1 -fvisibility=hidden
207
213
icu_local_cflags += '-DICU_DATA_DIR_PREFIX_ENV_VAR="SQLCIPHER_ICU_PREFIX"'
208
214
icu_local_cflags += '-DICU_DATA_DIR="/icu"'
209
- icu_local_ldlibs := -lc
215
+ icu_local_ldlibs := -lc -lpthread -lm
210
216
211
217
#
212
218
# Build for the target (device).
@@ -216,6 +222,8 @@ include $(CLEAR_VARS)
216
222
LOCAL_SRC_FILES := $(icu_src_files )
217
223
LOCAL_C_INCLUDES := $(icu_c_includes )
218
224
LOCAL_CFLAGS := $(icu_local_cflags ) -DPIC -fPIC
225
+ LOCAL_RTTI_FLAG := -frtti
226
+ LOCAL_SHARED_LIBRARIES += libgabi++
219
227
LOCAL_LDLIBS += $(icu_local_ldlibs )
220
228
LOCAL_MODULE_TAGS := optional
221
229
LOCAL_MODULE := libicuuc
@@ -233,15 +241,17 @@ LOCAL_PATH := $(PROJECT_ROOT_PATH)
233
241
# ICU_I18N_PATH := $(LOCAL_PATH)/icu4c/i18n
234
242
ICU_I18N_PATH := icu4c/i18n
235
243
244
+ # start new icu18n
245
+
236
246
src_files := \
237
247
$(ICU_I18N_PATH ) /bocsu.c $(ICU_I18N_PATH ) /ucln_in.c $(ICU_I18N_PATH ) /decContext.c \
238
248
$(ICU_I18N_PATH ) /ulocdata.c $(ICU_I18N_PATH ) /utmscale.c $(ICU_I18N_PATH ) /decNumber.c
239
249
240
250
src_files += \
241
- $(ICU_I18N_PATH ) /indiancal.cpp $(ICU_I18N_PATH ) /dtptngen.cpp $(ICU_I18N_PATH ) /dtrule.cpp \
242
- $(ICU_I18N_PATH ) /persncal.cpp $(ICU_I18N_PATH ) /rbtz.cpp $(ICU_I18N_PATH ) /reldtfmt.cpp \
243
- $(ICU_I18N_PATH ) /taiwncal.cpp $(ICU_I18N_PATH ) /tzrule.cpp $(ICU_I18N_PATH ) /tztrans.cpp \
244
- $(ICU_I18N_PATH ) /udatpg.cpp $(ICU_I18N_PATH ) /vtzone.cpp \
251
+ $(ICU_I18N_PATH ) /indiancal.cpp $(ICU_I18N_PATH ) /dtptngen.cpp $(ICU_I18N_PATH ) /dtrule.cpp \
252
+ $(ICU_I18N_PATH ) /persncal.cpp $(ICU_I18N_PATH ) /rbtz.cpp $(ICU_I18N_PATH ) /reldtfmt.cpp \
253
+ $(ICU_I18N_PATH ) /taiwncal.cpp $(ICU_I18N_PATH ) /tzrule.cpp $(ICU_I18N_PATH ) /tztrans.cpp \
254
+ $(ICU_I18N_PATH ) /udatpg.cpp $(ICU_I18N_PATH ) /vtzone.cpp \
245
255
$(ICU_I18N_PATH ) /anytrans.cpp $(ICU_I18N_PATH ) /astro.cpp $(ICU_I18N_PATH ) /buddhcal.cpp \
246
256
$(ICU_I18N_PATH ) /basictz.cpp $(ICU_I18N_PATH ) /calendar.cpp $(ICU_I18N_PATH ) /casetrn.cpp \
247
257
$(ICU_I18N_PATH ) /choicfmt.cpp $(ICU_I18N_PATH ) /coleitr.cpp $(ICU_I18N_PATH ) /coll.cpp \
@@ -281,32 +291,34 @@ src_files += \
281
291
$(ICU_I18N_PATH ) /plurfmt.cpp $(ICU_I18N_PATH ) /dtitvfmt.cpp $(ICU_I18N_PATH ) /dtitvinf.cpp \
282
292
$(ICU_I18N_PATH ) /tmunit.cpp $(ICU_I18N_PATH ) /tmutamt.cpp $(ICU_I18N_PATH ) /tmutfmt.cpp \
283
293
$(ICU_I18N_PATH ) /colldata.cpp $(ICU_I18N_PATH ) /bmsearch.cpp $(ICU_I18N_PATH ) /bms.cpp \
284
- $(ICU_I18N_PATH ) /currpinf.cpp $(ICU_I18N_PATH ) /uspoof.cpp $(ICU_I18N_PATH ) /uspoof_impl.cpp \
285
- $(ICU_I18N_PATH ) /uspoof_build.cpp \
286
- $(ICU_I18N_PATH ) /regextxt.cpp $(ICU_I18N_PATH ) /selfmt.cpp $(ICU_I18N_PATH ) /uspoof_conf.cpp \
287
- $(ICU_I18N_PATH ) /uspoof_wsconf.cpp $(ICU_I18N_PATH ) /ztrans.cpp $(ICU_I18N_PATH ) /zrule.cpp \
288
- $(ICU_I18N_PATH ) /vzone.cpp $(ICU_I18N_PATH ) /fphdlimp.cpp $(ICU_I18N_PATH ) /fpositer.cpp\
289
- $(ICU_I18N_PATH ) /locdspnm.cpp $(ICU_I18N_PATH ) /decnumstr.cpp $(ICU_I18N_PATH ) /ucol_wgt.cpp
294
+ $(ICU_I18N_PATH ) /currpinf.cpp $(ICU_I18N_PATH ) /uspoof.cpp $(ICU_I18N_PATH ) /uspoof_impl.cpp \
295
+ $(ICU_I18N_PATH ) /uspoof_build.cpp \
296
+ $(ICU_I18N_PATH ) /regextxt.cpp $(ICU_I18N_PATH ) /selfmt.cpp $(ICU_I18N_PATH ) /uspoof_conf.cpp \
297
+ $(ICU_I18N_PATH ) /uspoof_wsconf.cpp $(ICU_I18N_PATH ) /ztrans.cpp $(ICU_I18N_PATH ) /zrule.cpp \
298
+ $(ICU_I18N_PATH ) /vzone.cpp $(ICU_I18N_PATH ) /fphdlimp.cpp $(ICU_I18N_PATH ) /fpositer.cpp\
299
+ $(ICU_I18N_PATH ) /locdspnm.cpp $(ICU_I18N_PATH ) /decnumstr.cpp $(ICU_I18N_PATH ) /ucol_wgt.cpp
300
+
301
+ # end new icu18n
290
302
291
303
c_includes = \
292
304
$(ICU_I18N_PATH ) / \
293
305
$(ICU_I18N_PATH ) /../common
294
306
295
-
296
307
#
297
308
# Build for the target (device).
298
309
#
299
310
300
311
include $(CLEAR_VARS )
301
312
302
313
LOCAL_SRC_FILES := $(src_files )
303
- LOCAL_C_INCLUDES := $(c_includes )
304
-
305
- LOCAL_CFLAGS += -D_REENTRANT -DPIC -DU_I18N_IMPLEMENTATION -fPIC
314
+ LOCAL_C_INCLUDES := $(c_includes ) \
315
+ abi/cpp/include
316
+ LOCAL_CFLAGS += -D_REENTRANT -DPIC -DU_I18N_IMPLEMENTATION -fPIC -fvisibility=hidden
306
317
LOCAL_CFLAGS += -O3
307
-
318
+ LOCAL_RTTI_FLAG := -frtti
319
+ LOCAL_SHARED_LIBRARIES += libgabi++
308
320
LOCAL_STATIC_LIBRARIES += libicuuc
309
- LOCAL_LDLIBS += -lc
321
+ LOCAL_LDLIBS += -lc -lpthread -lm
310
322
LOCAL_MODULE_TAGS := optional
311
323
LOCAL_MODULE := libicui18n
312
324
0 commit comments