Home | History | Annotate | Download | only in re2
      1 # This file is generated by gyp; do not edit.
      2 
      3 include $(CLEAR_VARS)
      4 
      5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
      6 LOCAL_MODULE := third_party_re2_re2_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
      9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     11 
     12 # Make sure our deps are built first.
     13 GYP_TARGET_DEPENDENCIES :=
     14 
     15 GYP_GENERATED_OUTPUTS :=
     16 
     17 # Make sure our deps and generated files are built first.
     18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     19 
     20 LOCAL_CPP_EXTENSION := .cc
     21 LOCAL_GENERATED_SOURCES :=
     22 
     23 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     24 
     25 LOCAL_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.
     54 MY_CFLAGS_Debug := \
     55 	-fstack-protector \
     56 	--param=ssp-buffer-size=4 \
     57 	-fno-strict-aliasing \
     58 	-Wno-unused-parameter \
     59 	-Wno-missing-field-initializers \
     60 	-fvisibility=hidden \
     61 	-pipe \
     62 	-fPIC \
     63 	-Wno-unused-local-typedefs \
     64 	-Wno-format \
     65 	-fno-tree-sra \
     66 	-fno-caller-saves \
     67 	-Wno-psabi \
     68 	-fno-partial-inlining \
     69 	-fno-early-inlining \
     70 	-fno-tree-copy-prop \
     71 	-fno-tree-loop-optimize \
     72 	-fno-move-loop-invariants \
     73 	-ffunction-sections \
     74 	-funwind-tables \
     75 	-g \
     76 	-fstack-protector \
     77 	-fno-short-enums \
     78 	-finline-limit=64 \
     79 	-Wa,--noexecstack \
     80 	-U_FORTIFY_SOURCE \
     81 	-Wno-extra \
     82 	-Wno-ignored-qualifiers \
     83 	-Wno-type-limits \
     84 	-Wno-unused-but-set-variable \
     85 	-Wno-address \
     86 	-Wno-format-security \
     87 	-Wno-return-type \
     88 	-Wno-sequence-point \
     89 	-Os \
     90 	-g \
     91 	-gdwarf-4 \
     92 	-fdata-sections \
     93 	-ffunction-sections \
     94 	-fomit-frame-pointer \
     95 	-funwind-tables
     96 
     97 MY_DEFS_Debug := \
     98 	'-DV8_DEPRECATION_WARNINGS' \
     99 	'-D_FILE_OFFSET_BITS=64' \
    100 	'-DNO_TCMALLOC' \
    101 	'-DDISABLE_NACL' \
    102 	'-DCHROMIUM_BUILD' \
    103 	'-DUSE_LIBJPEG_TURBO=1' \
    104 	'-DENABLE_WEBRTC=1' \
    105 	'-DUSE_PROPRIETARY_CODECS' \
    106 	'-DENABLE_BROWSER_CDMS' \
    107 	'-DENABLE_CONFIGURATION_POLICY' \
    108 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    109 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    110 	'-DENABLE_EGLIMAGE=1' \
    111 	'-DCLD_VERSION=1' \
    112 	'-DENABLE_PRINTING=1' \
    113 	'-DENABLE_MANAGED_USERS=1' \
    114 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    115 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    116 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    117 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    118 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    119 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    120 	'-DVIDEO_HOLE=1' \
    121 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    122 	'-DUSE_OPENSSL=1' \
    123 	'-DUSE_OPENSSL_CERTS=1' \
    124 	'-DANDROID' \
    125 	'-D__GNU_SOURCE=1' \
    126 	'-DUSE_STLPORT=1' \
    127 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    128 	'-DCHROME_BUILD_ID=""' \
    129 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    130 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    131 	'-D_DEBUG'
    132 
    133 
    134 # Include paths placed before CFLAGS/CPPFLAGS
    135 LOCAL_C_INCLUDES_Debug := \
    136 	$(gyp_shared_intermediate_dir) \
    137 	$(LOCAL_PATH)/third_party/re2 \
    138 	$(LOCAL_PATH) \
    139 	$(PWD)/frameworks/wilhelm/include \
    140 	$(PWD)/bionic \
    141 	$(PWD)/external/stlport/stlport
    142 
    143 
    144 # Flags passed to only C++ (and not C) files.
    145 LOCAL_CPPFLAGS_Debug := \
    146 	-fno-exceptions \
    147 	-fno-rtti \
    148 	-fno-threadsafe-statics \
    149 	-fvisibility-inlines-hidden \
    150 	-Wno-deprecated \
    151 	-Wno-abi \
    152 	-std=gnu++11 \
    153 	-Wno-narrowing \
    154 	-Wno-literal-suffix \
    155 	-Wno-non-virtual-dtor \
    156 	-Wno-sign-promo \
    157 	-Wno-non-virtual-dtor
    158 
    159 
    160 # Flags passed to both C and C++ files.
    161 MY_CFLAGS_Release := \
    162 	-fstack-protector \
    163 	--param=ssp-buffer-size=4 \
    164 	-fno-strict-aliasing \
    165 	-Wno-unused-parameter \
    166 	-Wno-missing-field-initializers \
    167 	-fvisibility=hidden \
    168 	-pipe \
    169 	-fPIC \
    170 	-Wno-unused-local-typedefs \
    171 	-Wno-format \
    172 	-fno-tree-sra \
    173 	-fno-caller-saves \
    174 	-Wno-psabi \
    175 	-fno-partial-inlining \
    176 	-fno-early-inlining \
    177 	-fno-tree-copy-prop \
    178 	-fno-tree-loop-optimize \
    179 	-fno-move-loop-invariants \
    180 	-ffunction-sections \
    181 	-funwind-tables \
    182 	-g \
    183 	-fstack-protector \
    184 	-fno-short-enums \
    185 	-finline-limit=64 \
    186 	-Wa,--noexecstack \
    187 	-U_FORTIFY_SOURCE \
    188 	-Wno-extra \
    189 	-Wno-ignored-qualifiers \
    190 	-Wno-type-limits \
    191 	-Wno-unused-but-set-variable \
    192 	-Wno-address \
    193 	-Wno-format-security \
    194 	-Wno-return-type \
    195 	-Wno-sequence-point \
    196 	-Os \
    197 	-fno-ident \
    198 	-fdata-sections \
    199 	-ffunction-sections \
    200 	-fomit-frame-pointer \
    201 	-funwind-tables
    202 
    203 MY_DEFS_Release := \
    204 	'-DV8_DEPRECATION_WARNINGS' \
    205 	'-D_FILE_OFFSET_BITS=64' \
    206 	'-DNO_TCMALLOC' \
    207 	'-DDISABLE_NACL' \
    208 	'-DCHROMIUM_BUILD' \
    209 	'-DUSE_LIBJPEG_TURBO=1' \
    210 	'-DENABLE_WEBRTC=1' \
    211 	'-DUSE_PROPRIETARY_CODECS' \
    212 	'-DENABLE_BROWSER_CDMS' \
    213 	'-DENABLE_CONFIGURATION_POLICY' \
    214 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    215 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    216 	'-DENABLE_EGLIMAGE=1' \
    217 	'-DCLD_VERSION=1' \
    218 	'-DENABLE_PRINTING=1' \
    219 	'-DENABLE_MANAGED_USERS=1' \
    220 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    221 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    222 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    223 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    224 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    225 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    226 	'-DVIDEO_HOLE=1' \
    227 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    228 	'-DUSE_OPENSSL=1' \
    229 	'-DUSE_OPENSSL_CERTS=1' \
    230 	'-DANDROID' \
    231 	'-D__GNU_SOURCE=1' \
    232 	'-DUSE_STLPORT=1' \
    233 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    234 	'-DCHROME_BUILD_ID=""' \
    235 	'-DNDEBUG' \
    236 	'-DNVALGRIND' \
    237 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    238 
    239 
    240 # Include paths placed before CFLAGS/CPPFLAGS
    241 LOCAL_C_INCLUDES_Release := \
    242 	$(gyp_shared_intermediate_dir) \
    243 	$(LOCAL_PATH)/third_party/re2 \
    244 	$(LOCAL_PATH) \
    245 	$(PWD)/frameworks/wilhelm/include \
    246 	$(PWD)/bionic \
    247 	$(PWD)/external/stlport/stlport
    248 
    249 
    250 # Flags passed to only C++ (and not C) files.
    251 LOCAL_CPPFLAGS_Release := \
    252 	-fno-exceptions \
    253 	-fno-rtti \
    254 	-fno-threadsafe-statics \
    255 	-fvisibility-inlines-hidden \
    256 	-Wno-deprecated \
    257 	-Wno-abi \
    258 	-std=gnu++11 \
    259 	-Wno-narrowing \
    260 	-Wno-literal-suffix \
    261 	-Wno-non-virtual-dtor \
    262 	-Wno-sign-promo \
    263 	-Wno-non-virtual-dtor
    264 
    265 
    266 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    267 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    268 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    269 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    270 ### Rules for final target.
    271 
    272 LOCAL_SHARED_LIBRARIES := \
    273 	libstlport \
    274 	libdl
    275 
    276 # Add target alias to "gyp_all_modules" target.
    277 .PHONY: gyp_all_modules
    278 gyp_all_modules: third_party_re2_re2_gyp
    279 
    280 # Alias gyp target name.
    281 .PHONY: re2
    282 re2: third_party_re2_re2_gyp
    283 
    284 include $(BUILD_STATIC_LIBRARY)
    285