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