1 # Copyright (C) 2008 The Android Open Source Project 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 16 LOCAL_PATH:= $(call my-dir) 17 18 # 19 # Common definitions. 20 # 21 22 include $(CLEAR_VARS) 23 24 src_files := \ 25 ucln_in.c decContext.c \ 26 ulocdata.c utmscale.c decNumber.c 27 28 src_files += \ 29 indiancal.cpp dtptngen.cpp dtrule.cpp \ 30 persncal.cpp rbtz.cpp reldtfmt.cpp \ 31 taiwncal.cpp tzrule.cpp tztrans.cpp \ 32 udatpg.cpp vtzone.cpp \ 33 anytrans.cpp astro.cpp buddhcal.cpp \ 34 basictz.cpp calendar.cpp casetrn.cpp \ 35 choicfmt.cpp coleitr.cpp coll.cpp \ 36 cpdtrans.cpp csdetect.cpp csmatch.cpp \ 37 csr2022.cpp csrecog.cpp csrmbcs.cpp \ 38 csrsbcs.cpp csrucode.cpp csrutf8.cpp \ 39 curramt.cpp currfmt.cpp currunit.cpp \ 40 datefmt.cpp dcfmtsym.cpp decimfmt.cpp \ 41 digitlst.cpp dtfmtsym.cpp esctrn.cpp \ 42 fmtable_cnv.cpp fmtable.cpp format.cpp \ 43 funcrepl.cpp gregocal.cpp gregoimp.cpp \ 44 hebrwcal.cpp inputext.cpp islamcal.cpp \ 45 japancal.cpp measfmt.cpp measure.cpp \ 46 msgfmt.cpp name2uni.cpp nfrs.cpp \ 47 nfrule.cpp nfsubs.cpp nortrans.cpp \ 48 nultrans.cpp numfmt.cpp olsontz.cpp \ 49 quant.cpp rbnf.cpp rbt.cpp \ 50 rbt_data.cpp rbt_pars.cpp rbt_rule.cpp \ 51 rbt_set.cpp regexcmp.cpp regexst.cpp \ 52 rematch.cpp remtrans.cpp repattrn.cpp \ 53 search.cpp simpletz.cpp smpdtfmt.cpp \ 54 sortkey.cpp strmatch.cpp strrepl.cpp \ 55 stsearch.cpp tblcoll.cpp timezone.cpp \ 56 titletrn.cpp tolowtrn.cpp toupptrn.cpp \ 57 translit.cpp transreg.cpp tridpars.cpp \ 58 ucal.cpp ucol_bld.cpp ucol_cnt.cpp \ 59 ucol.cpp ucoleitr.cpp ucol_elm.cpp \ 60 ucol_res.cpp ucol_sit.cpp ucol_tok.cpp \ 61 ucsdet.cpp ucurr.cpp udat.cpp \ 62 umsg.cpp unesctrn.cpp uni2name.cpp \ 63 unum.cpp uregexc.cpp uregex.cpp \ 64 usearch.cpp utrans.cpp windtfmt.cpp \ 65 winnmfmt.cpp zonemeta.cpp \ 66 numsys.cpp chnsecal.cpp \ 67 cecal.cpp coptccal.cpp ethpccal.cpp \ 68 brktrans.cpp wintzimpl.cpp plurrule.cpp \ 69 plurfmt.cpp dtitvfmt.cpp dtitvinf.cpp \ 70 tmunit.cpp tmutamt.cpp tmutfmt.cpp \ 71 colldata.cpp bmsearch.cpp bms.cpp \ 72 currpinf.cpp uspoof.cpp uspoof_impl.cpp \ 73 uspoof_build.cpp \ 74 regextxt.cpp selfmt.cpp uspoof_conf.cpp \ 75 uspoof_wsconf.cpp ztrans.cpp zrule.cpp \ 76 vzone.cpp fphdlimp.cpp fpositer.cpp\ 77 locdspnm.cpp ucol_wgt.cpp \ 78 alphaindex.cpp bocsu.cpp decfmtst.cpp \ 79 smpdtfst.cpp smpdtfst.h tzfmt.cpp \ 80 tzgnames.cpp tznames.cpp tznames_impl.cpp \ 81 udateintervalformat.cpp upluralrules.cpp 82 83 84 c_includes = \ 85 $(LOCAL_PATH) \ 86 $(LOCAL_PATH)/../common 87 88 local_cflags := -D_REENTRANT -DU_I18N_IMPLEMENTATION -O3 -fvisibility=hidden 89 local_ldlibs := -lpthread -lm 90 91 92 # 93 # Build for the target (device). 94 # 95 96 include $(CLEAR_VARS) 97 LOCAL_SRC_FILES := $(src_files) 98 LOCAL_C_INCLUDES := $(c_includes) \ 99 abi/cpp/include 100 LOCAL_CFLAGS += $(local_cflags) -DPIC -fPIC 101 LOCAL_RTTI_FLAG := -frtti 102 LOCAL_SHARED_LIBRARIES += libicuuc libgabi++ 103 LOCAL_LDLIBS += $(local_ldlibs) 104 LOCAL_MODULE_TAGS := optional 105 LOCAL_MODULE := libicui18n 106 include $(BUILD_SHARED_LIBRARY) 107 108 109 # 110 # Build for the host. 111 # 112 113 ifeq ($(WITH_HOST_DALVIK),true) 114 include $(CLEAR_VARS) 115 LOCAL_SRC_FILES := $(src_files) 116 LOCAL_C_INCLUDES := $(c_includes) 117 LOCAL_CFLAGS += $(local_cflags) 118 LOCAL_SHARED_LIBRARIES += libicuuc 119 LOCAL_LDLIBS += $(local_ldlibs) 120 LOCAL_MODULE_TAGS := optional 121 LOCAL_MODULE := libicui18n 122 include $(BUILD_HOST_SHARED_LIBRARY) 123 endif 124