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 	-fno-strict-aliasing \
     35 	-Wno-unused-parameter \
     36 	-Wno-missing-field-initializers \
     37 	-fvisibility=hidden \
     38 	-pipe \
     39 	-fPIC \
     40 	-Wno-unused-local-typedefs \
     41 	-Wno-format \
     42 	-fno-tree-sra \
     43 	-fno-caller-saves \
     44 	-Wno-psabi \
     45 	-fno-partial-inlining \
     46 	-fno-early-inlining \
     47 	-fno-tree-copy-prop \
     48 	-fno-tree-loop-optimize \
     49 	-fno-move-loop-invariants \
     50 	-ffunction-sections \
     51 	-funwind-tables \
     52 	-g \
     53 	-fstack-protector \
     54 	-fno-short-enums \
     55 	-finline-limit=64 \
     56 	-Wa,--noexecstack \
     57 	-U_FORTIFY_SOURCE \
     58 	-Wno-extra \
     59 	-Wno-ignored-qualifiers \
     60 	-Wno-type-limits \
     61 	-Wno-unused-but-set-variable \
     62 	-Wno-address \
     63 	-Wno-format-security \
     64 	-Wno-return-type \
     65 	-Wno-sequence-point \
     66 	-Os \
     67 	-g \
     68 	-gdwarf-4 \
     69 	-fdata-sections \
     70 	-ffunction-sections \
     71 	-fomit-frame-pointer \
     72 	-funwind-tables
     73 
     74 MY_DEFS_Debug := \
     75 	'-DV8_DEPRECATION_WARNINGS' \
     76 	'-D_FILE_OFFSET_BITS=64' \
     77 	'-DNO_TCMALLOC' \
     78 	'-DDISABLE_NACL' \
     79 	'-DCHROMIUM_BUILD' \
     80 	'-DUSE_LIBJPEG_TURBO=1' \
     81 	'-DENABLE_WEBRTC=1' \
     82 	'-DUSE_PROPRIETARY_CODECS' \
     83 	'-DENABLE_BROWSER_CDMS' \
     84 	'-DENABLE_CONFIGURATION_POLICY' \
     85 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     86 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     87 	'-DENABLE_EGLIMAGE=1' \
     88 	'-DCLD_VERSION=1' \
     89 	'-DENABLE_PRINTING=1' \
     90 	'-DENABLE_MANAGED_USERS=1' \
     91 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     92 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     93 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     94 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     95 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     96 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     97 	'-DVIDEO_HOLE=1' \
     98 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
     99 	'-DUSE_FILE32API' \
    100 	'-DUSE_OPENSSL=1' \
    101 	'-DUSE_OPENSSL_CERTS=1' \
    102 	'-DANDROID' \
    103 	'-D__GNU_SOURCE=1' \
    104 	'-DUSE_STLPORT=1' \
    105 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    106 	'-DCHROME_BUILD_ID=""' \
    107 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    108 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    109 	'-D_DEBUG'
    110 
    111 
    112 # Include paths placed before CFLAGS/CPPFLAGS
    113 LOCAL_C_INCLUDES_Debug := \
    114 	$(gyp_shared_intermediate_dir) \
    115 	$(LOCAL_PATH)/third_party/zlib \
    116 	$(LOCAL_PATH) \
    117 	$(PWD)/frameworks/wilhelm/include \
    118 	$(PWD)/bionic \
    119 	$(PWD)/external/stlport/stlport
    120 
    121 
    122 # Flags passed to only C++ (and not C) files.
    123 LOCAL_CPPFLAGS_Debug := \
    124 	-fno-exceptions \
    125 	-fno-rtti \
    126 	-fno-threadsafe-statics \
    127 	-fvisibility-inlines-hidden \
    128 	-Wno-deprecated \
    129 	-Wno-abi \
    130 	-std=gnu++11 \
    131 	-Wno-narrowing \
    132 	-Wno-literal-suffix \
    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-strict-aliasing \
    143 	-Wno-unused-parameter \
    144 	-Wno-missing-field-initializers \
    145 	-fvisibility=hidden \
    146 	-pipe \
    147 	-fPIC \
    148 	-Wno-unused-local-typedefs \
    149 	-Wno-format \
    150 	-fno-tree-sra \
    151 	-fno-caller-saves \
    152 	-Wno-psabi \
    153 	-fno-partial-inlining \
    154 	-fno-early-inlining \
    155 	-fno-tree-copy-prop \
    156 	-fno-tree-loop-optimize \
    157 	-fno-move-loop-invariants \
    158 	-ffunction-sections \
    159 	-funwind-tables \
    160 	-g \
    161 	-fstack-protector \
    162 	-fno-short-enums \
    163 	-finline-limit=64 \
    164 	-Wa,--noexecstack \
    165 	-U_FORTIFY_SOURCE \
    166 	-Wno-extra \
    167 	-Wno-ignored-qualifiers \
    168 	-Wno-type-limits \
    169 	-Wno-unused-but-set-variable \
    170 	-Wno-address \
    171 	-Wno-format-security \
    172 	-Wno-return-type \
    173 	-Wno-sequence-point \
    174 	-Os \
    175 	-fno-ident \
    176 	-fdata-sections \
    177 	-ffunction-sections \
    178 	-fomit-frame-pointer \
    179 	-funwind-tables
    180 
    181 MY_DEFS_Release := \
    182 	'-DV8_DEPRECATION_WARNINGS' \
    183 	'-D_FILE_OFFSET_BITS=64' \
    184 	'-DNO_TCMALLOC' \
    185 	'-DDISABLE_NACL' \
    186 	'-DCHROMIUM_BUILD' \
    187 	'-DUSE_LIBJPEG_TURBO=1' \
    188 	'-DENABLE_WEBRTC=1' \
    189 	'-DUSE_PROPRIETARY_CODECS' \
    190 	'-DENABLE_BROWSER_CDMS' \
    191 	'-DENABLE_CONFIGURATION_POLICY' \
    192 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    193 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    194 	'-DENABLE_EGLIMAGE=1' \
    195 	'-DCLD_VERSION=1' \
    196 	'-DENABLE_PRINTING=1' \
    197 	'-DENABLE_MANAGED_USERS=1' \
    198 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    199 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    200 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    201 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    202 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    203 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    204 	'-DVIDEO_HOLE=1' \
    205 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    206 	'-DUSE_FILE32API' \
    207 	'-DUSE_OPENSSL=1' \
    208 	'-DUSE_OPENSSL_CERTS=1' \
    209 	'-DANDROID' \
    210 	'-D__GNU_SOURCE=1' \
    211 	'-DUSE_STLPORT=1' \
    212 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    213 	'-DCHROME_BUILD_ID=""' \
    214 	'-DNDEBUG' \
    215 	'-DNVALGRIND' \
    216 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    217 
    218 
    219 # Include paths placed before CFLAGS/CPPFLAGS
    220 LOCAL_C_INCLUDES_Release := \
    221 	$(gyp_shared_intermediate_dir) \
    222 	$(LOCAL_PATH)/third_party/zlib \
    223 	$(LOCAL_PATH) \
    224 	$(PWD)/frameworks/wilhelm/include \
    225 	$(PWD)/bionic \
    226 	$(PWD)/external/stlport/stlport
    227 
    228 
    229 # Flags passed to only C++ (and not C) files.
    230 LOCAL_CPPFLAGS_Release := \
    231 	-fno-exceptions \
    232 	-fno-rtti \
    233 	-fno-threadsafe-statics \
    234 	-fvisibility-inlines-hidden \
    235 	-Wno-deprecated \
    236 	-Wno-abi \
    237 	-std=gnu++11 \
    238 	-Wno-narrowing \
    239 	-Wno-literal-suffix \
    240 	-Wno-non-virtual-dtor \
    241 	-Wno-sign-promo \
    242 	-Wno-non-virtual-dtor
    243 
    244 
    245 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    246 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    247 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    248 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    249 ### Rules for final target.
    250 
    251 LOCAL_SHARED_LIBRARIES := \
    252 	libstlport \
    253 	libdl
    254 
    255 # Add target alias to "gyp_all_modules" target.
    256 .PHONY: gyp_all_modules
    257 gyp_all_modules: third_party_zlib_minizip_gyp
    258 
    259 # Alias gyp target name.
    260 .PHONY: minizip
    261 minizip: third_party_zlib_minizip_gyp
    262 
    263 include $(BUILD_STATIC_LIBRARY)
    264