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