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