re2.target.darwin-arm.mk revision 58537e28ecd584eab876aee8be7156509866d23a
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 -fstack-protector \ 56 --param=ssp-buffer-size=4 \ 57 -fno-exceptions \ 58 -fno-strict-aliasing \ 59 -Wno-unused-parameter \ 60 -Wno-missing-field-initializers \ 61 -fvisibility=hidden \ 62 -pipe \ 63 -fPIC \ 64 -Wno-format \ 65 -fno-tree-sra \ 66 -fuse-ld=gold \ 67 -Wno-psabi \ 68 -ffunction-sections \ 69 -funwind-tables \ 70 -g \ 71 -fstack-protector \ 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-address \ 80 -Wno-format-security \ 81 -Wno-return-type \ 82 -Wno-sequence-point \ 83 -Os \ 84 -g \ 85 -fomit-frame-pointer \ 86 -fdata-sections \ 87 -ffunction-sections 88 89MY_DEFS_Debug := \ 90 '-DANGLE_DX11' \ 91 '-DWTF_VECTOR_INITIAL_SIZE=16' \ 92 '-D_FILE_OFFSET_BITS=64' \ 93 '-DNO_TCMALLOC' \ 94 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 95 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 96 '-DDISABLE_NACL' \ 97 '-DCHROMIUM_BUILD' \ 98 '-DUSE_LIBJPEG_TURBO=1' \ 99 '-DUSE_PROPRIETARY_CODECS' \ 100 '-DENABLE_CONFIGURATION_POLICY' \ 101 '-DENABLE_GPU=1' \ 102 '-DUSE_OPENSSL=1' \ 103 '-DENABLE_EGLIMAGE=1' \ 104 '-DCLD_VERSION=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-abi \ 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 -fstack-protector \ 140 --param=ssp-buffer-size=4 \ 141 -fno-exceptions \ 142 -fno-strict-aliasing \ 143 -Wno-unused-parameter \ 144 -Wno-missing-field-initializers \ 145 -fvisibility=hidden \ 146 -pipe \ 147 -fPIC \ 148 -Wno-format \ 149 -fno-tree-sra \ 150 -fuse-ld=gold \ 151 -Wno-psabi \ 152 -ffunction-sections \ 153 -funwind-tables \ 154 -g \ 155 -fstack-protector \ 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 -Os \ 168 -fno-ident \ 169 -fdata-sections \ 170 -ffunction-sections \ 171 -fomit-frame-pointer 172 173MY_DEFS_Release := \ 174 '-DANGLE_DX11' \ 175 '-DWTF_VECTOR_INITIAL_SIZE=16' \ 176 '-D_FILE_OFFSET_BITS=64' \ 177 '-DNO_TCMALLOC' \ 178 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 179 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 180 '-DDISABLE_NACL' \ 181 '-DCHROMIUM_BUILD' \ 182 '-DUSE_LIBJPEG_TURBO=1' \ 183 '-DUSE_PROPRIETARY_CODECS' \ 184 '-DENABLE_CONFIGURATION_POLICY' \ 185 '-DENABLE_GPU=1' \ 186 '-DUSE_OPENSSL=1' \ 187 '-DENABLE_EGLIMAGE=1' \ 188 '-DCLD_VERSION=1' \ 189 '-DANDROID' \ 190 '-D__GNU_SOURCE=1' \ 191 '-DUSE_STLPORT=1' \ 192 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 193 '-DCHROME_BUILD_ID=""' \ 194 '-DNDEBUG' \ 195 '-DNVALGRIND' \ 196 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 197 198 199# Include paths placed before CFLAGS/CPPFLAGS 200LOCAL_C_INCLUDES_Release := \ 201 $(LOCAL_PATH)/third_party/re2 \ 202 $(LOCAL_PATH) \ 203 $(PWD)/frameworks/wilhelm/include \ 204 $(PWD)/bionic \ 205 $(PWD)/external/stlport/stlport 206 207 208# Flags passed to only C++ (and not C) files. 209LOCAL_CPPFLAGS_Release := \ 210 -fno-rtti \ 211 -fno-threadsafe-statics \ 212 -fvisibility-inlines-hidden \ 213 -Wno-deprecated \ 214 -Wno-abi \ 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 -Wl,-z,relro \ 232 -Wl,-z,now \ 233 -fuse-ld=gold \ 234 -nostdlib \ 235 -Wl,--no-undefined \ 236 -Wl,--exclude-libs=ALL \ 237 -Wl,--icf=safe \ 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 -Wl,-z,relro \ 251 -Wl,-z,now \ 252 -fuse-ld=gold \ 253 -nostdlib \ 254 -Wl,--no-undefined \ 255 -Wl,--exclude-libs=ALL \ 256 -Wl,--icf=safe \ 257 -Wl,-O1 \ 258 -Wl,--as-needed \ 259 -Wl,--gc-sections \ 260 -Wl,--fatal-warnings \ 261 -Wl,--warn-shared-textrel 262 263 264LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 265 266LOCAL_STATIC_LIBRARIES := 267 268# Enable grouping to fix circular references 269LOCAL_GROUP_STATIC_LIBRARIES := true 270 271LOCAL_SHARED_LIBRARIES := \ 272 libstlport \ 273 libdl 274 275# Add target alias to "gyp_all_modules" target. 276.PHONY: gyp_all_modules 277gyp_all_modules: third_party_re2_re2_gyp 278 279# Alias gyp target name. 280.PHONY: re2 281re2: third_party_re2_re2_gyp 282 283include $(BUILD_STATIC_LIBRARY) 284