Home | History | Annotate | Download | only in base
      1 # This file is generated by gyp; do not edit.
      2 
      3 include $(CLEAR_VARS)
      4 
      5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
      6 LOCAL_MODULE := base_base_i18n_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TAGS := optional
      9 gyp_intermediate_dir := $(call local-intermediates-dir)
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
     11 
     12 # Make sure our deps are built first.
     13 GYP_TARGET_DEPENDENCIES := \
     14 	$(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp)/icui18n.stamp \
     15 	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp
     16 
     17 GYP_GENERATED_OUTPUTS :=
     18 
     19 # Make sure our deps and generated files are built first.
     20 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     21 
     22 LOCAL_CPP_EXTENSION := .cc
     23 LOCAL_GENERATED_SOURCES :=
     24 
     25 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     26 
     27 LOCAL_SRC_FILES := \
     28 	base/i18n/bidi_line_iterator.cc \
     29 	base/i18n/break_iterator.cc \
     30 	base/i18n/char_iterator.cc \
     31 	base/i18n/case_conversion.cc \
     32 	base/i18n/file_util_icu.cc \
     33 	base/i18n/i18n_constants.cc \
     34 	base/i18n/icu_encoding_detection.cc \
     35 	base/i18n/icu_string_conversions.cc \
     36 	base/i18n/icu_util.cc \
     37 	base/i18n/number_formatting.cc \
     38 	base/i18n/rtl.cc \
     39 	base/i18n/string_compare.cc \
     40 	base/i18n/string_search.cc \
     41 	base/i18n/time_formatting.cc \
     42 	base/i18n/timezone.cc
     43 
     44 
     45 # Flags passed to both C and C++ files.
     46 MY_CFLAGS_Debug := \
     47 	-fstack-protector \
     48 	--param=ssp-buffer-size=4 \
     49 	-Werror \
     50 	-fno-exceptions \
     51 	-fno-strict-aliasing \
     52 	-Wall \
     53 	-Wno-unused-parameter \
     54 	-Wno-missing-field-initializers \
     55 	-fvisibility=hidden \
     56 	-pipe \
     57 	-fPIC \
     58 	-fno-tree-sra \
     59 	-fuse-ld=gold \
     60 	-Wno-psabi \
     61 	-ffunction-sections \
     62 	-funwind-tables \
     63 	-g \
     64 	-fstack-protector \
     65 	-fno-short-enums \
     66 	-finline-limit=64 \
     67 	-Wa,--noexecstack \
     68 	-U_FORTIFY_SOURCE \
     69 	-Wno-extra \
     70 	-Wno-ignored-qualifiers \
     71 	-Wno-type-limits \
     72 	-Os \
     73 	-g \
     74 	-fomit-frame-pointer \
     75 	-fdata-sections \
     76 	-ffunction-sections
     77 
     78 MY_DEFS_Debug := \
     79 	'-DV8_DEPRECATION_WARNINGS' \
     80 	'-D_FILE_OFFSET_BITS=64' \
     81 	'-DNO_TCMALLOC' \
     82 	'-DDISABLE_NACL' \
     83 	'-DCHROMIUM_BUILD' \
     84 	'-DUSE_LIBJPEG_TURBO=1' \
     85 	'-DUSE_PROPRIETARY_CODECS' \
     86 	'-DENABLE_CONFIGURATION_POLICY' \
     87 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     88 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     89 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     90 	'-DUSE_OPENSSL=1' \
     91 	'-DENABLE_EGLIMAGE=1' \
     92 	'-DCLD_VERSION=1' \
     93 	'-DENABLE_PRINTING=1' \
     94 	'-DENABLE_MANAGED_USERS=1' \
     95 	'-DBASE_I18N_IMPLEMENTATION' \
     96 	'-DU_USING_ICU_NAMESPACE=0' \
     97 	'-D__STDC_CONSTANT_MACROS' \
     98 	'-D__STDC_FORMAT_MACROS' \
     99 	'-DANDROID' \
    100 	'-D__GNU_SOURCE=1' \
    101 	'-DUSE_STLPORT=1' \
    102 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    103 	'-DCHROME_BUILD_ID=""' \
    104 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    105 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    106 	'-D_DEBUG'
    107 
    108 
    109 # Include paths placed before CFLAGS/CPPFLAGS
    110 LOCAL_C_INCLUDES_Debug := \
    111 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    112 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    113 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    114 	$(LOCAL_PATH) \
    115 	$(PWD)/external/icu4c/common \
    116 	$(PWD)/external/icu4c/i18n \
    117 	$(PWD)/frameworks/wilhelm/include \
    118 	$(PWD)/bionic \
    119 	$(PWD)/external/stlport/stlport
    120 
    121 
    122 # Flags passed to only C++ (and not C) files.
    123 LOCAL_CPPFLAGS_Debug := \
    124 	-fno-rtti \
    125 	-fno-threadsafe-statics \
    126 	-fvisibility-inlines-hidden \
    127 	-Wsign-compare \
    128 	-Wno-abi \
    129 	-Wno-error=c++0x-compat \
    130 	-Wno-non-virtual-dtor \
    131 	-Wno-sign-promo
    132 
    133 
    134 # Flags passed to both C and C++ files.
    135 MY_CFLAGS_Release := \
    136 	-fstack-protector \
    137 	--param=ssp-buffer-size=4 \
    138 	-Werror \
    139 	-fno-exceptions \
    140 	-fno-strict-aliasing \
    141 	-Wall \
    142 	-Wno-unused-parameter \
    143 	-Wno-missing-field-initializers \
    144 	-fvisibility=hidden \
    145 	-pipe \
    146 	-fPIC \
    147 	-fno-tree-sra \
    148 	-fuse-ld=gold \
    149 	-Wno-psabi \
    150 	-ffunction-sections \
    151 	-funwind-tables \
    152 	-g \
    153 	-fstack-protector \
    154 	-fno-short-enums \
    155 	-finline-limit=64 \
    156 	-Wa,--noexecstack \
    157 	-U_FORTIFY_SOURCE \
    158 	-Wno-extra \
    159 	-Wno-ignored-qualifiers \
    160 	-Wno-type-limits \
    161 	-Os \
    162 	-fno-ident \
    163 	-fdata-sections \
    164 	-ffunction-sections \
    165 	-fomit-frame-pointer
    166 
    167 MY_DEFS_Release := \
    168 	'-DV8_DEPRECATION_WARNINGS' \
    169 	'-D_FILE_OFFSET_BITS=64' \
    170 	'-DNO_TCMALLOC' \
    171 	'-DDISABLE_NACL' \
    172 	'-DCHROMIUM_BUILD' \
    173 	'-DUSE_LIBJPEG_TURBO=1' \
    174 	'-DUSE_PROPRIETARY_CODECS' \
    175 	'-DENABLE_CONFIGURATION_POLICY' \
    176 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    177 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    178 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    179 	'-DUSE_OPENSSL=1' \
    180 	'-DENABLE_EGLIMAGE=1' \
    181 	'-DCLD_VERSION=1' \
    182 	'-DENABLE_PRINTING=1' \
    183 	'-DENABLE_MANAGED_USERS=1' \
    184 	'-DBASE_I18N_IMPLEMENTATION' \
    185 	'-DU_USING_ICU_NAMESPACE=0' \
    186 	'-D__STDC_CONSTANT_MACROS' \
    187 	'-D__STDC_FORMAT_MACROS' \
    188 	'-DANDROID' \
    189 	'-D__GNU_SOURCE=1' \
    190 	'-DUSE_STLPORT=1' \
    191 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    192 	'-DCHROME_BUILD_ID=""' \
    193 	'-DNDEBUG' \
    194 	'-DNVALGRIND' \
    195 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    196 	'-D_FORTIFY_SOURCE=2'
    197 
    198 
    199 # Include paths placed before CFLAGS/CPPFLAGS
    200 LOCAL_C_INCLUDES_Release := \
    201 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    202 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    203 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    204 	$(LOCAL_PATH) \
    205 	$(PWD)/external/icu4c/common \
    206 	$(PWD)/external/icu4c/i18n \
    207 	$(PWD)/frameworks/wilhelm/include \
    208 	$(PWD)/bionic \
    209 	$(PWD)/external/stlport/stlport
    210 
    211 
    212 # Flags passed to only C++ (and not C) files.
    213 LOCAL_CPPFLAGS_Release := \
    214 	-fno-rtti \
    215 	-fno-threadsafe-statics \
    216 	-fvisibility-inlines-hidden \
    217 	-Wsign-compare \
    218 	-Wno-abi \
    219 	-Wno-error=c++0x-compat \
    220 	-Wno-non-virtual-dtor \
    221 	-Wno-sign-promo
    222 
    223 
    224 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    225 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    226 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    227 ### Rules for final target.
    228 
    229 LOCAL_LDFLAGS_Debug := \
    230 	-Wl,-z,now \
    231 	-Wl,-z,relro \
    232 	-Wl,-z,noexecstack \
    233 	-fPIC \
    234 	-Wl,-z,relro \
    235 	-Wl,-z,now \
    236 	-fuse-ld=gold \
    237 	-nostdlib \
    238 	-Wl,--no-undefined \
    239 	-Wl,--exclude-libs=ALL \
    240 	-Wl,--icf=safe \
    241 	-Wl,--fatal-warnings \
    242 	-Wl,--gc-sections \
    243 	-Wl,--warn-shared-textrel \
    244 	-Wl,-O1 \
    245 	-Wl,--as-needed
    246 
    247 
    248 LOCAL_LDFLAGS_Release := \
    249 	-Wl,-z,now \
    250 	-Wl,-z,relro \
    251 	-Wl,-z,noexecstack \
    252 	-fPIC \
    253 	-Wl,-z,relro \
    254 	-Wl,-z,now \
    255 	-fuse-ld=gold \
    256 	-nostdlib \
    257 	-Wl,--no-undefined \
    258 	-Wl,--exclude-libs=ALL \
    259 	-Wl,--icf=safe \
    260 	-Wl,-O1 \
    261 	-Wl,--as-needed \
    262 	-Wl,--gc-sections \
    263 	-Wl,--fatal-warnings \
    264 	-Wl,--warn-shared-textrel
    265 
    266 
    267 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    268 
    269 LOCAL_STATIC_LIBRARIES :=
    270 
    271 # Enable grouping to fix circular references
    272 LOCAL_GROUP_STATIC_LIBRARIES := true
    273 
    274 LOCAL_SHARED_LIBRARIES := \
    275 	libstlport \
    276 	libdl
    277 
    278 # Add target alias to "gyp_all_modules" target.
    279 .PHONY: gyp_all_modules
    280 gyp_all_modules: base_base_i18n_gyp
    281 
    282 # Alias gyp target name.
    283 .PHONY: base_i18n
    284 base_i18n: base_base_i18n_gyp
    285 
    286 include $(BUILD_STATIC_LIBRARY)
    287