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 	-fstack-protector \
     56 	--param=ssp-buffer-size=4 \
     57 	-fno-exceptions \
     58 	-fno-strict-aliasing \
     59 	-Wno-unused-parameter \
     60 	-Wno-missing-field-initializers \
     61 	-fvisibility=hidden \
     62 	-pipe \
     63 	-fPIC \
     64 	-Wno-format \
     65 	-fno-tree-sra \
     66 	-fuse-ld=gold \
     67 	-Wno-psabi \
     68 	-ffunction-sections \
     69 	-funwind-tables \
     70 	-g \
     71 	-fstack-protector \
     72 	-fno-short-enums \
     73 	-finline-limit=64 \
     74 	-Wa,--noexecstack \
     75 	-U_FORTIFY_SOURCE \
     76 	-Wno-extra \
     77 	-Wno-ignored-qualifiers \
     78 	-Wno-type-limits \
     79 	-Wno-address \
     80 	-Wno-format-security \
     81 	-Wno-return-type \
     82 	-Wno-sequence-point \
     83 	-Os \
     84 	-g \
     85 	-fomit-frame-pointer \
     86 	-fdata-sections \
     87 	-ffunction-sections
     88 
     89 MY_DEFS_Debug := \
     90 	'-DV8_DEPRECATION_WARNINGS' \
     91 	'-D_FILE_OFFSET_BITS=64' \
     92 	'-DNO_TCMALLOC' \
     93 	'-DDISABLE_NACL' \
     94 	'-DCHROMIUM_BUILD' \
     95 	'-DUSE_LIBJPEG_TURBO=1' \
     96 	'-DUSE_PROPRIETARY_CODECS' \
     97 	'-DENABLE_CONFIGURATION_POLICY' \
     98 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     99 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    100 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    101 	'-DUSE_OPENSSL=1' \
    102 	'-DENABLE_EGLIMAGE=1' \
    103 	'-DCLD_VERSION=1' \
    104 	'-DENABLE_PRINTING=1' \
    105 	'-DENABLE_MANAGED_USERS=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 
    115 
    116 # Include paths placed before CFLAGS/CPPFLAGS
    117 LOCAL_C_INCLUDES_Debug := \
    118 	$(LOCAL_PATH)/third_party/re2 \
    119 	$(LOCAL_PATH) \
    120 	$(PWD)/frameworks/wilhelm/include \
    121 	$(PWD)/bionic \
    122 	$(PWD)/external/stlport/stlport
    123 
    124 
    125 # Flags passed to only C++ (and not C) files.
    126 LOCAL_CPPFLAGS_Debug := \
    127 	-fno-rtti \
    128 	-fno-threadsafe-statics \
    129 	-fvisibility-inlines-hidden \
    130 	-Wno-deprecated \
    131 	-Wno-abi \
    132 	-Wno-error=c++0x-compat \
    133 	-Wno-non-virtual-dtor \
    134 	-Wno-sign-promo \
    135 	-Wno-non-virtual-dtor
    136 
    137 
    138 # Flags passed to both C and C++ files.
    139 MY_CFLAGS_Release := \
    140 	-fstack-protector \
    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 	-fno-tree-sra \
    151 	-fuse-ld=gold \
    152 	-Wno-psabi \
    153 	-ffunction-sections \
    154 	-funwind-tables \
    155 	-g \
    156 	-fstack-protector \
    157 	-fno-short-enums \
    158 	-finline-limit=64 \
    159 	-Wa,--noexecstack \
    160 	-U_FORTIFY_SOURCE \
    161 	-Wno-extra \
    162 	-Wno-ignored-qualifiers \
    163 	-Wno-type-limits \
    164 	-Wno-address \
    165 	-Wno-format-security \
    166 	-Wno-return-type \
    167 	-Wno-sequence-point \
    168 	-Os \
    169 	-fno-ident \
    170 	-fdata-sections \
    171 	-ffunction-sections \
    172 	-fomit-frame-pointer
    173 
    174 MY_DEFS_Release := \
    175 	'-DV8_DEPRECATION_WARNINGS' \
    176 	'-D_FILE_OFFSET_BITS=64' \
    177 	'-DNO_TCMALLOC' \
    178 	'-DDISABLE_NACL' \
    179 	'-DCHROMIUM_BUILD' \
    180 	'-DUSE_LIBJPEG_TURBO=1' \
    181 	'-DUSE_PROPRIETARY_CODECS' \
    182 	'-DENABLE_CONFIGURATION_POLICY' \
    183 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    184 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    185 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    186 	'-DUSE_OPENSSL=1' \
    187 	'-DENABLE_EGLIMAGE=1' \
    188 	'-DCLD_VERSION=1' \
    189 	'-DENABLE_PRINTING=1' \
    190 	'-DENABLE_MANAGED_USERS=1' \
    191 	'-DANDROID' \
    192 	'-D__GNU_SOURCE=1' \
    193 	'-DUSE_STLPORT=1' \
    194 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    195 	'-DCHROME_BUILD_ID=""' \
    196 	'-DNDEBUG' \
    197 	'-DNVALGRIND' \
    198 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    199 
    200 
    201 # Include paths placed before CFLAGS/CPPFLAGS
    202 LOCAL_C_INCLUDES_Release := \
    203 	$(LOCAL_PATH)/third_party/re2 \
    204 	$(LOCAL_PATH) \
    205 	$(PWD)/frameworks/wilhelm/include \
    206 	$(PWD)/bionic \
    207 	$(PWD)/external/stlport/stlport
    208 
    209 
    210 # Flags passed to only C++ (and not C) files.
    211 LOCAL_CPPFLAGS_Release := \
    212 	-fno-rtti \
    213 	-fno-threadsafe-statics \
    214 	-fvisibility-inlines-hidden \
    215 	-Wno-deprecated \
    216 	-Wno-abi \
    217 	-Wno-error=c++0x-compat \
    218 	-Wno-non-virtual-dtor \
    219 	-Wno-sign-promo \
    220 	-Wno-non-virtual-dtor
    221 
    222 
    223 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    224 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    225 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    226 ### Rules for final target.
    227 
    228 LOCAL_LDFLAGS_Debug := \
    229 	-Wl,-z,now \
    230 	-Wl,-z,relro \
    231 	-Wl,-z,noexecstack \
    232 	-fPIC \
    233 	-Wl,-z,relro \
    234 	-Wl,-z,now \
    235 	-fuse-ld=gold \
    236 	-nostdlib \
    237 	-Wl,--no-undefined \
    238 	-Wl,--exclude-libs=ALL \
    239 	-Wl,--icf=safe \
    240 	-Wl,--fatal-warnings \
    241 	-Wl,--gc-sections \
    242 	-Wl,--warn-shared-textrel \
    243 	-Wl,-O1 \
    244 	-Wl,--as-needed
    245 
    246 
    247 LOCAL_LDFLAGS_Release := \
    248 	-Wl,-z,now \
    249 	-Wl,-z,relro \
    250 	-Wl,-z,noexecstack \
    251 	-fPIC \
    252 	-Wl,-z,relro \
    253 	-Wl,-z,now \
    254 	-fuse-ld=gold \
    255 	-nostdlib \
    256 	-Wl,--no-undefined \
    257 	-Wl,--exclude-libs=ALL \
    258 	-Wl,--icf=safe \
    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