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