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 bocsu.c ucln_in.c ucol_wgt.c \ 26 ulocdata.c utmscale.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 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 uspoof_buildconf.cpp \ 74 uspoof_buildwsconf.cpp 75 76 c_includes = \ 77 $(LOCAL_PATH) \ 78 $(LOCAL_PATH)/../common 79 80 81 # 82 # Build for the target (device). 83 # 84 85 include $(CLEAR_VARS) 86 87 LOCAL_SRC_FILES := $(src_files) 88 LOCAL_C_INCLUDES := $(c_includes) 89 90 LOCAL_CFLAGS += -D_REENTRANT -DPIC -DU_I18N_IMPLEMENTATION -fPIC 91 LOCAL_CFLAGS += -O3 92 93 LOCAL_SHARED_LIBRARIES += libicuuc libicudata 94 LOCAL_LDLIBS += -lpthread -lm 95 96 LOCAL_MODULE := libicui18n 97 98 include $(BUILD_SHARED_LIBRARY) 99 100 101 # 102 # Build for the host. 103 # 104 105 ifeq ($(WITH_HOST_DALVIK),true) 106 107 include $(CLEAR_VARS) 108 109 LOCAL_SRC_FILES := $(src_files) 110 LOCAL_C_INCLUDES := $(c_includes) 111 112 LOCAL_CFLAGS += -D_REENTRANT -DU_I18N_IMPLEMENTATION 113 114 LOCAL_SHARED_LIBRARIES += libicuuc libicudata 115 LOCAL_LDLIBS += -lpthread -lm 116 117 LOCAL_MODULE := libicui18n 118 119 include $(BUILD_HOST_SHARED_LIBRARY) 120 121 endif 122