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