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