Home | History | Annotate | Download | only in smhasher
      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_smhasher_cityhash_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_GENERATED_SOURCES :=
     21 
     22 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     23 
     24 LOCAL_SRC_FILES := \
     25 	third_party/smhasher/src/City.cpp
     26 
     27 
     28 # Flags passed to both C and C++ files.
     29 MY_CFLAGS_Debug := \
     30 	-fstack-protector \
     31 	--param=ssp-buffer-size=4 \
     32 	 \
     33 	-fno-exceptions \
     34 	-fno-strict-aliasing \
     35 	-Wno-unused-parameter \
     36 	-Wno-missing-field-initializers \
     37 	-fvisibility=hidden \
     38 	-pipe \
     39 	-fPIC \
     40 	-Wno-format \
     41 	-EL \
     42 	-mhard-float \
     43 	-ffunction-sections \
     44 	-funwind-tables \
     45 	-g \
     46 	-fstack-protector \
     47 	-fno-short-enums \
     48 	-finline-limit=64 \
     49 	-Wa,--noexecstack \
     50 	-U_FORTIFY_SOURCE \
     51 	-Wno-extra \
     52 	-Wno-ignored-qualifiers \
     53 	-Wno-type-limits \
     54 	-Wno-address \
     55 	-Wno-format-security \
     56 	-Wno-return-type \
     57 	-Wno-sequence-point \
     58 	-Os \
     59 	-g \
     60 	-fomit-frame-pointer \
     61 	-fdata-sections \
     62 	-ffunction-sections
     63 
     64 MY_DEFS_Debug := \
     65 	'-DANGLE_DX11' \
     66 	'-D_FILE_OFFSET_BITS=64' \
     67 	'-DNO_TCMALLOC' \
     68 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     69 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     70 	'-DDISABLE_NACL' \
     71 	'-DCHROMIUM_BUILD' \
     72 	'-DUSE_LIBJPEG_TURBO=1' \
     73 	'-DUSE_PROPRIETARY_CODECS' \
     74 	'-DENABLE_CONFIGURATION_POLICY' \
     75 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
     76 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
     77 	'-DENABLE_GPU=1' \
     78 	'-DUSE_OPENSSL=1' \
     79 	'-DENABLE_EGLIMAGE=1' \
     80 	'-DENABLE_PRINTING=1' \
     81 	'-DANDROID' \
     82 	'-D__GNU_SOURCE=1' \
     83 	'-DUSE_STLPORT=1' \
     84 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     85 	'-DCHROME_BUILD_ID=""' \
     86 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     87 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     88 	'-D_DEBUG'
     89 
     90 
     91 # Include paths placed before CFLAGS/CPPFLAGS
     92 LOCAL_C_INCLUDES_Debug := \
     93 	$(PWD)/frameworks/wilhelm/include \
     94 	$(PWD)/bionic \
     95 	$(PWD)/external/stlport/stlport
     96 
     97 
     98 # Flags passed to only C++ (and not C) files.
     99 LOCAL_CPPFLAGS_Debug := \
    100 	-fno-rtti \
    101 	-fno-threadsafe-statics \
    102 	-fvisibility-inlines-hidden \
    103 	-Wno-deprecated \
    104 	-Wno-uninitialized \
    105 	-Wno-error=c++0x-compat \
    106 	-Wno-non-virtual-dtor \
    107 	-Wno-sign-promo \
    108 	-Wno-non-virtual-dtor
    109 
    110 
    111 # Flags passed to both C and C++ files.
    112 MY_CFLAGS_Release := \
    113 	-fstack-protector \
    114 	--param=ssp-buffer-size=4 \
    115 	 \
    116 	-fno-exceptions \
    117 	-fno-strict-aliasing \
    118 	-Wno-unused-parameter \
    119 	-Wno-missing-field-initializers \
    120 	-fvisibility=hidden \
    121 	-pipe \
    122 	-fPIC \
    123 	-Wno-format \
    124 	-EL \
    125 	-mhard-float \
    126 	-ffunction-sections \
    127 	-funwind-tables \
    128 	-g \
    129 	-fstack-protector \
    130 	-fno-short-enums \
    131 	-finline-limit=64 \
    132 	-Wa,--noexecstack \
    133 	-U_FORTIFY_SOURCE \
    134 	-Wno-extra \
    135 	-Wno-ignored-qualifiers \
    136 	-Wno-type-limits \
    137 	-Wno-address \
    138 	-Wno-format-security \
    139 	-Wno-return-type \
    140 	-Wno-sequence-point \
    141 	-Os \
    142 	-fno-ident \
    143 	-fdata-sections \
    144 	-ffunction-sections \
    145 	-fomit-frame-pointer
    146 
    147 MY_DEFS_Release := \
    148 	'-DANGLE_DX11' \
    149 	'-D_FILE_OFFSET_BITS=64' \
    150 	'-DNO_TCMALLOC' \
    151 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    152 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    153 	'-DDISABLE_NACL' \
    154 	'-DCHROMIUM_BUILD' \
    155 	'-DUSE_LIBJPEG_TURBO=1' \
    156 	'-DUSE_PROPRIETARY_CODECS' \
    157 	'-DENABLE_CONFIGURATION_POLICY' \
    158 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    159 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    160 	'-DENABLE_GPU=1' \
    161 	'-DUSE_OPENSSL=1' \
    162 	'-DENABLE_EGLIMAGE=1' \
    163 	'-DENABLE_PRINTING=1' \
    164 	'-DANDROID' \
    165 	'-D__GNU_SOURCE=1' \
    166 	'-DUSE_STLPORT=1' \
    167 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    168 	'-DCHROME_BUILD_ID=""' \
    169 	'-DNDEBUG' \
    170 	'-DNVALGRIND' \
    171 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    172 
    173 
    174 # Include paths placed before CFLAGS/CPPFLAGS
    175 LOCAL_C_INCLUDES_Release := \
    176 	$(PWD)/frameworks/wilhelm/include \
    177 	$(PWD)/bionic \
    178 	$(PWD)/external/stlport/stlport
    179 
    180 
    181 # Flags passed to only C++ (and not C) files.
    182 LOCAL_CPPFLAGS_Release := \
    183 	-fno-rtti \
    184 	-fno-threadsafe-statics \
    185 	-fvisibility-inlines-hidden \
    186 	-Wno-deprecated \
    187 	-Wno-uninitialized \
    188 	-Wno-error=c++0x-compat \
    189 	-Wno-non-virtual-dtor \
    190 	-Wno-sign-promo \
    191 	-Wno-non-virtual-dtor
    192 
    193 
    194 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    195 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    196 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    197 ### Rules for final target.
    198 
    199 LOCAL_LDFLAGS_Debug := \
    200 	-Wl,-z,now \
    201 	-Wl,-z,relro \
    202 	-Wl,-z,noexecstack \
    203 	-fPIC \
    204 	-EL \
    205 	-Wl,--no-keep-memory \
    206 	-nostdlib \
    207 	-Wl,--no-undefined \
    208 	-Wl,--exclude-libs=ALL \
    209 	-Wl,--fatal-warnings \
    210 	-Wl,--gc-sections \
    211 	-Wl,--warn-shared-textrel \
    212 	-Wl,-O1 \
    213 	-Wl,--as-needed
    214 
    215 
    216 LOCAL_LDFLAGS_Release := \
    217 	-Wl,-z,now \
    218 	-Wl,-z,relro \
    219 	-Wl,-z,noexecstack \
    220 	-fPIC \
    221 	-EL \
    222 	-Wl,--no-keep-memory \
    223 	-nostdlib \
    224 	-Wl,--no-undefined \
    225 	-Wl,--exclude-libs=ALL \
    226 	-Wl,-O1 \
    227 	-Wl,--as-needed \
    228 	-Wl,--gc-sections \
    229 	-Wl,--fatal-warnings \
    230 	-Wl,--warn-shared-textrel
    231 
    232 
    233 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    234 
    235 LOCAL_STATIC_LIBRARIES :=
    236 
    237 # Enable grouping to fix circular references
    238 LOCAL_GROUP_STATIC_LIBRARIES := true
    239 
    240 LOCAL_SHARED_LIBRARIES := \
    241 	libstlport \
    242 	libdl
    243 
    244 # Add target alias to "gyp_all_modules" target.
    245 .PHONY: gyp_all_modules
    246 gyp_all_modules: third_party_smhasher_cityhash_gyp
    247 
    248 # Alias gyp target name.
    249 .PHONY: cityhash
    250 cityhash: third_party_smhasher_cityhash_gyp
    251 
    252 include $(BUILD_STATIC_LIBRARY)
    253