re2.target.linux-mips.mk revision 0de6073388f4e2780db8536178b129cd8f6ab386
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 9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13# Make sure our deps are built first. 14GYP_TARGET_DEPENDENCIES := 15 16GYP_GENERATED_OUTPUTS := 17 18# Make sure our deps and generated files are built first. 19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21LOCAL_CPP_EXTENSION := .cc 22LOCAL_GENERATED_SOURCES := 23 24GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26LOCAL_SRC_FILES := \ 27 third_party/re2/re2/bitstate.cc \ 28 third_party/re2/re2/compile.cc \ 29 third_party/re2/re2/dfa.cc \ 30 third_party/re2/re2/filtered_re2.cc \ 31 third_party/re2/re2/mimics_pcre.cc \ 32 third_party/re2/re2/nfa.cc \ 33 third_party/re2/re2/onepass.cc \ 34 third_party/re2/re2/parse.cc \ 35 third_party/re2/re2/perl_groups.cc \ 36 third_party/re2/re2/prefilter.cc \ 37 third_party/re2/re2/prefilter_tree.cc \ 38 third_party/re2/re2/prog.cc \ 39 third_party/re2/re2/re2.cc \ 40 third_party/re2/re2/regexp.cc \ 41 third_party/re2/re2/set.cc \ 42 third_party/re2/re2/simplify.cc \ 43 third_party/re2/re2/tostring.cc \ 44 third_party/re2/re2/unicode_casefold.cc \ 45 third_party/re2/re2/unicode_groups.cc \ 46 third_party/re2/util/arena.cc \ 47 third_party/re2/util/hash.cc \ 48 third_party/re2/util/rune.cc \ 49 third_party/re2/util/stringpiece.cc \ 50 third_party/re2/util/stringprintf.cc \ 51 third_party/re2/util/strutil.cc 52 53 54# Flags passed to both C and C++ files. 55MY_CFLAGS_Debug := \ 56 -fstack-protector \ 57 --param=ssp-buffer-size=4 \ 58 \ 59 -fno-exceptions \ 60 -fno-strict-aliasing \ 61 -Wno-unused-parameter \ 62 -Wno-missing-field-initializers \ 63 -fvisibility=hidden \ 64 -pipe \ 65 -fPIC \ 66 -Wno-format \ 67 -EL \ 68 -mhard-float \ 69 -ffunction-sections \ 70 -funwind-tables \ 71 -g \ 72 -fstack-protector \ 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-unused-but-set-variable \ 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 '-DENABLE_WEBRTC=1' \ 101 '-DUSE_PROPRIETARY_CODECS' \ 102 '-DENABLE_CONFIGURATION_POLICY' \ 103 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 104 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 105 '-DENABLE_EGLIMAGE=1' \ 106 '-DCLD_VERSION=1' \ 107 '-DENABLE_PRINTING=1' \ 108 '-DENABLE_MANAGED_USERS=1' \ 109 '-DVIDEO_HOLE=1' \ 110 '-DUSE_OPENSSL=1' \ 111 '-DUSE_OPENSSL_CERTS=1' \ 112 '-DANDROID' \ 113 '-D__GNU_SOURCE=1' \ 114 '-DUSE_STLPORT=1' \ 115 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 116 '-DCHROME_BUILD_ID=""' \ 117 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 118 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 119 '-D_DEBUG' 120 121 122# Include paths placed before CFLAGS/CPPFLAGS 123LOCAL_C_INCLUDES_Debug := \ 124 $(LOCAL_PATH)/third_party/re2 \ 125 $(LOCAL_PATH) \ 126 $(PWD)/frameworks/wilhelm/include \ 127 $(PWD)/bionic \ 128 $(PWD)/external/stlport/stlport 129 130 131# Flags passed to only C++ (and not C) files. 132LOCAL_CPPFLAGS_Debug := \ 133 -fno-rtti \ 134 -fno-threadsafe-statics \ 135 -fvisibility-inlines-hidden \ 136 -Wno-deprecated \ 137 -Wno-uninitialized \ 138 -Wno-non-virtual-dtor \ 139 -Wno-sign-promo \ 140 -Wno-non-virtual-dtor 141 142 143# Flags passed to both C and C++ files. 144MY_CFLAGS_Release := \ 145 -fstack-protector \ 146 --param=ssp-buffer-size=4 \ 147 \ 148 -fno-exceptions \ 149 -fno-strict-aliasing \ 150 -Wno-unused-parameter \ 151 -Wno-missing-field-initializers \ 152 -fvisibility=hidden \ 153 -pipe \ 154 -fPIC \ 155 -Wno-format \ 156 -EL \ 157 -mhard-float \ 158 -ffunction-sections \ 159 -funwind-tables \ 160 -g \ 161 -fstack-protector \ 162 -fno-short-enums \ 163 -finline-limit=64 \ 164 -Wa,--noexecstack \ 165 -U_FORTIFY_SOURCE \ 166 -Wno-extra \ 167 -Wno-ignored-qualifiers \ 168 -Wno-type-limits \ 169 -Wno-unused-but-set-variable \ 170 -Wno-address \ 171 -Wno-format-security \ 172 -Wno-return-type \ 173 -Wno-sequence-point \ 174 -Os \ 175 -fno-ident \ 176 -fdata-sections \ 177 -ffunction-sections \ 178 -fomit-frame-pointer \ 179 -funwind-tables 180 181MY_DEFS_Release := \ 182 '-DV8_DEPRECATION_WARNINGS' \ 183 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 184 '-D_FILE_OFFSET_BITS=64' \ 185 '-DNO_TCMALLOC' \ 186 '-DDISABLE_NACL' \ 187 '-DCHROMIUM_BUILD' \ 188 '-DUSE_LIBJPEG_TURBO=1' \ 189 '-DENABLE_WEBRTC=1' \ 190 '-DUSE_PROPRIETARY_CODECS' \ 191 '-DENABLE_CONFIGURATION_POLICY' \ 192 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 193 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 194 '-DENABLE_EGLIMAGE=1' \ 195 '-DCLD_VERSION=1' \ 196 '-DENABLE_PRINTING=1' \ 197 '-DENABLE_MANAGED_USERS=1' \ 198 '-DVIDEO_HOLE=1' \ 199 '-DUSE_OPENSSL=1' \ 200 '-DUSE_OPENSSL_CERTS=1' \ 201 '-DANDROID' \ 202 '-D__GNU_SOURCE=1' \ 203 '-DUSE_STLPORT=1' \ 204 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 205 '-DCHROME_BUILD_ID=""' \ 206 '-DNDEBUG' \ 207 '-DNVALGRIND' \ 208 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 209 210 211# Include paths placed before CFLAGS/CPPFLAGS 212LOCAL_C_INCLUDES_Release := \ 213 $(LOCAL_PATH)/third_party/re2 \ 214 $(LOCAL_PATH) \ 215 $(PWD)/frameworks/wilhelm/include \ 216 $(PWD)/bionic \ 217 $(PWD)/external/stlport/stlport 218 219 220# Flags passed to only C++ (and not C) files. 221LOCAL_CPPFLAGS_Release := \ 222 -fno-rtti \ 223 -fno-threadsafe-statics \ 224 -fvisibility-inlines-hidden \ 225 -Wno-deprecated \ 226 -Wno-uninitialized \ 227 -Wno-non-virtual-dtor \ 228 -Wno-sign-promo \ 229 -Wno-non-virtual-dtor 230 231 232LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 233LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 234LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 235LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 236### Rules for final target. 237 238LOCAL_LDFLAGS_Debug := \ 239 -Wl,-z,now \ 240 -Wl,-z,relro \ 241 -Wl,--fatal-warnings \ 242 -Wl,-z,noexecstack \ 243 -fPIC \ 244 -EL \ 245 -Wl,--no-keep-memory \ 246 -nostdlib \ 247 -Wl,--no-undefined \ 248 -Wl,--exclude-libs=ALL \ 249 -Wl,--warn-shared-textrel \ 250 -Wl,-O1 \ 251 -Wl,--as-needed 252 253 254LOCAL_LDFLAGS_Release := \ 255 -Wl,-z,now \ 256 -Wl,-z,relro \ 257 -Wl,--fatal-warnings \ 258 -Wl,-z,noexecstack \ 259 -fPIC \ 260 -EL \ 261 -Wl,--no-keep-memory \ 262 -nostdlib \ 263 -Wl,--no-undefined \ 264 -Wl,--exclude-libs=ALL \ 265 -Wl,-O1 \ 266 -Wl,--as-needed \ 267 -Wl,--gc-sections \ 268 -Wl,--warn-shared-textrel 269 270 271LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 272 273LOCAL_STATIC_LIBRARIES := 274 275# Enable grouping to fix circular references 276LOCAL_GROUP_STATIC_LIBRARIES := true 277 278LOCAL_SHARED_LIBRARIES := \ 279 libstlport \ 280 libdl 281 282# Add target alias to "gyp_all_modules" target. 283.PHONY: gyp_all_modules 284gyp_all_modules: third_party_re2_re2_gyp 285 286# Alias gyp target name. 287.PHONY: re2 288re2: third_party_re2_re2_gyp 289 290include $(BUILD_STATIC_LIBRARY) 291