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 16LOCAL_PATH:= $(call my-dir) 17 18# 19# Common definitions. 20# 21 22include $(CLEAR_VARS) 23 24src_files := \ 25 ucln_in.c decContext.c \ 26 ulocdata.c utmscale.c decNumber.c 27 28src_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 gender.cpp \ 44 gregocal.cpp gregoimp.cpp \ 45 hebrwcal.cpp inputext.cpp islamcal.cpp \ 46 japancal.cpp measfmt.cpp measure.cpp \ 47 msgfmt.cpp name2uni.cpp nfrs.cpp \ 48 nfrule.cpp nfsubs.cpp nortrans.cpp \ 49 nultrans.cpp numfmt.cpp olsontz.cpp \ 50 quant.cpp rbnf.cpp rbt.cpp \ 51 rbt_data.cpp rbt_pars.cpp rbt_rule.cpp \ 52 rbt_set.cpp regexcmp.cpp regexst.cpp \ 53 regeximp.cpp \ 54 rematch.cpp remtrans.cpp repattrn.cpp \ 55 search.cpp simpletz.cpp smpdtfmt.cpp \ 56 sortkey.cpp strmatch.cpp strrepl.cpp \ 57 stsearch.cpp tblcoll.cpp timezone.cpp \ 58 titletrn.cpp tolowtrn.cpp toupptrn.cpp \ 59 translit.cpp transreg.cpp tridpars.cpp \ 60 ucal.cpp ucol_bld.cpp ucol_cnt.cpp \ 61 ucol.cpp ucoleitr.cpp ucol_elm.cpp \ 62 ucol_res.cpp ucol_sit.cpp ucol_tok.cpp \ 63 ucsdet.cpp ucurr.cpp udat.cpp \ 64 umsg.cpp unesctrn.cpp uni2name.cpp \ 65 unum.cpp uregexc.cpp uregex.cpp \ 66 usearch.cpp utrans.cpp windtfmt.cpp \ 67 winnmfmt.cpp zonemeta.cpp \ 68 numsys.cpp chnsecal.cpp \ 69 cecal.cpp coptccal.cpp ethpccal.cpp \ 70 brktrans.cpp wintzimpl.cpp plurrule.cpp \ 71 plurfmt.cpp dtitvfmt.cpp dtitvinf.cpp \ 72 tmunit.cpp tmutamt.cpp tmutfmt.cpp \ 73 colldata.cpp bmsearch.cpp bms.cpp \ 74 currpinf.cpp uspoof.cpp uspoof_impl.cpp \ 75 uspoof_build.cpp \ 76 regextxt.cpp selfmt.cpp uspoof_conf.cpp \ 77 uspoof_wsconf.cpp ztrans.cpp zrule.cpp \ 78 vzone.cpp fphdlimp.cpp fpositer.cpp\ 79 locdspnm.cpp ucol_wgt.cpp \ 80 alphaindex.cpp bocsu.cpp decfmtst.cpp \ 81 smpdtfst.cpp smpdtfst.h tzfmt.cpp \ 82 tzgnames.cpp tznames.cpp tznames_impl.cpp \ 83 udateintervalformat.cpp upluralrules.cpp 84 85 86c_includes = \ 87 $(LOCAL_PATH) \ 88 $(LOCAL_PATH)/../common 89 90local_cflags := -D_REENTRANT -DU_I18N_IMPLEMENTATION -O3 -fvisibility=hidden 91local_ldlibs := -lpthread -lm 92 93 94# 95# Build for the target (device). 96# 97 98include $(CLEAR_VARS) 99LOCAL_SRC_FILES := $(src_files) 100LOCAL_C_INCLUDES += $(c_includes) \ 101 abi/cpp/include \ 102 bionic \ 103 bionic/libstdc++/include \ 104 external/stlport/stlport 105LOCAL_CFLAGS += $(local_cflags) -DPIC -fPIC 106LOCAL_RTTI_FLAG := -frtti 107LOCAL_SHARED_LIBRARIES += libicuuc libgabi++ libstlport 108LOCAL_LDLIBS += $(local_ldlibs) 109LOCAL_MODULE_TAGS := optional 110LOCAL_MODULE := libicui18n 111include $(BUILD_SHARED_LIBRARY) 112 113 114# 115# Build for the host. 116# 117 118ifeq ($(WITH_HOST_DALVIK),true) 119 include $(CLEAR_VARS) 120 LOCAL_SRC_FILES := $(src_files) 121 LOCAL_C_INCLUDES := $(c_includes) 122 LOCAL_CFLAGS += $(local_cflags) 123 LOCAL_SHARED_LIBRARIES += libicuuc 124 LOCAL_LDLIBS += $(local_ldlibs) 125 LOCAL_MODULE_TAGS := optional 126 LOCAL_MODULE := libicui18n 127 include $(BUILD_HOST_SHARED_LIBRARY) 128endif 129