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 -fstack-protector \ 47 --param=ssp-buffer-size=4 \ 48 -Werror \ 49 -fno-exceptions \ 50 -fno-strict-aliasing \ 51 -Wall \ 52 -Wno-unused-parameter \ 53 -Wno-missing-field-initializers \ 54 -fvisibility=hidden \ 55 -pipe \ 56 -fPIC \ 57 -fno-tree-sra \ 58 -fuse-ld=gold \ 59 -Wno-psabi \ 60 -ffunction-sections \ 61 -funwind-tables \ 62 -g \ 63 -fstack-protector \ 64 -fno-short-enums \ 65 -finline-limit=64 \ 66 -Wa,--noexecstack \ 67 -U_FORTIFY_SOURCE \ 68 -Wno-extra \ 69 -Wno-ignored-qualifiers \ 70 -Wno-type-limits \ 71 -Os \ 72 -g \ 73 -fomit-frame-pointer \ 74 -fdata-sections \ 75 -ffunction-sections 76 77 MY_DEFS_Debug := \ 78 '-DANGLE_DX11' \ 79 '-D_FILE_OFFSET_BITS=64' \ 80 '-DNO_TCMALLOC' \ 81 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 82 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 83 '-DDISABLE_NACL' \ 84 '-DCHROMIUM_BUILD' \ 85 '-DUSE_LIBJPEG_TURBO=1' \ 86 '-DUSE_PROPRIETARY_CODECS' \ 87 '-DENABLE_CONFIGURATION_POLICY' \ 88 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 89 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 90 '-DENABLE_GPU=1' \ 91 '-DUSE_OPENSSL=1' \ 92 '-DENABLE_EGLIMAGE=1' \ 93 '-DENABLE_PRINTING=1' \ 94 '-DBASE_I18N_IMPLEMENTATION' \ 95 '-DU_USING_ICU_NAMESPACE=0' \ 96 '-D__STDC_CONSTANT_MACROS' \ 97 '-D__STDC_FORMAT_MACROS' \ 98 '-DANDROID' \ 99 '-D__GNU_SOURCE=1' \ 100 '-DUSE_STLPORT=1' \ 101 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 102 '-DCHROME_BUILD_ID=""' \ 103 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 104 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 105 '-D_DEBUG' 106 107 108 # Include paths placed before CFLAGS/CPPFLAGS 109 LOCAL_C_INCLUDES_Debug := \ 110 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 111 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 112 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 113 $(LOCAL_PATH) \ 114 $(PWD)/external/icu4c/common \ 115 $(PWD)/external/icu4c/i18n \ 116 $(PWD)/frameworks/wilhelm/include \ 117 $(PWD)/bionic \ 118 $(PWD)/external/stlport/stlport 119 120 121 # Flags passed to only C++ (and not C) files. 122 LOCAL_CPPFLAGS_Debug := \ 123 -fno-rtti \ 124 -fno-threadsafe-statics \ 125 -fvisibility-inlines-hidden \ 126 -Wsign-compare \ 127 -Wno-abi \ 128 -Wno-error=c++0x-compat \ 129 -Wno-non-virtual-dtor \ 130 -Wno-sign-promo 131 132 133 # Flags passed to both C and C++ files. 134 MY_CFLAGS_Release := \ 135 -fstack-protector \ 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 -fno-tree-sra \ 147 -fuse-ld=gold \ 148 -Wno-psabi \ 149 -ffunction-sections \ 150 -funwind-tables \ 151 -g \ 152 -fstack-protector \ 153 -fno-short-enums \ 154 -finline-limit=64 \ 155 -Wa,--noexecstack \ 156 -U_FORTIFY_SOURCE \ 157 -Wno-extra \ 158 -Wno-ignored-qualifiers \ 159 -Wno-type-limits \ 160 -Os \ 161 -fno-ident \ 162 -fdata-sections \ 163 -ffunction-sections \ 164 -fomit-frame-pointer 165 166 MY_DEFS_Release := \ 167 '-DANGLE_DX11' \ 168 '-D_FILE_OFFSET_BITS=64' \ 169 '-DNO_TCMALLOC' \ 170 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 171 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 172 '-DDISABLE_NACL' \ 173 '-DCHROMIUM_BUILD' \ 174 '-DUSE_LIBJPEG_TURBO=1' \ 175 '-DUSE_PROPRIETARY_CODECS' \ 176 '-DENABLE_CONFIGURATION_POLICY' \ 177 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 178 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 179 '-DENABLE_GPU=1' \ 180 '-DUSE_OPENSSL=1' \ 181 '-DENABLE_EGLIMAGE=1' \ 182 '-DENABLE_PRINTING=1' \ 183 '-DBASE_I18N_IMPLEMENTATION' \ 184 '-DU_USING_ICU_NAMESPACE=0' \ 185 '-D__STDC_CONSTANT_MACROS' \ 186 '-D__STDC_FORMAT_MACROS' \ 187 '-DANDROID' \ 188 '-D__GNU_SOURCE=1' \ 189 '-DUSE_STLPORT=1' \ 190 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 191 '-DCHROME_BUILD_ID=""' \ 192 '-DNDEBUG' \ 193 '-DNVALGRIND' \ 194 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 195 '-D_FORTIFY_SOURCE=2' 196 197 198 # Include paths placed before CFLAGS/CPPFLAGS 199 LOCAL_C_INCLUDES_Release := \ 200 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 201 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 202 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 203 $(LOCAL_PATH) \ 204 $(PWD)/external/icu4c/common \ 205 $(PWD)/external/icu4c/i18n \ 206 $(PWD)/frameworks/wilhelm/include \ 207 $(PWD)/bionic \ 208 $(PWD)/external/stlport/stlport 209 210 211 # Flags passed to only C++ (and not C) files. 212 LOCAL_CPPFLAGS_Release := \ 213 -fno-rtti \ 214 -fno-threadsafe-statics \ 215 -fvisibility-inlines-hidden \ 216 -Wsign-compare \ 217 -Wno-abi \ 218 -Wno-error=c++0x-compat \ 219 -Wno-non-virtual-dtor \ 220 -Wno-sign-promo 221 222 223 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 224 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 225 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 226 ### Rules for final target. 227 228 LOCAL_LDFLAGS_Debug := \ 229 -Wl,-z,now \ 230 -Wl,-z,relro \ 231 -Wl,-z,noexecstack \ 232 -fPIC \ 233 -Wl,-z,relro \ 234 -Wl,-z,now \ 235 -fuse-ld=gold \ 236 -nostdlib \ 237 -Wl,--no-undefined \ 238 -Wl,--exclude-libs=ALL \ 239 -Wl,--icf=safe \ 240 -Wl,--fatal-warnings \ 241 -Wl,--gc-sections \ 242 -Wl,--warn-shared-textrel \ 243 -Wl,-O1 \ 244 -Wl,--as-needed 245 246 247 LOCAL_LDFLAGS_Release := \ 248 -Wl,-z,now \ 249 -Wl,-z,relro \ 250 -Wl,-z,noexecstack \ 251 -fPIC \ 252 -Wl,-z,relro \ 253 -Wl,-z,now \ 254 -fuse-ld=gold \ 255 -nostdlib \ 256 -Wl,--no-undefined \ 257 -Wl,--exclude-libs=ALL \ 258 -Wl,--icf=safe \ 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