re2.target.linux-x86.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 --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 '-DV8_DEPRECATION_WARNINGS' \ 94 '-D_FILE_OFFSET_BITS=64' \ 95 '-DNO_TCMALLOC' \ 96 '-DDISABLE_NACL' \ 97 '-DCHROMIUM_BUILD' \ 98 '-DUSE_LIBJPEG_TURBO=1' \ 99 '-DUSE_PROPRIETARY_CODECS' \ 100 '-DENABLE_CONFIGURATION_POLICY' \ 101 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 102 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 103 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 104 '-DUSE_OPENSSL=1' \ 105 '-DENABLE_EGLIMAGE=1' \ 106 '-DCLD_VERSION=1' \ 107 '-DENABLE_PRINTING=1' \ 108 '-DENABLE_MANAGED_USERS=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-error=c++0x-compat \ 135 -Wno-non-virtual-dtor \ 136 -Wno-sign-promo \ 137 -Wno-non-virtual-dtor 138 139 140# Flags passed to both C and C++ files. 141MY_CFLAGS_Release := \ 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 -m32 \ 152 -mmmx \ 153 -march=pentium4 \ 154 -msse2 \ 155 -mfpmath=sse \ 156 -fuse-ld=gold \ 157 -ffunction-sections \ 158 -funwind-tables \ 159 -g \ 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 -fno-stack-protector \ 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 -fno-unwind-tables \ 178 -fno-asynchronous-unwind-tables 179 180MY_DEFS_Release := \ 181 '-DANGLE_DX11' \ 182 '-DV8_DEPRECATION_WARNINGS' \ 183 '-D_FILE_OFFSET_BITS=64' \ 184 '-DNO_TCMALLOC' \ 185 '-DDISABLE_NACL' \ 186 '-DCHROMIUM_BUILD' \ 187 '-DUSE_LIBJPEG_TURBO=1' \ 188 '-DUSE_PROPRIETARY_CODECS' \ 189 '-DENABLE_CONFIGURATION_POLICY' \ 190 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 191 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 192 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 193 '-DUSE_OPENSSL=1' \ 194 '-DENABLE_EGLIMAGE=1' \ 195 '-DCLD_VERSION=1' \ 196 '-DENABLE_PRINTING=1' \ 197 '-DENABLE_MANAGED_USERS=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-error=c++0x-compat \ 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)) 232### Rules for final target. 233 234LOCAL_LDFLAGS_Debug := \ 235 -Wl,-z,now \ 236 -Wl,-z,relro \ 237 -Wl,-z,noexecstack \ 238 -fPIC \ 239 -m32 \ 240 -fuse-ld=gold \ 241 -nostdlib \ 242 -Wl,--no-undefined \ 243 -Wl,--exclude-libs=ALL \ 244 -Wl,--fatal-warnings \ 245 -Wl,--gc-sections \ 246 -Wl,--warn-shared-textrel \ 247 -Wl,-O1 \ 248 -Wl,--as-needed 249 250 251LOCAL_LDFLAGS_Release := \ 252 -Wl,-z,now \ 253 -Wl,-z,relro \ 254 -Wl,-z,noexecstack \ 255 -fPIC \ 256 -m32 \ 257 -fuse-ld=gold \ 258 -nostdlib \ 259 -Wl,--no-undefined \ 260 -Wl,--exclude-libs=ALL \ 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