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