1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_zlib_minizip_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13# Make sure our deps are built first. 14GYP_TARGET_DEPENDENCIES := 15 16GYP_GENERATED_OUTPUTS := 17 18# Make sure our deps and generated files are built first. 19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21LOCAL_GENERATED_SOURCES := 22 23GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25LOCAL_SRC_FILES := \ 26 third_party/zlib/contrib/minizip/ioapi.c \ 27 third_party/zlib/contrib/minizip/unzip.c \ 28 third_party/zlib/contrib/minizip/zip.c 29 30 31# Flags passed to both C and C++ files. 32MY_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-unused-local-typedefs \ 43 -Wno-format \ 44 -fno-tree-sra \ 45 -fno-partial-inlining \ 46 -fno-early-inlining \ 47 -fno-tree-copy-prop \ 48 -fno-tree-loop-optimize \ 49 -fno-move-loop-invariants \ 50 -fno-caller-saves \ 51 -Wno-psabi \ 52 -ffunction-sections \ 53 -funwind-tables \ 54 -g \ 55 -fstack-protector \ 56 -fno-short-enums \ 57 -finline-limit=64 \ 58 -Wa,--noexecstack \ 59 -U_FORTIFY_SOURCE \ 60 -Wno-extra \ 61 -Wno-ignored-qualifiers \ 62 -Wno-type-limits \ 63 -Wno-unused-but-set-variable \ 64 -Wno-address \ 65 -Wno-format-security \ 66 -Wno-return-type \ 67 -Wno-sequence-point \ 68 -Os \ 69 -g \ 70 -fdata-sections \ 71 -ffunction-sections \ 72 -fomit-frame-pointer \ 73 -funwind-tables 74 75MY_DEFS_Debug := \ 76 '-DV8_DEPRECATION_WARNINGS' \ 77 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 78 '-D_FILE_OFFSET_BITS=64' \ 79 '-DNO_TCMALLOC' \ 80 '-DDISABLE_NACL' \ 81 '-DCHROMIUM_BUILD' \ 82 '-DUSE_LIBJPEG_TURBO=1' \ 83 '-DENABLE_WEBRTC=1' \ 84 '-DUSE_PROPRIETARY_CODECS' \ 85 '-DENABLE_BROWSER_CDMS' \ 86 '-DENABLE_CONFIGURATION_POLICY' \ 87 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 88 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 89 '-DENABLE_EGLIMAGE=1' \ 90 '-DCLD_VERSION=1' \ 91 '-DENABLE_PRINTING=1' \ 92 '-DENABLE_MANAGED_USERS=1' \ 93 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 94 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 95 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 96 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 97 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 98 '-DVIDEO_HOLE=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 113LOCAL_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. 123LOCAL_CPPFLAGS_Debug := \ 124 -fno-rtti \ 125 -fno-threadsafe-statics \ 126 -fvisibility-inlines-hidden \ 127 -Wno-deprecated \ 128 -Wno-abi \ 129 -Wno-non-virtual-dtor \ 130 -Wno-sign-promo \ 131 -Wno-non-virtual-dtor 132 133 134LOCAL_FDO_SUPPORT_Debug := false 135 136# Flags passed to both C and C++ files. 137MY_CFLAGS_Release := \ 138 -fstack-protector \ 139 --param=ssp-buffer-size=4 \ 140 -fno-exceptions \ 141 -fno-strict-aliasing \ 142 -Wno-unused-parameter \ 143 -Wno-missing-field-initializers \ 144 -fvisibility=hidden \ 145 -pipe \ 146 -fPIC \ 147 -Wno-unused-local-typedefs \ 148 -Wno-format \ 149 -fno-tree-sra \ 150 -fno-partial-inlining \ 151 -fno-early-inlining \ 152 -fno-tree-copy-prop \ 153 -fno-tree-loop-optimize \ 154 -fno-move-loop-invariants \ 155 -fno-caller-saves \ 156 -Wno-psabi \ 157 -ffunction-sections \ 158 -funwind-tables \ 159 -g \ 160 -fstack-protector \ 161 -fno-short-enums \ 162 -finline-limit=64 \ 163 -Wa,--noexecstack \ 164 -U_FORTIFY_SOURCE \ 165 -Wno-extra \ 166 -Wno-ignored-qualifiers \ 167 -Wno-type-limits \ 168 -Wno-unused-but-set-variable \ 169 -Wno-address \ 170 -Wno-format-security \ 171 -Wno-return-type \ 172 -Wno-sequence-point \ 173 -Os \ 174 -fno-ident \ 175 -fdata-sections \ 176 -ffunction-sections \ 177 -fomit-frame-pointer \ 178 -funwind-tables 179 180MY_DEFS_Release := \ 181 '-DV8_DEPRECATION_WARNINGS' \ 182 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 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="http://proxy-dev.googlezip.net:80/"' \ 200 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 201 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 202 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 203 '-DVIDEO_HOLE=1' \ 204 '-DUSE_FILE32API' \ 205 '-DUSE_OPENSSL=1' \ 206 '-DUSE_OPENSSL_CERTS=1' \ 207 '-DANDROID' \ 208 '-D__GNU_SOURCE=1' \ 209 '-DUSE_STLPORT=1' \ 210 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 211 '-DCHROME_BUILD_ID=""' \ 212 '-DNDEBUG' \ 213 '-DNVALGRIND' \ 214 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 215 216 217# Include paths placed before CFLAGS/CPPFLAGS 218LOCAL_C_INCLUDES_Release := \ 219 $(gyp_shared_intermediate_dir) \ 220 $(LOCAL_PATH)/third_party/zlib \ 221 $(LOCAL_PATH) \ 222 $(PWD)/frameworks/wilhelm/include \ 223 $(PWD)/bionic \ 224 $(PWD)/external/stlport/stlport 225 226 227# Flags passed to only C++ (and not C) files. 228LOCAL_CPPFLAGS_Release := \ 229 -fno-rtti \ 230 -fno-threadsafe-statics \ 231 -fvisibility-inlines-hidden \ 232 -Wno-deprecated \ 233 -Wno-abi \ 234 -Wno-non-virtual-dtor \ 235 -Wno-sign-promo \ 236 -Wno-non-virtual-dtor 237 238 239LOCAL_FDO_SUPPORT_Release := false 240 241LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 242LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 243LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 244LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 245LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 246### Rules for final target. 247 248LOCAL_LDFLAGS_Debug := \ 249 -Wl,-z,now \ 250 -Wl,-z,relro \ 251 -Wl,--fatal-warnings \ 252 -Wl,-z,noexecstack \ 253 -fPIC \ 254 -Wl,-z,relro \ 255 -Wl,-z,now \ 256 -fuse-ld=gold \ 257 -nostdlib \ 258 -Wl,--no-undefined \ 259 -Wl,--exclude-libs=ALL \ 260 -Wl,--icf=safe \ 261 -Wl,--warn-shared-textrel \ 262 -Wl,-O1 \ 263 -Wl,--as-needed 264 265 266LOCAL_LDFLAGS_Release := \ 267 -Wl,-z,now \ 268 -Wl,-z,relro \ 269 -Wl,--fatal-warnings \ 270 -Wl,-z,noexecstack \ 271 -fPIC \ 272 -Wl,-z,relro \ 273 -Wl,-z,now \ 274 -fuse-ld=gold \ 275 -nostdlib \ 276 -Wl,--no-undefined \ 277 -Wl,--exclude-libs=ALL \ 278 -Wl,--icf=safe \ 279 -Wl,-O1 \ 280 -Wl,--as-needed \ 281 -Wl,--gc-sections \ 282 -Wl,--warn-shared-textrel 283 284 285LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 286 287LOCAL_STATIC_LIBRARIES := 288 289# Enable grouping to fix circular references 290LOCAL_GROUP_STATIC_LIBRARIES := true 291 292LOCAL_SHARED_LIBRARIES := \ 293 libstlport \ 294 libdl 295 296# Add target alias to "gyp_all_modules" target. 297.PHONY: gyp_all_modules 298gyp_all_modules: third_party_zlib_minizip_gyp 299 300# Alias gyp target name. 301.PHONY: minizip 302minizip: third_party_zlib_minizip_gyp 303 304include $(BUILD_STATIC_LIBRARY) 305