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