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_TAGS := optional
      9 gyp_intermediate_dir := $(call local-intermediates-dir)
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
     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-exceptions \
     57 	-fno-strict-aliasing \
     58 	-Wno-unused-parameter \
     59 	-Wno-missing-field-initializers \
     60 	-fvisibility=hidden \
     61 	-pipe \
     62 	-fPIC \
     63 	-Wno-format \
     64 	-m32 \
     65 	-mmmx \
     66 	-march=pentium4 \
     67 	-msse2 \
     68 	-mfpmath=sse \
     69 	-fuse-ld=gold \
     70 	-ffunction-sections \
     71 	-funwind-tables \
     72 	-g \
     73 	-fno-short-enums \
     74 	-finline-limit=64 \
     75 	-Wa,--noexecstack \
     76 	-U_FORTIFY_SOURCE \
     77 	-Wno-extra \
     78 	-Wno-ignored-qualifiers \
     79 	-Wno-type-limits \
     80 	-fno-stack-protector \
     81 	-Wno-address \
     82 	-Wno-format-security \
     83 	-Wno-return-type \
     84 	-Wno-sequence-point \
     85 	-Os \
     86 	-g \
     87 	-fomit-frame-pointer \
     88 	-fdata-sections \
     89 	-ffunction-sections
     90 
     91 MY_DEFS_Debug := \
     92 	'-DV8_DEPRECATION_WARNINGS' \
     93 	'-D_FILE_OFFSET_BITS=64' \
     94 	'-DNO_TCMALLOC' \
     95 	'-DDISABLE_NACL' \
     96 	'-DCHROMIUM_BUILD' \
     97 	'-DUSE_LIBJPEG_TURBO=1' \
     98 	'-DUSE_PROPRIETARY_CODECS' \
     99 	'-DENABLE_CONFIGURATION_POLICY' \
    100 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    101 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    102 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    103 	'-DUSE_OPENSSL=1' \
    104 	'-DENABLE_EGLIMAGE=1' \
    105 	'-DCLD_VERSION=1' \
    106 	'-DENABLE_PRINTING=1' \
    107 	'-DENABLE_MANAGED_USERS=1' \
    108 	'-DANDROID' \
    109 	'-D__GNU_SOURCE=1' \
    110 	'-DUSE_STLPORT=1' \
    111 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    112 	'-DCHROME_BUILD_ID=""' \
    113 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    114 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    115 	'-D_DEBUG'
    116 
    117 
    118 # Include paths placed before CFLAGS/CPPFLAGS
    119 LOCAL_C_INCLUDES_Debug := \
    120 	$(LOCAL_PATH)/third_party/re2 \
    121 	$(LOCAL_PATH) \
    122 	$(PWD)/frameworks/wilhelm/include \
    123 	$(PWD)/bionic \
    124 	$(PWD)/external/stlport/stlport
    125 
    126 
    127 # Flags passed to only C++ (and not C) files.
    128 LOCAL_CPPFLAGS_Debug := \
    129 	-fno-rtti \
    130 	-fno-threadsafe-statics \
    131 	-fvisibility-inlines-hidden \
    132 	-Wno-deprecated \
    133 	-Wno-error=c++0x-compat \
    134 	-Wno-non-virtual-dtor \
    135 	-Wno-sign-promo \
    136 	-Wno-non-virtual-dtor
    137 
    138 
    139 # Flags passed to both C and C++ files.
    140 MY_CFLAGS_Release := \
    141 	--param=ssp-buffer-size=4 \
    142 	-fno-exceptions \
    143 	-fno-strict-aliasing \
    144 	-Wno-unused-parameter \
    145 	-Wno-missing-field-initializers \
    146 	-fvisibility=hidden \
    147 	-pipe \
    148 	-fPIC \
    149 	-Wno-format \
    150 	-m32 \
    151 	-mmmx \
    152 	-march=pentium4 \
    153 	-msse2 \
    154 	-mfpmath=sse \
    155 	-fuse-ld=gold \
    156 	-ffunction-sections \
    157 	-funwind-tables \
    158 	-g \
    159 	-fno-short-enums \
    160 	-finline-limit=64 \
    161 	-Wa,--noexecstack \
    162 	-U_FORTIFY_SOURCE \
    163 	-Wno-extra \
    164 	-Wno-ignored-qualifiers \
    165 	-Wno-type-limits \
    166 	-fno-stack-protector \
    167 	-Wno-address \
    168 	-Wno-format-security \
    169 	-Wno-return-type \
    170 	-Wno-sequence-point \
    171 	-Os \
    172 	-fno-ident \
    173 	-fdata-sections \
    174 	-ffunction-sections \
    175 	-fomit-frame-pointer \
    176 	-fno-unwind-tables \
    177 	-fno-asynchronous-unwind-tables
    178 
    179 MY_DEFS_Release := \
    180 	'-DV8_DEPRECATION_WARNINGS' \
    181 	'-D_FILE_OFFSET_BITS=64' \
    182 	'-DNO_TCMALLOC' \
    183 	'-DDISABLE_NACL' \
    184 	'-DCHROMIUM_BUILD' \
    185 	'-DUSE_LIBJPEG_TURBO=1' \
    186 	'-DUSE_PROPRIETARY_CODECS' \
    187 	'-DENABLE_CONFIGURATION_POLICY' \
    188 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    189 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    190 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    191 	'-DUSE_OPENSSL=1' \
    192 	'-DENABLE_EGLIMAGE=1' \
    193 	'-DCLD_VERSION=1' \
    194 	'-DENABLE_PRINTING=1' \
    195 	'-DENABLE_MANAGED_USERS=1' \
    196 	'-DANDROID' \
    197 	'-D__GNU_SOURCE=1' \
    198 	'-DUSE_STLPORT=1' \
    199 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    200 	'-DCHROME_BUILD_ID=""' \
    201 	'-DNDEBUG' \
    202 	'-DNVALGRIND' \
    203 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    204 
    205 
    206 # Include paths placed before CFLAGS/CPPFLAGS
    207 LOCAL_C_INCLUDES_Release := \
    208 	$(LOCAL_PATH)/third_party/re2 \
    209 	$(LOCAL_PATH) \
    210 	$(PWD)/frameworks/wilhelm/include \
    211 	$(PWD)/bionic \
    212 	$(PWD)/external/stlport/stlport
    213 
    214 
    215 # Flags passed to only C++ (and not C) files.
    216 LOCAL_CPPFLAGS_Release := \
    217 	-fno-rtti \
    218 	-fno-threadsafe-statics \
    219 	-fvisibility-inlines-hidden \
    220 	-Wno-deprecated \
    221 	-Wno-error=c++0x-compat \
    222 	-Wno-non-virtual-dtor \
    223 	-Wno-sign-promo \
    224 	-Wno-non-virtual-dtor
    225 
    226 
    227 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    228 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    229 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    230 ### Rules for final target.
    231 
    232 LOCAL_LDFLAGS_Debug := \
    233 	-Wl,-z,now \
    234 	-Wl,-z,relro \
    235 	-Wl,-z,noexecstack \
    236 	-fPIC \
    237 	-m32 \
    238 	-fuse-ld=gold \
    239 	-nostdlib \
    240 	-Wl,--no-undefined \
    241 	-Wl,--exclude-libs=ALL \
    242 	-Wl,--fatal-warnings \
    243 	-Wl,--gc-sections \
    244 	-Wl,--warn-shared-textrel \
    245 	-Wl,-O1 \
    246 	-Wl,--as-needed
    247 
    248 
    249 LOCAL_LDFLAGS_Release := \
    250 	-Wl,-z,now \
    251 	-Wl,-z,relro \
    252 	-Wl,-z,noexecstack \
    253 	-fPIC \
    254 	-m32 \
    255 	-fuse-ld=gold \
    256 	-nostdlib \
    257 	-Wl,--no-undefined \
    258 	-Wl,--exclude-libs=ALL \
    259 	-Wl,-O1 \
    260 	-Wl,--as-needed \
    261 	-Wl,--gc-sections \
    262 	-Wl,--fatal-warnings \
    263 	-Wl,--warn-shared-textrel
    264 
    265 
    266 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    267 
    268 LOCAL_STATIC_LIBRARIES :=
    269 
    270 # Enable grouping to fix circular references
    271 LOCAL_GROUP_STATIC_LIBRARIES := true
    272 
    273 LOCAL_SHARED_LIBRARIES := \
    274 	libstlport \
    275 	libdl
    276 
    277 # Add target alias to "gyp_all_modules" target.
    278 .PHONY: gyp_all_modules
    279 gyp_all_modules: third_party_re2_re2_gyp
    280 
    281 # Alias gyp target name.
    282 .PHONY: re2
    283 re2: third_party_re2_re2_gyp
    284 
    285 include $(BUILD_STATIC_LIBRARY)
    286