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 	-fno-exceptions \
     33 	-fno-strict-aliasing \
     34 	-Wno-unused-parameter \
     35 	-Wno-missing-field-initializers \
     36 	-fvisibility=hidden \
     37 	-pipe \
     38 	-fPIC \
     39 	-Wno-format \
     40 	-fno-tree-sra \
     41 	-fuse-ld=gold \
     42 	-Wno-psabi \
     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 	'-DV8_DEPRECATION_WARNINGS' \
     66 	'-D_FILE_OFFSET_BITS=64' \
     67 	'-DNO_TCMALLOC' \
     68 	'-DDISABLE_NACL' \
     69 	'-DCHROMIUM_BUILD' \
     70 	'-DUSE_LIBJPEG_TURBO=1' \
     71 	'-DUSE_PROPRIETARY_CODECS' \
     72 	'-DENABLE_CONFIGURATION_POLICY' \
     73 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     74 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     75 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     76 	'-DUSE_OPENSSL=1' \
     77 	'-DENABLE_EGLIMAGE=1' \
     78 	'-DCLD_VERSION=1' \
     79 	'-DENABLE_PRINTING=1' \
     80 	'-DENABLE_MANAGED_USERS=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-abi \
    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 	-fno-exceptions \
    116 	-fno-strict-aliasing \
    117 	-Wno-unused-parameter \
    118 	-Wno-missing-field-initializers \
    119 	-fvisibility=hidden \
    120 	-pipe \
    121 	-fPIC \
    122 	-Wno-format \
    123 	-fno-tree-sra \
    124 	-fuse-ld=gold \
    125 	-Wno-psabi \
    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 	'-DV8_DEPRECATION_WARNINGS' \
    149 	'-D_FILE_OFFSET_BITS=64' \
    150 	'-DNO_TCMALLOC' \
    151 	'-DDISABLE_NACL' \
    152 	'-DCHROMIUM_BUILD' \
    153 	'-DUSE_LIBJPEG_TURBO=1' \
    154 	'-DUSE_PROPRIETARY_CODECS' \
    155 	'-DENABLE_CONFIGURATION_POLICY' \
    156 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    157 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    158 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    159 	'-DUSE_OPENSSL=1' \
    160 	'-DENABLE_EGLIMAGE=1' \
    161 	'-DCLD_VERSION=1' \
    162 	'-DENABLE_PRINTING=1' \
    163 	'-DENABLE_MANAGED_USERS=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-abi \
    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 	-Wl,-z,relro \
    205 	-Wl,-z,now \
    206 	-fuse-ld=gold \
    207 	-nostdlib \
    208 	-Wl,--no-undefined \
    209 	-Wl,--exclude-libs=ALL \
    210 	-Wl,--icf=safe \
    211 	-Wl,--fatal-warnings \
    212 	-Wl,--gc-sections \
    213 	-Wl,--warn-shared-textrel \
    214 	-Wl,-O1 \
    215 	-Wl,--as-needed
    216 
    217 
    218 LOCAL_LDFLAGS_Release := \
    219 	-Wl,-z,now \
    220 	-Wl,-z,relro \
    221 	-Wl,-z,noexecstack \
    222 	-fPIC \
    223 	-Wl,-z,relro \
    224 	-Wl,-z,now \
    225 	-fuse-ld=gold \
    226 	-nostdlib \
    227 	-Wl,--no-undefined \
    228 	-Wl,--exclude-libs=ALL \
    229 	-Wl,--icf=safe \
    230 	-Wl,-O1 \
    231 	-Wl,--as-needed \
    232 	-Wl,--gc-sections \
    233 	-Wl,--fatal-warnings \
    234 	-Wl,--warn-shared-textrel
    235 
    236 
    237 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    238 
    239 LOCAL_STATIC_LIBRARIES :=
    240 
    241 # Enable grouping to fix circular references
    242 LOCAL_GROUP_STATIC_LIBRARIES := true
    243 
    244 LOCAL_SHARED_LIBRARIES := \
    245 	libstlport \
    246 	libdl
    247 
    248 # Add target alias to "gyp_all_modules" target.
    249 .PHONY: gyp_all_modules
    250 gyp_all_modules: third_party_smhasher_cityhash_gyp
    251 
    252 # Alias gyp target name.
    253 .PHONY: cityhash
    254 cityhash: third_party_smhasher_cityhash_gyp
    255 
    256 include $(BUILD_STATIC_LIBRARY)
    257