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