aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaotao Duan <nobody@android.com>2009-09-03 00:33:35 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-09-03 00:33:35 -0700
commit01623f9e653d74dbf0361c93c0250bab4aee2556 (patch)
treee8c4dd73faca01207532211048976eaed8ed999d
parent16ea6ac50bc75b0990578846817a7a18e69cbe27 (diff)
downloadicu4c-cupcake.tar.gz
AI 151288: Use zh ICU data for products with locale zhcupcake
BUG=2056471 Automated import of CL 151288
-rw-r--r--stubdata/Android.mk31
1 files changed, 30 insertions, 1 deletions
diff --git a/stubdata/Android.mk b/stubdata/Android.mk
index e2359257..ed4e906f 100644
--- a/stubdata/Android.mk
+++ b/stubdata/Android.mk
@@ -65,7 +65,7 @@ config := $(word 1, \
$(if $(findstring th,$(PRODUCT_LOCALES)),large) \
$(if $(findstring tr,$(PRODUCT_LOCALES)),large) \
$(if $(findstring uk,$(PRODUCT_LOCALES)),large) \
- $(if $(findstring zh,$(PRODUCT_LOCALES)),large) \
+ $(if $(findstring zh,$(PRODUCT_LOCALES)),zh) \
$(if $(findstring ja,$(PRODUCT_LOCALES)),us-japan) \
$(if $(findstring it,$(PRODUCT_LOCALES)),us-euro) \
$(if $(findstring pl,$(PRODUCT_LOCALES)),us-euro) \
@@ -78,6 +78,35 @@ config := $(word 1, \
icu_var_name := icudt38_dat
##
+###### Chinese
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := libicudata-zh
+LOCAL_MODULE_CLASS := SHARED_LIBRARIES
+LOCAL_PRELINK_MODULE := false
+
+ifeq ($(config),zh)
+ LOCAL_MODULE_STEM := libicudata
+ LOCAL_MODULE_TAGS := user
+else
+ LOCAL_MODULE_TAGS := optional
+endif
+
+intermediates := $(call local-intermediates-dir)
+icu_data_file := $(LOCAL_PATH)/icudt38l-zh.dat
+
+asm_file := $(intermediates)/icu_data_zh.S
+LOCAL_GENERATED_SOURCES += $(asm_file)
+$(asm_file): PRIVATE_VAR_NAME := $(icu_var_name)
+$(asm_file): $(icu_data_file) $(ICUDATA)
+ @echo icudata: $@
+ $(hide) mkdir -p $(dir $@)
+ $(hide) $(ICUDATA) $(PRIVATE_VAR_NAME) < $< > $@
+
+LOCAL_CFLAGS += -D_REENTRANT -DPIC -fPIC
+LOCAL_CFLAGS += -O3 -nodefaultlibs -nostdlib
+
+include $(BUILD_SHARED_LIBRARY)
###### Japanese