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