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