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 := third_party_re2_re2_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := 15 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_CPP_EXTENSION := .cc 22 LOCAL_GENERATED_SOURCES := 23 24 GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26 LOCAL_SRC_FILES := \ 27 third_party/re2/re2/bitstate.cc \ 28 third_party/re2/re2/compile.cc \ 29 third_party/re2/re2/dfa.cc \ 30 third_party/re2/re2/filtered_re2.cc \ 31 third_party/re2/re2/mimics_pcre.cc \ 32 third_party/re2/re2/nfa.cc \ 33 third_party/re2/re2/onepass.cc \ 34 third_party/re2/re2/parse.cc \ 35 third_party/re2/re2/perl_groups.cc \ 36 third_party/re2/re2/prefilter.cc \ 37 third_party/re2/re2/prefilter_tree.cc \ 38 third_party/re2/re2/prog.cc \ 39 third_party/re2/re2/re2.cc \ 40 third_party/re2/re2/regexp.cc \ 41 third_party/re2/re2/set.cc \ 42 third_party/re2/re2/simplify.cc \ 43 third_party/re2/re2/tostring.cc \ 44 third_party/re2/re2/unicode_casefold.cc \ 45 third_party/re2/re2/unicode_groups.cc \ 46 third_party/re2/util/arena.cc \ 47 third_party/re2/util/hash.cc \ 48 third_party/re2/util/rune.cc \ 49 third_party/re2/util/stringpiece.cc \ 50 third_party/re2/util/stringprintf.cc \ 51 third_party/re2/util/strutil.cc 52 53 54 # Flags passed to both C and C++ files. 55 MY_CFLAGS_Debug := \ 56 --param=ssp-buffer-size=4 \ 57 -fno-exceptions \ 58 -fno-strict-aliasing \ 59 -Wno-unused-parameter \ 60 -Wno-missing-field-initializers \ 61 -fvisibility=hidden \ 62 -pipe \ 63 -fPIC \ 64 -Wno-unused-local-typedefs \ 65 -Wno-format \ 66 -msse2 \ 67 -mfpmath=sse \ 68 -mmmx \ 69 -m32 \ 70 -ffunction-sections \ 71 -funwind-tables \ 72 -g \ 73 -fno-short-enums \ 74 -finline-limit=64 \ 75 -Wa,--noexecstack \ 76 -U_FORTIFY_SOURCE \ 77 -Wno-extra \ 78 -Wno-ignored-qualifiers \ 79 -Wno-type-limits \ 80 -Wno-unused-but-set-variable \ 81 -fno-stack-protector \ 82 -Wno-address \ 83 -Wno-format-security \ 84 -Wno-return-type \ 85 -Wno-sequence-point \ 86 -Os \ 87 -g \ 88 -fdata-sections \ 89 -ffunction-sections \ 90 -fomit-frame-pointer \ 91 -funwind-tables 92 93 MY_DEFS_Debug := \ 94 '-DV8_DEPRECATION_WARNINGS' \ 95 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 96 '-D_FILE_OFFSET_BITS=64' \ 97 '-DNO_TCMALLOC' \ 98 '-DDISABLE_NACL' \ 99 '-DCHROMIUM_BUILD' \ 100 '-DUSE_LIBJPEG_TURBO=1' \ 101 '-DENABLE_WEBRTC=1' \ 102 '-DUSE_PROPRIETARY_CODECS' \ 103 '-DENABLE_BROWSER_CDMS' \ 104 '-DENABLE_CONFIGURATION_POLICY' \ 105 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 106 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 107 '-DENABLE_EGLIMAGE=1' \ 108 '-DCLD_VERSION=1' \ 109 '-DENABLE_PRINTING=1' \ 110 '-DENABLE_MANAGED_USERS=1' \ 111 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 112 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 113 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 114 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 115 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 116 '-DVIDEO_HOLE=1' \ 117 '-DUSE_OPENSSL=1' \ 118 '-DUSE_OPENSSL_CERTS=1' \ 119 '-DANDROID' \ 120 '-D__GNU_SOURCE=1' \ 121 '-DUSE_STLPORT=1' \ 122 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 123 '-DCHROME_BUILD_ID=""' \ 124 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 125 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 126 '-D_DEBUG' 127 128 129 # Include paths placed before CFLAGS/CPPFLAGS 130 LOCAL_C_INCLUDES_Debug := \ 131 $(gyp_shared_intermediate_dir) \ 132 $(LOCAL_PATH)/third_party/re2 \ 133 $(LOCAL_PATH) \ 134 $(PWD)/frameworks/wilhelm/include \ 135 $(PWD)/bionic \ 136 $(PWD)/external/stlport/stlport 137 138 139 # Flags passed to only C++ (and not C) files. 140 LOCAL_CPPFLAGS_Debug := \ 141 -fno-rtti \ 142 -fno-threadsafe-statics \ 143 -fvisibility-inlines-hidden \ 144 -Wno-deprecated \ 145 -Wno-non-virtual-dtor \ 146 -Wno-sign-promo \ 147 -Wno-non-virtual-dtor 148 149 150 LOCAL_FDO_SUPPORT_Debug := false 151 152 # Flags passed to both C and C++ files. 153 MY_CFLAGS_Release := \ 154 --param=ssp-buffer-size=4 \ 155 -fno-exceptions \ 156 -fno-strict-aliasing \ 157 -Wno-unused-parameter \ 158 -Wno-missing-field-initializers \ 159 -fvisibility=hidden \ 160 -pipe \ 161 -fPIC \ 162 -Wno-unused-local-typedefs \ 163 -Wno-format \ 164 -msse2 \ 165 -mfpmath=sse \ 166 -mmmx \ 167 -m32 \ 168 -ffunction-sections \ 169 -funwind-tables \ 170 -g \ 171 -fno-short-enums \ 172 -finline-limit=64 \ 173 -Wa,--noexecstack \ 174 -U_FORTIFY_SOURCE \ 175 -Wno-extra \ 176 -Wno-ignored-qualifiers \ 177 -Wno-type-limits \ 178 -Wno-unused-but-set-variable \ 179 -fno-stack-protector \ 180 -Wno-address \ 181 -Wno-format-security \ 182 -Wno-return-type \ 183 -Wno-sequence-point \ 184 -Os \ 185 -fno-ident \ 186 -fdata-sections \ 187 -ffunction-sections \ 188 -fomit-frame-pointer \ 189 -funwind-tables 190 191 MY_DEFS_Release := \ 192 '-DV8_DEPRECATION_WARNINGS' \ 193 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 194 '-D_FILE_OFFSET_BITS=64' \ 195 '-DNO_TCMALLOC' \ 196 '-DDISABLE_NACL' \ 197 '-DCHROMIUM_BUILD' \ 198 '-DUSE_LIBJPEG_TURBO=1' \ 199 '-DENABLE_WEBRTC=1' \ 200 '-DUSE_PROPRIETARY_CODECS' \ 201 '-DENABLE_BROWSER_CDMS' \ 202 '-DENABLE_CONFIGURATION_POLICY' \ 203 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 204 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 205 '-DENABLE_EGLIMAGE=1' \ 206 '-DCLD_VERSION=1' \ 207 '-DENABLE_PRINTING=1' \ 208 '-DENABLE_MANAGED_USERS=1' \ 209 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 210 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 211 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 212 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 213 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 214 '-DVIDEO_HOLE=1' \ 215 '-DUSE_OPENSSL=1' \ 216 '-DUSE_OPENSSL_CERTS=1' \ 217 '-DANDROID' \ 218 '-D__GNU_SOURCE=1' \ 219 '-DUSE_STLPORT=1' \ 220 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 221 '-DCHROME_BUILD_ID=""' \ 222 '-DNDEBUG' \ 223 '-DNVALGRIND' \ 224 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 225 226 227 # Include paths placed before CFLAGS/CPPFLAGS 228 LOCAL_C_INCLUDES_Release := \ 229 $(gyp_shared_intermediate_dir) \ 230 $(LOCAL_PATH)/third_party/re2 \ 231 $(LOCAL_PATH) \ 232 $(PWD)/frameworks/wilhelm/include \ 233 $(PWD)/bionic \ 234 $(PWD)/external/stlport/stlport 235 236 237 # Flags passed to only C++ (and not C) files. 238 LOCAL_CPPFLAGS_Release := \ 239 -fno-rtti \ 240 -fno-threadsafe-statics \ 241 -fvisibility-inlines-hidden \ 242 -Wno-deprecated \ 243 -Wno-non-virtual-dtor \ 244 -Wno-sign-promo \ 245 -Wno-non-virtual-dtor 246 247 248 LOCAL_FDO_SUPPORT_Release := false 249 250 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 251 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 252 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 253 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 254 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 255 ### Rules for final target. 256 257 LOCAL_LDFLAGS_Debug := \ 258 -Wl,-z,now \ 259 -Wl,-z,relro \ 260 -Wl,--fatal-warnings \ 261 -Wl,-z,noexecstack \ 262 -fPIC \ 263 -m32 \ 264 -fuse-ld=gold \ 265 -nostdlib \ 266 -Wl,--no-undefined \ 267 -Wl,--exclude-libs=ALL \ 268 -Wl,--warn-shared-textrel \ 269 -Wl,-O1 \ 270 -Wl,--as-needed 271 272 273 LOCAL_LDFLAGS_Release := \ 274 -Wl,-z,now \ 275 -Wl,-z,relro \ 276 -Wl,--fatal-warnings \ 277 -Wl,-z,noexecstack \ 278 -fPIC \ 279 -m32 \ 280 -fuse-ld=gold \ 281 -nostdlib \ 282 -Wl,--no-undefined \ 283 -Wl,--exclude-libs=ALL \ 284 -Wl,-O1 \ 285 -Wl,--as-needed \ 286 -Wl,--gc-sections \ 287 -Wl,--warn-shared-textrel 288 289 290 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 291 292 LOCAL_STATIC_LIBRARIES := 293 294 # Enable grouping to fix circular references 295 LOCAL_GROUP_STATIC_LIBRARIES := true 296 297 LOCAL_SHARED_LIBRARIES := \ 298 libstlport \ 299 libdl 300 301 # Add target alias to "gyp_all_modules" target. 302 .PHONY: gyp_all_modules 303 gyp_all_modules: third_party_re2_re2_gyp 304 305 # Alias gyp target name. 306 .PHONY: re2 307 re2: third_party_re2_re2_gyp 308 309 include $(BUILD_STATIC_LIBRARY) 310