re2.target.linux-mips.mk revision 7d4cd473f85ac64c3747c96c277f9e506a0d2246
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 := \ 55 -fstack-protector \ 56 --param=ssp-buffer-size=4 \ 57 \ 58 -fno-exceptions \ 59 -fno-strict-aliasing \ 60 -Wno-unused-parameter \ 61 -Wno-missing-field-initializers \ 62 -fvisibility=hidden \ 63 -pipe \ 64 -fPIC \ 65 -Wno-format \ 66 -EL \ 67 -mhard-float \ 68 -mips32r2 \ 69 -Wa,-mips32r2 \ 70 --sysroot=/automerger/android-src/external/chromium_org/mipsel-sysroot/sysroot \ 71 -ffunction-sections \ 72 -funwind-tables \ 73 -g \ 74 -fstack-protector \ 75 -fno-short-enums \ 76 -finline-limit=64 \ 77 -Wa,--noexecstack \ 78 -U_FORTIFY_SOURCE \ 79 -Wno-extra \ 80 -Wno-ignored-qualifiers \ 81 -Wno-type-limits \ 82 -Wno-address \ 83 -Wno-format-security \ 84 -Wno-return-type \ 85 -Wno-sequence-point \ 86 -Os \ 87 -g \ 88 -fomit-frame-pointer \ 89 -fdata-sections \ 90 -ffunction-sections 91 92MY_CFLAGS_C := 93 94MY_DEFS := \ 95 '-DANGLE_DX11' \ 96 '-D_FILE_OFFSET_BITS=64' \ 97 '-DNO_TCMALLOC' \ 98 '-DDISABLE_NACL' \ 99 '-DCHROMIUM_BUILD' \ 100 '-DUSE_LIBJPEG_TURBO=1' \ 101 '-DUSE_PROPRIETARY_CODECS' \ 102 '-DENABLE_GPU=1' \ 103 '-DUSE_OPENSSL=1' \ 104 '-DENABLE_EGLIMAGE=1' \ 105 '-DENABLE_LANGUAGE_DETECTION=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 115LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS) 116 117# Include paths placed before CFLAGS/CPPFLAGS 118LOCAL_C_INCLUDES := \ 119 $(LOCAL_PATH)/third_party/re2 \ 120 $(LOCAL_PATH) \ 121 $(PWD)/frameworks/wilhelm/include \ 122 $(PWD)/bionic \ 123 $(PWD)/external/stlport/stlport 124 125LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES) 126 127# Flags passed to only C++ (and not C) files. 128LOCAL_CPPFLAGS := \ 129 -fno-rtti \ 130 -fno-threadsafe-statics \ 131 -fvisibility-inlines-hidden \ 132 -Wno-deprecated \ 133 -Wno-uninitialized \ 134 -Wno-error=c++0x-compat \ 135 -Wno-non-virtual-dtor \ 136 -Wno-sign-promo \ 137 -Wno-non-virtual-dtor 138 139### Rules for final target. 140 141LOCAL_LDFLAGS := \ 142 -Wl,-z,now \ 143 -Wl,-z,relro \ 144 -Wl,-z,noexecstack \ 145 -fPIC \ 146 -EL \ 147 -Wl,--no-keep-memory \ 148 --sysroot=/automerger/android-src/external/chromium_org/mipsel-sysroot/sysroot \ 149 \ 150 -nostdlib \ 151 -Wl,--no-undefined \ 152 -Wl,--exclude-libs=ALL \ 153 -Wl,--gc-sections \ 154 -Wl,-O1 \ 155 -Wl,--as-needed 156 157 158LOCAL_STATIC_LIBRARIES := 159 160# Enable grouping to fix circular references 161LOCAL_GROUP_STATIC_LIBRARIES := true 162 163LOCAL_SHARED_LIBRARIES := \ 164 libstlport \ 165 libdl 166 167# Add target alias to "gyp_all_modules" target. 168.PHONY: gyp_all_modules 169gyp_all_modules: third_party_re2_re2_gyp 170 171# Alias gyp target name. 172.PHONY: re2 173re2: third_party_re2_re2_gyp 174 175include $(BUILD_STATIC_LIBRARY) 176