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