Home | History | Annotate | Download | only in i18n
      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 	compactdecimalformat.cpp \
     37 	cpdtrans.cpp    csdetect.cpp csmatch.cpp  \
     38 	csr2022.cpp     csrecog.cpp  csrmbcs.cpp  \
     39 	csrsbcs.cpp     csrucode.cpp csrutf8.cpp  \
     40 	curramt.cpp     currfmt.cpp  currunit.cpp \
     41 	dangical.cpp \
     42 	datefmt.cpp     dcfmtsym.cpp decimfmt.cpp \
     43 	digitlst.cpp    dtfmtsym.cpp esctrn.cpp   \
     44 	fmtable_cnv.cpp fmtable.cpp  format.cpp   \
     45 	funcrepl.cpp    gender.cpp \
     46 	gregocal.cpp gregoimp.cpp \
     47 	hebrwcal.cpp 	identifier_info.cpp \
     48 	inputext.cpp islamcal.cpp \
     49 	japancal.cpp    measfmt.cpp  measure.cpp  \
     50 	msgfmt.cpp      name2uni.cpp nfrs.cpp     \
     51 	nfrule.cpp      nfsubs.cpp   nortrans.cpp \
     52 	nultrans.cpp    numfmt.cpp   olsontz.cpp  \
     53 	quant.cpp       rbnf.cpp     rbt.cpp      \
     54 	rbt_data.cpp    rbt_pars.cpp rbt_rule.cpp \
     55 	rbt_set.cpp     regexcmp.cpp regexst.cpp  \
     56 	regeximp.cpp 	region.cpp \
     57 	rematch.cpp     remtrans.cpp repattrn.cpp \
     58 	scriptset.cpp \
     59 	search.cpp      simpletz.cpp smpdtfmt.cpp \
     60 	sortkey.cpp     strmatch.cpp strrepl.cpp  \
     61 	stsearch.cpp    tblcoll.cpp  timezone.cpp \
     62 	titletrn.cpp    tolowtrn.cpp toupptrn.cpp \
     63 	translit.cpp    transreg.cpp tridpars.cpp \
     64 	ucal.cpp        ucol_bld.cpp ucol_cnt.cpp \
     65 	ucol.cpp        ucoleitr.cpp ucol_elm.cpp \
     66 	ucol_res.cpp    ucol_sit.cpp ucol_tok.cpp \
     67 	ucsdet.cpp      ucurr.cpp    udat.cpp     \
     68 	umsg.cpp        unesctrn.cpp uni2name.cpp \
     69 	unum.cpp        uregexc.cpp  uregex.cpp   \
     70 	usearch.cpp     utrans.cpp   windtfmt.cpp \
     71 	winnmfmt.cpp    zonemeta.cpp \
     72 	numsys.cpp      chnsecal.cpp \
     73 	cecal.cpp       coptccal.cpp ethpccal.cpp \
     74 	brktrans.cpp    wintzimpl.cpp plurrule.cpp \
     75 	plurfmt.cpp     dtitvfmt.cpp dtitvinf.cpp \
     76 	tmunit.cpp      tmutamt.cpp  tmutfmt.cpp  \
     77         currpinf.cpp    uspoof.cpp   uspoof_impl.cpp \
     78         uspoof_build.cpp     \
     79         regextxt.cpp    selfmt.cpp   uspoof_conf.cpp \
     80         uspoof_wsconf.cpp ztrans.cpp zrule.cpp  \
     81         vzone.cpp       fphdlimp.cpp fpositer.cpp\
     82         locdspnm.cpp    ucol_wgt.cpp \
     83         alphaindex.cpp  bocsu.cpp    decfmtst.cpp \
     84         smpdtfst.cpp    smpdtfst.h   tzfmt.cpp \
     85         tzgnames.cpp    tznames.cpp  tznames_impl.cpp \
     86         udateintervalformat.cpp  upluralrules.cpp
     87 
     88 
     89 c_includes = \
     90 	$(LOCAL_PATH) \
     91 	$(LOCAL_PATH)/../common
     92 
     93 local_cflags := -D_REENTRANT
     94 local_cflags += -DU_I18N_IMPLEMENTATION
     95 local_cflags += -O3 -fvisibility=hidden
     96 
     97 local_ldlibs := -lpthread -lm
     98 
     99 
    100 #
    101 # Build for the target (device).
    102 #
    103 
    104 include $(CLEAR_VARS)
    105 LOCAL_SRC_FILES += $(src_files)
    106 LOCAL_C_INCLUDES += $(c_includes)
    107 LOCAL_CFLAGS += $(local_cflags) -DPIC -fPIC
    108 LOCAL_SHARED_LIBRARIES += libicuuc
    109 LOCAL_LDLIBS += $(local_ldlibs)
    110 LOCAL_MODULE_TAGS := optional
    111 LOCAL_MODULE := libicui18n
    112 LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk
    113 include abi/cpp/use_rtti.mk
    114 include external/stlport/libstlport.mk
    115 include $(BUILD_SHARED_LIBRARY)
    116 
    117 
    118 #
    119 # Build for the host.
    120 #
    121 
    122 ifeq ($(WITH_HOST_DALVIK),true)
    123     include $(CLEAR_VARS)
    124     LOCAL_SRC_FILES += $(src_files)
    125     LOCAL_C_INCLUDES += $(c_includes)
    126     LOCAL_CFLAGS += $(local_cflags)
    127     LOCAL_SHARED_LIBRARIES += libicuuc-host
    128     LOCAL_LDLIBS += $(local_ldlibs)
    129     LOCAL_MODULE_TAGS := optional
    130     LOCAL_MODULE := libicui18n-host
    131     LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk
    132     include $(BUILD_HOST_SHARED_LIBRARY)
    133 endif
    134