re2.target.darwin-arm.mk revision cedac228d2dd51db4b79ea1e72c7f249408ee061
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_CONFIGURATION_POLICY' \ 109 '-DENABLE_NEW_GAMEPAD_API=1' \ 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 $(LOCAL_PATH)/third_party/re2 \ 136 $(LOCAL_PATH) \ 137 $(PWD)/frameworks/wilhelm/include \ 138 $(PWD)/bionic \ 139 $(PWD)/external/stlport/stlport 140 141 142# Flags passed to only C++ (and not C) files. 143LOCAL_CPPFLAGS_Debug := \ 144 -fno-rtti \ 145 -fno-threadsafe-statics \ 146 -fvisibility-inlines-hidden \ 147 -Wno-deprecated \ 148 -Wno-abi \ 149 -Wno-non-virtual-dtor \ 150 -Wno-sign-promo \ 151 -Wno-non-virtual-dtor 152 153 154# Flags passed to both C and C++ files. 155MY_CFLAGS_Release := \ 156 -fstack-protector \ 157 --param=ssp-buffer-size=4 \ 158 -fno-exceptions \ 159 -fno-strict-aliasing \ 160 -Wno-unused-parameter \ 161 -Wno-missing-field-initializers \ 162 -fvisibility=hidden \ 163 -pipe \ 164 -fPIC \ 165 -Wno-unused-local-typedefs \ 166 -Wno-format \ 167 -fno-tree-sra \ 168 -fno-partial-inlining \ 169 -fno-early-inlining \ 170 -fno-tree-copy-prop \ 171 -fno-tree-loop-optimize \ 172 -fno-move-loop-invariants \ 173 -fno-caller-saves \ 174 -Wno-psabi \ 175 -ffunction-sections \ 176 -funwind-tables \ 177 -g \ 178 -fstack-protector \ 179 -fno-short-enums \ 180 -finline-limit=64 \ 181 -Wa,--noexecstack \ 182 -U_FORTIFY_SOURCE \ 183 -Wno-extra \ 184 -Wno-ignored-qualifiers \ 185 -Wno-type-limits \ 186 -Wno-unused-but-set-variable \ 187 -Wno-address \ 188 -Wno-format-security \ 189 -Wno-return-type \ 190 -Wno-sequence-point \ 191 -Os \ 192 -fno-ident \ 193 -fdata-sections \ 194 -ffunction-sections \ 195 -fomit-frame-pointer \ 196 -funwind-tables 197 198MY_DEFS_Release := \ 199 '-DV8_DEPRECATION_WARNINGS' \ 200 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 201 '-D_FILE_OFFSET_BITS=64' \ 202 '-DNO_TCMALLOC' \ 203 '-DDISABLE_NACL' \ 204 '-DCHROMIUM_BUILD' \ 205 '-DUSE_LIBJPEG_TURBO=1' \ 206 '-DENABLE_WEBRTC=1' \ 207 '-DUSE_PROPRIETARY_CODECS' \ 208 '-DENABLE_CONFIGURATION_POLICY' \ 209 '-DENABLE_NEW_GAMEPAD_API=1' \ 210 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 211 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 212 '-DENABLE_EGLIMAGE=1' \ 213 '-DCLD_VERSION=1' \ 214 '-DENABLE_PRINTING=1' \ 215 '-DENABLE_MANAGED_USERS=1' \ 216 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 217 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 218 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 219 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 220 '-DVIDEO_HOLE=1' \ 221 '-DUSE_OPENSSL=1' \ 222 '-DUSE_OPENSSL_CERTS=1' \ 223 '-DANDROID' \ 224 '-D__GNU_SOURCE=1' \ 225 '-DUSE_STLPORT=1' \ 226 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 227 '-DCHROME_BUILD_ID=""' \ 228 '-DNDEBUG' \ 229 '-DNVALGRIND' \ 230 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 231 232 233# Include paths placed before CFLAGS/CPPFLAGS 234LOCAL_C_INCLUDES_Release := \ 235 $(LOCAL_PATH)/third_party/re2 \ 236 $(LOCAL_PATH) \ 237 $(PWD)/frameworks/wilhelm/include \ 238 $(PWD)/bionic \ 239 $(PWD)/external/stlport/stlport 240 241 242# Flags passed to only C++ (and not C) files. 243LOCAL_CPPFLAGS_Release := \ 244 -fno-rtti \ 245 -fno-threadsafe-statics \ 246 -fvisibility-inlines-hidden \ 247 -Wno-deprecated \ 248 -Wno-abi \ 249 -Wno-non-virtual-dtor \ 250 -Wno-sign-promo \ 251 -Wno-non-virtual-dtor 252 253 254LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 255LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 256LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 257LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 258### Rules for final target. 259 260LOCAL_LDFLAGS_Debug := \ 261 -Wl,-z,now \ 262 -Wl,-z,relro \ 263 -Wl,--fatal-warnings \ 264 -Wl,-z,noexecstack \ 265 -fPIC \ 266 -Wl,-z,relro \ 267 -Wl,-z,now \ 268 -fuse-ld=gold \ 269 -nostdlib \ 270 -Wl,--no-undefined \ 271 -Wl,--exclude-libs=ALL \ 272 -Wl,--icf=safe \ 273 -Wl,--warn-shared-textrel \ 274 -Wl,-O1 \ 275 -Wl,--as-needed 276 277 278LOCAL_LDFLAGS_Release := \ 279 -Wl,-z,now \ 280 -Wl,-z,relro \ 281 -Wl,--fatal-warnings \ 282 -Wl,-z,noexecstack \ 283 -fPIC \ 284 -Wl,-z,relro \ 285 -Wl,-z,now \ 286 -fuse-ld=gold \ 287 -nostdlib \ 288 -Wl,--no-undefined \ 289 -Wl,--exclude-libs=ALL \ 290 -Wl,--icf=safe \ 291 -Wl,-O1 \ 292 -Wl,--as-needed \ 293 -Wl,--gc-sections \ 294 -Wl,--warn-shared-textrel 295 296 297LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 298 299LOCAL_STATIC_LIBRARIES := 300 301# Enable grouping to fix circular references 302LOCAL_GROUP_STATIC_LIBRARIES := true 303 304LOCAL_SHARED_LIBRARIES := \ 305 libstlport \ 306 libdl 307 308# Add target alias to "gyp_all_modules" target. 309.PHONY: gyp_all_modules 310gyp_all_modules: third_party_re2_re2_gyp 311 312# Alias gyp target name. 313.PHONY: re2 314re2: third_party_re2_re2_gyp 315 316include $(BUILD_STATIC_LIBRARY) 317