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 bocsu.c 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 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 zstrfmt.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 decnumstr.cpp ucol_wgt.cpp 78 79 80c_includes = \ 81 $(LOCAL_PATH) \ 82 $(LOCAL_PATH)/../common 83 84local_cflags := -D_REENTRANT -DU_I18N_IMPLEMENTATION -O3 -fvisibility=hidden 85local_ldlibs := -lpthread -lm 86 87 88# 89# Build for the target (device). 90# 91 92include $(CLEAR_VARS) 93LOCAL_SRC_FILES := $(src_files) 94LOCAL_C_INCLUDES := $(c_includes) \ 95 abi/cpp/include 96LOCAL_CFLAGS += $(local_cflags) -DPIC -fPIC 97LOCAL_RTTI_FLAG := -frtti 98LOCAL_SHARED_LIBRARIES += libicuuc libgabi++ 99LOCAL_LDLIBS += $(local_ldlibs) 100LOCAL_MODULE_TAGS := optional 101LOCAL_MODULE := libicui18n 102include $(BUILD_SHARED_LIBRARY) 103 104 105# 106# Build for the host. 107# 108 109ifeq ($(WITH_HOST_DALVIK),true) 110 include $(CLEAR_VARS) 111 LOCAL_SRC_FILES := $(src_files) 112 LOCAL_C_INCLUDES := $(c_includes) 113 LOCAL_CFLAGS += $(local_cflags) 114 LOCAL_SHARED_LIBRARIES += libicuuc 115 LOCAL_LDLIBS += $(local_ldlibs) 116 LOCAL_MODULE_TAGS := optional 117 LOCAL_MODULE := libicui18n 118 include $(BUILD_HOST_SHARED_LIBRARY) 119endif 120