re2.target.darwin-x86.mk revision 23730a6e56a168d1879203e4b3819bb36e3d8f1f
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 -msse2 \ 65 -mfpmath=sse \ 66 -mmmx \ 67 -m32 \ 68 -fuse-ld=gold \ 69 -ffunction-sections \ 70 -funwind-tables \ 71 -g \ 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 -fno-stack-protector \ 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 '-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 '-DANDROID' \ 110 '-D__GNU_SOURCE=1' \ 111 '-DUSE_STLPORT=1' \ 112 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 113 '-DCHROME_BUILD_ID=""' \ 114 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 115 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 116 '-D_DEBUG' 117 118 119# Include paths placed before CFLAGS/CPPFLAGS 120LOCAL_C_INCLUDES_Debug := \ 121 $(LOCAL_PATH)/third_party/re2 \ 122 $(LOCAL_PATH) \ 123 $(PWD)/frameworks/wilhelm/include \ 124 $(PWD)/bionic \ 125 $(PWD)/external/stlport/stlport 126 127 128# Flags passed to only C++ (and not C) files. 129LOCAL_CPPFLAGS_Debug := \ 130 -fno-rtti \ 131 -fno-threadsafe-statics \ 132 -fvisibility-inlines-hidden \ 133 -Wno-deprecated \ 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 --param=ssp-buffer-size=4 \ 142 -fno-exceptions \ 143 -fno-strict-aliasing \ 144 -Wno-unused-parameter \ 145 -Wno-missing-field-initializers \ 146 -fvisibility=hidden \ 147 -pipe \ 148 -fPIC \ 149 -Wno-format \ 150 -msse2 \ 151 -mfpmath=sse \ 152 -mmmx \ 153 -m32 \ 154 -fuse-ld=gold \ 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 -fno-stack-protector \ 167 -Wno-address \ 168 -Wno-format-security \ 169 -Wno-return-type \ 170 -Wno-sequence-point \ 171 -Os \ 172 -fno-ident \ 173 -fdata-sections \ 174 -ffunction-sections \ 175 -fomit-frame-pointer \ 176 -funwind-tables 177 178MY_DEFS_Release := \ 179 '-DV8_DEPRECATION_WARNINGS' \ 180 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 181 '-D_FILE_OFFSET_BITS=64' \ 182 '-DNO_TCMALLOC' \ 183 '-DDISABLE_NACL' \ 184 '-DCHROMIUM_BUILD' \ 185 '-DUSE_LIBJPEG_TURBO=1' \ 186 '-DUSE_PROPRIETARY_CODECS' \ 187 '-DENABLE_CONFIGURATION_POLICY' \ 188 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 189 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 190 '-DENABLE_EGLIMAGE=1' \ 191 '-DCLD_VERSION=1' \ 192 '-DENABLE_PRINTING=1' \ 193 '-DENABLE_MANAGED_USERS=1' \ 194 '-DUSE_OPENSSL=1' \ 195 '-DANDROID' \ 196 '-D__GNU_SOURCE=1' \ 197 '-DUSE_STLPORT=1' \ 198 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 199 '-DCHROME_BUILD_ID=""' \ 200 '-DNDEBUG' \ 201 '-DNVALGRIND' \ 202 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 203 204 205# Include paths placed before CFLAGS/CPPFLAGS 206LOCAL_C_INCLUDES_Release := \ 207 $(LOCAL_PATH)/third_party/re2 \ 208 $(LOCAL_PATH) \ 209 $(PWD)/frameworks/wilhelm/include \ 210 $(PWD)/bionic \ 211 $(PWD)/external/stlport/stlport 212 213 214# Flags passed to only C++ (and not C) files. 215LOCAL_CPPFLAGS_Release := \ 216 -fno-rtti \ 217 -fno-threadsafe-statics \ 218 -fvisibility-inlines-hidden \ 219 -Wno-deprecated \ 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)) 228LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 229### Rules for final target. 230 231LOCAL_LDFLAGS_Debug := \ 232 -Wl,--fatal-warnings \ 233 -Wl,-z,now \ 234 -Wl,-z,relro \ 235 -Wl,-z,noexecstack \ 236 -fPIC \ 237 -m32 \ 238 -fuse-ld=gold \ 239 -nostdlib \ 240 -Wl,--no-undefined \ 241 -Wl,--exclude-libs=ALL \ 242 -Wl,--gc-sections \ 243 -Wl,--warn-shared-textrel \ 244 -Wl,-O1 \ 245 -Wl,--as-needed 246 247 248LOCAL_LDFLAGS_Release := \ 249 -Wl,--fatal-warnings \ 250 -Wl,-z,now \ 251 -Wl,-z,relro \ 252 -Wl,-z,noexecstack \ 253 -fPIC \ 254 -m32 \ 255 -fuse-ld=gold \ 256 -nostdlib \ 257 -Wl,--no-undefined \ 258 -Wl,--exclude-libs=ALL \ 259 -Wl,-O1 \ 260 -Wl,--as-needed \ 261 -Wl,--gc-sections \ 262 -Wl,--warn-shared-textrel 263 264 265LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 266 267LOCAL_STATIC_LIBRARIES := 268 269# Enable grouping to fix circular references 270LOCAL_GROUP_STATIC_LIBRARIES := true 271 272LOCAL_SHARED_LIBRARIES := \ 273 libstlport \ 274 libdl 275 276# Add target alias to "gyp_all_modules" target. 277.PHONY: gyp_all_modules 278gyp_all_modules: third_party_re2_re2_gyp 279 280# Alias gyp target name. 281.PHONY: re2 282re2: third_party_re2_re2_gyp 283 284include $(BUILD_STATIC_LIBRARY) 285