re2.target.darwin-x86_64.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 -m64 \ 68 -march=x86-64 \ 69 -ffunction-sections \ 70 -funwind-tables \ 71 -g \ 72 -fstack-protector \ 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 -Wno-address \ 82 -Wno-format-security \ 83 -Wno-return-type \ 84 -Wno-sequence-point \ 85 -Os \ 86 -g \ 87 -fomit-frame-pointer \ 88 -fdata-sections \ 89 -ffunction-sections \ 90 -funwind-tables 91 92MY_DEFS_Debug := \ 93 '-DV8_DEPRECATION_WARNINGS' \ 94 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 95 '-D_FILE_OFFSET_BITS=64' \ 96 '-DNO_TCMALLOC' \ 97 '-DDISABLE_NACL' \ 98 '-DCHROMIUM_BUILD' \ 99 '-DUSE_LIBJPEG_TURBO=1' \ 100 '-DENABLE_WEBRTC=1' \ 101 '-DUSE_PROPRIETARY_CODECS' \ 102 '-DENABLE_BROWSER_CDMS' \ 103 '-DENABLE_CONFIGURATION_POLICY' \ 104 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 105 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 106 '-DENABLE_EGLIMAGE=1' \ 107 '-DCLD_VERSION=1' \ 108 '-DENABLE_PRINTING=1' \ 109 '-DENABLE_MANAGED_USERS=1' \ 110 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 111 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 112 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 113 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 114 '-DVIDEO_HOLE=1' \ 115 '-DUSE_OPENSSL=1' \ 116 '-DUSE_OPENSSL_CERTS=1' \ 117 '-DANDROID' \ 118 '-D__GNU_SOURCE=1' \ 119 '-DUSE_STLPORT=1' \ 120 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 121 '-DCHROME_BUILD_ID=""' \ 122 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 123 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 124 '-D_DEBUG' 125 126 127# Include paths placed before CFLAGS/CPPFLAGS 128LOCAL_C_INCLUDES_Debug := \ 129 $(gyp_shared_intermediate_dir) \ 130 $(LOCAL_PATH)/third_party/re2 \ 131 $(LOCAL_PATH) \ 132 $(PWD)/frameworks/wilhelm/include \ 133 $(PWD)/bionic \ 134 $(PWD)/external/stlport/stlport 135 136 137# Flags passed to only C++ (and not C) files. 138LOCAL_CPPFLAGS_Debug := \ 139 -fno-rtti \ 140 -fno-threadsafe-statics \ 141 -fvisibility-inlines-hidden \ 142 -Wno-deprecated \ 143 -Wno-non-virtual-dtor \ 144 -Wno-sign-promo \ 145 -Wno-non-virtual-dtor 146 147 148# Flags passed to both C and C++ files. 149MY_CFLAGS_Release := \ 150 -fstack-protector \ 151 --param=ssp-buffer-size=4 \ 152 -fno-exceptions \ 153 -fno-strict-aliasing \ 154 -Wno-unused-parameter \ 155 -Wno-missing-field-initializers \ 156 -fvisibility=hidden \ 157 -pipe \ 158 -fPIC \ 159 -Wno-unused-local-typedefs \ 160 -Wno-format \ 161 -m64 \ 162 -march=x86-64 \ 163 -ffunction-sections \ 164 -funwind-tables \ 165 -g \ 166 -fstack-protector \ 167 -fno-short-enums \ 168 -finline-limit=64 \ 169 -Wa,--noexecstack \ 170 -U_FORTIFY_SOURCE \ 171 -Wno-extra \ 172 -Wno-ignored-qualifiers \ 173 -Wno-type-limits \ 174 -Wno-unused-but-set-variable \ 175 -Wno-address \ 176 -Wno-format-security \ 177 -Wno-return-type \ 178 -Wno-sequence-point \ 179 -Os \ 180 -fno-ident \ 181 -fdata-sections \ 182 -ffunction-sections \ 183 -fomit-frame-pointer \ 184 -funwind-tables 185 186MY_DEFS_Release := \ 187 '-DV8_DEPRECATION_WARNINGS' \ 188 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 189 '-D_FILE_OFFSET_BITS=64' \ 190 '-DNO_TCMALLOC' \ 191 '-DDISABLE_NACL' \ 192 '-DCHROMIUM_BUILD' \ 193 '-DUSE_LIBJPEG_TURBO=1' \ 194 '-DENABLE_WEBRTC=1' \ 195 '-DUSE_PROPRIETARY_CODECS' \ 196 '-DENABLE_BROWSER_CDMS' \ 197 '-DENABLE_CONFIGURATION_POLICY' \ 198 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 199 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 200 '-DENABLE_EGLIMAGE=1' \ 201 '-DCLD_VERSION=1' \ 202 '-DENABLE_PRINTING=1' \ 203 '-DENABLE_MANAGED_USERS=1' \ 204 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 205 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 206 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 207 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 208 '-DVIDEO_HOLE=1' \ 209 '-DUSE_OPENSSL=1' \ 210 '-DUSE_OPENSSL_CERTS=1' \ 211 '-DANDROID' \ 212 '-D__GNU_SOURCE=1' \ 213 '-DUSE_STLPORT=1' \ 214 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 215 '-DCHROME_BUILD_ID=""' \ 216 '-DNDEBUG' \ 217 '-DNVALGRIND' \ 218 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 219 220 221# Include paths placed before CFLAGS/CPPFLAGS 222LOCAL_C_INCLUDES_Release := \ 223 $(gyp_shared_intermediate_dir) \ 224 $(LOCAL_PATH)/third_party/re2 \ 225 $(LOCAL_PATH) \ 226 $(PWD)/frameworks/wilhelm/include \ 227 $(PWD)/bionic \ 228 $(PWD)/external/stlport/stlport 229 230 231# Flags passed to only C++ (and not C) files. 232LOCAL_CPPFLAGS_Release := \ 233 -fno-rtti \ 234 -fno-threadsafe-statics \ 235 -fvisibility-inlines-hidden \ 236 -Wno-deprecated \ 237 -Wno-non-virtual-dtor \ 238 -Wno-sign-promo \ 239 -Wno-non-virtual-dtor 240 241 242LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 243LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 244LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 245LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 246### Rules for final target. 247 248LOCAL_LDFLAGS_Debug := \ 249 -Wl,-z,now \ 250 -Wl,-z,relro \ 251 -Wl,--fatal-warnings \ 252 -Wl,-z,noexecstack \ 253 -fPIC \ 254 -m64 \ 255 -fuse-ld=gold \ 256 -nostdlib \ 257 -Wl,--no-undefined \ 258 -Wl,--exclude-libs=ALL \ 259 -Wl,--warn-shared-textrel \ 260 -Wl,-O1 \ 261 -Wl,--as-needed 262 263 264LOCAL_LDFLAGS_Release := \ 265 -Wl,-z,now \ 266 -Wl,-z,relro \ 267 -Wl,--fatal-warnings \ 268 -Wl,-z,noexecstack \ 269 -fPIC \ 270 -m64 \ 271 -fuse-ld=gold \ 272 -nostdlib \ 273 -Wl,--no-undefined \ 274 -Wl,--exclude-libs=ALL \ 275 -Wl,-O1 \ 276 -Wl,--as-needed \ 277 -Wl,--gc-sections \ 278 -Wl,--warn-shared-textrel 279 280 281LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 282 283LOCAL_STATIC_LIBRARIES := 284 285# Enable grouping to fix circular references 286LOCAL_GROUP_STATIC_LIBRARIES := true 287 288LOCAL_SHARED_LIBRARIES := \ 289 libstlport \ 290 libdl 291 292# Add target alias to "gyp_all_modules" target. 293.PHONY: gyp_all_modules 294gyp_all_modules: third_party_re2_re2_gyp 295 296# Alias gyp target name. 297.PHONY: re2 298re2: third_party_re2_re2_gyp 299 300include $(BUILD_STATIC_LIBRARY) 301