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_minizip_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
      9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     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/zlib/contrib/minizip/ioapi.c \
     26 	third_party/zlib/contrib/minizip/unzip.c \
     27 	third_party/zlib/contrib/minizip/zip.c
     28 
     29 
     30 # Flags passed to both C and C++ files.
     31 MY_CFLAGS_Debug := \
     32 	-fstack-protector \
     33 	--param=ssp-buffer-size=4 \
     34 	 \
     35 	-fno-strict-aliasing \
     36 	-Wno-unused-parameter \
     37 	-Wno-missing-field-initializers \
     38 	-fvisibility=hidden \
     39 	-pipe \
     40 	-fPIC \
     41 	-Wno-unused-local-typedefs \
     42 	-Wno-format \
     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-unused-but-set-variable \
     55 	-Wno-address \
     56 	-Wno-format-security \
     57 	-Wno-return-type \
     58 	-Wno-sequence-point \
     59 	-Os \
     60 	-g \
     61 	-gdwarf-4 \
     62 	-fdata-sections \
     63 	-ffunction-sections \
     64 	-fomit-frame-pointer \
     65 	-funwind-tables
     66 
     67 MY_DEFS_Debug := \
     68 	'-DV8_DEPRECATION_WARNINGS' \
     69 	'-D_FILE_OFFSET_BITS=64' \
     70 	'-DNO_TCMALLOC' \
     71 	'-DDISABLE_NACL' \
     72 	'-DCHROMIUM_BUILD' \
     73 	'-DUSE_LIBJPEG_TURBO=1' \
     74 	'-DENABLE_WEBRTC=1' \
     75 	'-DUSE_PROPRIETARY_CODECS' \
     76 	'-DENABLE_BROWSER_CDMS' \
     77 	'-DENABLE_CONFIGURATION_POLICY' \
     78 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     79 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     80 	'-DENABLE_EGLIMAGE=1' \
     81 	'-DCLD_VERSION=1' \
     82 	'-DENABLE_PRINTING=1' \
     83 	'-DENABLE_MANAGED_USERS=1' \
     84 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     85 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     86 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     87 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     88 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     89 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     90 	'-DVIDEO_HOLE=1' \
     91 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
     92 	'-DUSE_FILE32API' \
     93 	'-DUSE_OPENSSL=1' \
     94 	'-DUSE_OPENSSL_CERTS=1' \
     95 	'-DANDROID' \
     96 	'-D__GNU_SOURCE=1' \
     97 	'-DUSE_STLPORT=1' \
     98 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     99 	'-DCHROME_BUILD_ID=""' \
    100 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    101 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    102 	'-D_DEBUG'
    103 
    104 
    105 # Include paths placed before CFLAGS/CPPFLAGS
    106 LOCAL_C_INCLUDES_Debug := \
    107 	$(gyp_shared_intermediate_dir) \
    108 	$(LOCAL_PATH)/third_party/zlib \
    109 	$(LOCAL_PATH) \
    110 	$(PWD)/frameworks/wilhelm/include \
    111 	$(PWD)/bionic \
    112 	$(PWD)/external/stlport/stlport
    113 
    114 
    115 # Flags passed to only C++ (and not C) files.
    116 LOCAL_CPPFLAGS_Debug := \
    117 	-fno-exceptions \
    118 	-fno-rtti \
    119 	-fno-threadsafe-statics \
    120 	-fvisibility-inlines-hidden \
    121 	-Wno-deprecated \
    122 	-Wno-uninitialized \
    123 	-std=gnu++11 \
    124 	-Wno-narrowing \
    125 	-Wno-literal-suffix \
    126 	-Wno-non-virtual-dtor \
    127 	-Wno-sign-promo \
    128 	-Wno-non-virtual-dtor
    129 
    130 
    131 # Flags passed to both C and C++ files.
    132 MY_CFLAGS_Release := \
    133 	-fstack-protector \
    134 	--param=ssp-buffer-size=4 \
    135 	 \
    136 	-fno-strict-aliasing \
    137 	-Wno-unused-parameter \
    138 	-Wno-missing-field-initializers \
    139 	-fvisibility=hidden \
    140 	-pipe \
    141 	-fPIC \
    142 	-Wno-unused-local-typedefs \
    143 	-Wno-format \
    144 	-ffunction-sections \
    145 	-funwind-tables \
    146 	-g \
    147 	-fstack-protector \
    148 	-fno-short-enums \
    149 	-finline-limit=64 \
    150 	-Wa,--noexecstack \
    151 	-U_FORTIFY_SOURCE \
    152 	-Wno-extra \
    153 	-Wno-ignored-qualifiers \
    154 	-Wno-type-limits \
    155 	-Wno-unused-but-set-variable \
    156 	-Wno-address \
    157 	-Wno-format-security \
    158 	-Wno-return-type \
    159 	-Wno-sequence-point \
    160 	-Os \
    161 	-fno-ident \
    162 	-fdata-sections \
    163 	-ffunction-sections \
    164 	-fomit-frame-pointer \
    165 	-funwind-tables
    166 
    167 MY_DEFS_Release := \
    168 	'-DV8_DEPRECATION_WARNINGS' \
    169 	'-D_FILE_OFFSET_BITS=64' \
    170 	'-DNO_TCMALLOC' \
    171 	'-DDISABLE_NACL' \
    172 	'-DCHROMIUM_BUILD' \
    173 	'-DUSE_LIBJPEG_TURBO=1' \
    174 	'-DENABLE_WEBRTC=1' \
    175 	'-DUSE_PROPRIETARY_CODECS' \
    176 	'-DENABLE_BROWSER_CDMS' \
    177 	'-DENABLE_CONFIGURATION_POLICY' \
    178 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    179 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    180 	'-DENABLE_EGLIMAGE=1' \
    181 	'-DCLD_VERSION=1' \
    182 	'-DENABLE_PRINTING=1' \
    183 	'-DENABLE_MANAGED_USERS=1' \
    184 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    185 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    186 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    187 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    188 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    189 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    190 	'-DVIDEO_HOLE=1' \
    191 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    192 	'-DUSE_FILE32API' \
    193 	'-DUSE_OPENSSL=1' \
    194 	'-DUSE_OPENSSL_CERTS=1' \
    195 	'-DANDROID' \
    196 	'-D__GNU_SOURCE=1' \
    197 	'-DUSE_STLPORT=1' \
    198 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    199 	'-DCHROME_BUILD_ID=""' \
    200 	'-DNDEBUG' \
    201 	'-DNVALGRIND' \
    202 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    203 
    204 
    205 # Include paths placed before CFLAGS/CPPFLAGS
    206 LOCAL_C_INCLUDES_Release := \
    207 	$(gyp_shared_intermediate_dir) \
    208 	$(LOCAL_PATH)/third_party/zlib \
    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-exceptions \
    218 	-fno-rtti \
    219 	-fno-threadsafe-statics \
    220 	-fvisibility-inlines-hidden \
    221 	-Wno-deprecated \
    222 	-Wno-uninitialized \
    223 	-std=gnu++11 \
    224 	-Wno-narrowing \
    225 	-Wno-literal-suffix \
    226 	-Wno-non-virtual-dtor \
    227 	-Wno-sign-promo \
    228 	-Wno-non-virtual-dtor
    229 
    230 
    231 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    232 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    233 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    234 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    235 ### Rules for final target.
    236 
    237 LOCAL_SHARED_LIBRARIES := \
    238 	libstlport \
    239 	libdl
    240 
    241 # Add target alias to "gyp_all_modules" target.
    242 .PHONY: gyp_all_modules
    243 gyp_all_modules: third_party_zlib_minizip_gyp
    244 
    245 # Alias gyp target name.
    246 .PHONY: minizip
    247 minizip: third_party_zlib_minizip_gyp
    248 
    249 include $(BUILD_STATIC_LIBRARY)
    250