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 43 44 # Flags passed to both C and C++ files. 45 MY_CFLAGS_Debug := \ 46 --param=ssp-buffer-size=4 \ 47 -Werror \ 48 -fno-exceptions \ 49 -fno-strict-aliasing \ 50 -Wall \ 51 -Wno-unused-parameter \ 52 -Wno-missing-field-initializers \ 53 -fvisibility=hidden \ 54 -pipe \ 55 -fPIC \ 56 -m32 \ 57 -mmmx \ 58 -march=pentium4 \ 59 -msse2 \ 60 -mfpmath=sse \ 61 -fuse-ld=gold \ 62 -ffunction-sections \ 63 -funwind-tables \ 64 -g \ 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 -fno-stack-protector \ 73 -Os \ 74 -g \ 75 -fomit-frame-pointer \ 76 -fdata-sections \ 77 -ffunction-sections 78 79 MY_DEFS_Debug := \ 80 '-DANGLE_DX11' \ 81 '-D_FILE_OFFSET_BITS=64' \ 82 '-DNO_TCMALLOC' \ 83 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 84 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 85 '-DDISABLE_NACL' \ 86 '-DCHROMIUM_BUILD' \ 87 '-DUSE_LIBJPEG_TURBO=1' \ 88 '-DUSE_PROPRIETARY_CODECS' \ 89 '-DENABLE_CONFIGURATION_POLICY' \ 90 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 91 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 92 '-DENABLE_GPU=1' \ 93 '-DUSE_OPENSSL=1' \ 94 '-DENABLE_EGLIMAGE=1' \ 95 '-DENABLE_PRINTING=1' \ 96 '-DBASE_I18N_IMPLEMENTATION' \ 97 '-DU_USING_ICU_NAMESPACE=0' \ 98 '-D__STDC_CONSTANT_MACROS' \ 99 '-D__STDC_FORMAT_MACROS' \ 100 '-DANDROID' \ 101 '-D__GNU_SOURCE=1' \ 102 '-DUSE_STLPORT=1' \ 103 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 104 '-DCHROME_BUILD_ID=""' \ 105 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 106 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 107 '-D_DEBUG' 108 109 110 # Include paths placed before CFLAGS/CPPFLAGS 111 LOCAL_C_INCLUDES_Debug := \ 112 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 113 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 114 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 115 $(LOCAL_PATH) \ 116 $(PWD)/external/icu4c/common \ 117 $(PWD)/external/icu4c/i18n \ 118 $(PWD)/frameworks/wilhelm/include \ 119 $(PWD)/bionic \ 120 $(PWD)/external/stlport/stlport 121 122 123 # Flags passed to only C++ (and not C) files. 124 LOCAL_CPPFLAGS_Debug := \ 125 -fno-rtti \ 126 -fno-threadsafe-statics \ 127 -fvisibility-inlines-hidden \ 128 -Wsign-compare \ 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 --param=ssp-buffer-size=4 \ 137 -Werror \ 138 -fno-exceptions \ 139 -fno-strict-aliasing \ 140 -Wall \ 141 -Wno-unused-parameter \ 142 -Wno-missing-field-initializers \ 143 -fvisibility=hidden \ 144 -pipe \ 145 -fPIC \ 146 -m32 \ 147 -mmmx \ 148 -march=pentium4 \ 149 -msse2 \ 150 -mfpmath=sse \ 151 -fuse-ld=gold \ 152 -ffunction-sections \ 153 -funwind-tables \ 154 -g \ 155 -fno-short-enums \ 156 -finline-limit=64 \ 157 -Wa,--noexecstack \ 158 -U_FORTIFY_SOURCE \ 159 -Wno-extra \ 160 -Wno-ignored-qualifiers \ 161 -Wno-type-limits \ 162 -fno-stack-protector \ 163 -Os \ 164 -fno-ident \ 165 -fdata-sections \ 166 -ffunction-sections \ 167 -fomit-frame-pointer \ 168 -fno-unwind-tables \ 169 -fno-asynchronous-unwind-tables 170 171 MY_DEFS_Release := \ 172 '-DANGLE_DX11' \ 173 '-D_FILE_OFFSET_BITS=64' \ 174 '-DNO_TCMALLOC' \ 175 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 176 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 177 '-DDISABLE_NACL' \ 178 '-DCHROMIUM_BUILD' \ 179 '-DUSE_LIBJPEG_TURBO=1' \ 180 '-DUSE_PROPRIETARY_CODECS' \ 181 '-DENABLE_CONFIGURATION_POLICY' \ 182 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 183 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 184 '-DENABLE_GPU=1' \ 185 '-DUSE_OPENSSL=1' \ 186 '-DENABLE_EGLIMAGE=1' \ 187 '-DENABLE_PRINTING=1' \ 188 '-DBASE_I18N_IMPLEMENTATION' \ 189 '-DU_USING_ICU_NAMESPACE=0' \ 190 '-D__STDC_CONSTANT_MACROS' \ 191 '-D__STDC_FORMAT_MACROS' \ 192 '-DANDROID' \ 193 '-D__GNU_SOURCE=1' \ 194 '-DUSE_STLPORT=1' \ 195 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 196 '-DCHROME_BUILD_ID=""' \ 197 '-DNDEBUG' \ 198 '-DNVALGRIND' \ 199 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 200 '-D_FORTIFY_SOURCE=2' 201 202 203 # Include paths placed before CFLAGS/CPPFLAGS 204 LOCAL_C_INCLUDES_Release := \ 205 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 206 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 207 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 208 $(LOCAL_PATH) \ 209 $(PWD)/external/icu4c/common \ 210 $(PWD)/external/icu4c/i18n \ 211 $(PWD)/frameworks/wilhelm/include \ 212 $(PWD)/bionic \ 213 $(PWD)/external/stlport/stlport 214 215 216 # Flags passed to only C++ (and not C) files. 217 LOCAL_CPPFLAGS_Release := \ 218 -fno-rtti \ 219 -fno-threadsafe-statics \ 220 -fvisibility-inlines-hidden \ 221 -Wsign-compare \ 222 -Wno-error=c++0x-compat \ 223 -Wno-non-virtual-dtor \ 224 -Wno-sign-promo 225 226 227 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 228 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 229 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 230 ### Rules for final target. 231 232 LOCAL_LDFLAGS_Debug := \ 233 -Wl,-z,now \ 234 -Wl,-z,relro \ 235 -Wl,-z,noexecstack \ 236 -fPIC \ 237 -m32 \ 238 -fuse-ld=gold \ 239 -nostdlib \ 240 -Wl,--no-undefined \ 241 -Wl,--exclude-libs=ALL \ 242 -Wl,--fatal-warnings \ 243 -Wl,--gc-sections \ 244 -Wl,--warn-shared-textrel \ 245 -Wl,-O1 \ 246 -Wl,--as-needed 247 248 249 LOCAL_LDFLAGS_Release := \ 250 -Wl,-z,now \ 251 -Wl,-z,relro \ 252 -Wl,-z,noexecstack \ 253 -fPIC \ 254 -m32 \ 255 -fuse-ld=gold \ 256 -nostdlib \ 257 -Wl,--no-undefined \ 258 -Wl,--exclude-libs=ALL \ 259 -Wl,-O1 \ 260 -Wl,--as-needed \ 261 -Wl,--gc-sections \ 262 -Wl,--fatal-warnings \ 263 -Wl,--warn-shared-textrel 264 265 266 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 267 268 LOCAL_STATIC_LIBRARIES := 269 270 # Enable grouping to fix circular references 271 LOCAL_GROUP_STATIC_LIBRARIES := true 272 273 LOCAL_SHARED_LIBRARIES := \ 274 libstlport \ 275 libdl 276 277 # Add target alias to "gyp_all_modules" target. 278 .PHONY: gyp_all_modules 279 gyp_all_modules: base_base_i18n_gyp 280 281 # Alias gyp target name. 282 .PHONY: base_i18n 283 base_i18n: base_base_i18n_gyp 284 285 include $(BUILD_STATIC_LIBRARY) 286