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 -m64 \ 57 -march=x86-64 \ 58 -ffunction-sections \ 59 -funwind-tables \ 60 -g \ 61 -fstack-protector \ 62 -fno-short-enums \ 63 -finline-limit=64 \ 64 -Wa,--noexecstack \ 65 -U_FORTIFY_SOURCE \ 66 -Wno-extra \ 67 -Wno-ignored-qualifiers \ 68 -Wno-type-limits \ 69 -Wno-unused-but-set-variable \ 70 -Wno-address \ 71 -Wno-format-security \ 72 -Wno-return-type \ 73 -Wno-sequence-point \ 74 -Os \ 75 -g \ 76 -fdata-sections \ 77 -ffunction-sections \ 78 -fomit-frame-pointer \ 79 -funwind-tables 80 81 MY_DEFS_Debug := \ 82 '-DV8_DEPRECATION_WARNINGS' \ 83 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 84 '-D_FILE_OFFSET_BITS=64' \ 85 '-DNO_TCMALLOC' \ 86 '-DDISABLE_NACL' \ 87 '-DCHROMIUM_BUILD' \ 88 '-DUSE_LIBJPEG_TURBO=1' \ 89 '-DENABLE_WEBRTC=1' \ 90 '-DUSE_PROPRIETARY_CODECS' \ 91 '-DENABLE_BROWSER_CDMS' \ 92 '-DENABLE_CONFIGURATION_POLICY' \ 93 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 94 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 95 '-DENABLE_EGLIMAGE=1' \ 96 '-DCLD_VERSION=1' \ 97 '-DENABLE_PRINTING=1' \ 98 '-DENABLE_MANAGED_USERS=1' \ 99 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 100 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 101 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 102 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 103 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 104 '-DVIDEO_HOLE=1' \ 105 '-DUSE_OPENSSL=1' \ 106 '-DUSE_OPENSSL_CERTS=1' \ 107 '-DANDROID' \ 108 '-D__GNU_SOURCE=1' \ 109 '-DUSE_STLPORT=1' \ 110 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 111 '-DCHROME_BUILD_ID=""' \ 112 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 113 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 114 '-D_DEBUG' 115 116 117 # Include paths placed before CFLAGS/CPPFLAGS 118 LOCAL_C_INCLUDES_Debug := \ 119 $(gyp_shared_intermediate_dir) \ 120 $(LOCAL_PATH)/third_party/zlib \ 121 $(PWD)/frameworks/wilhelm/include \ 122 $(PWD)/bionic \ 123 $(PWD)/external/stlport/stlport 124 125 126 # Flags passed to only C++ (and not C) files. 127 LOCAL_CPPFLAGS_Debug := \ 128 -fno-rtti \ 129 -fno-threadsafe-statics \ 130 -fvisibility-inlines-hidden \ 131 -Wno-deprecated \ 132 -Wno-non-virtual-dtor \ 133 -Wno-sign-promo \ 134 -Wno-non-virtual-dtor 135 136 137 LOCAL_FDO_SUPPORT_Debug := false 138 139 # Flags passed to both C and C++ files. 140 MY_CFLAGS_Release := \ 141 -fstack-protector \ 142 --param=ssp-buffer-size=4 \ 143 -fno-exceptions \ 144 -fno-strict-aliasing \ 145 -Wno-unused-parameter \ 146 -Wno-missing-field-initializers \ 147 -fvisibility=hidden \ 148 -pipe \ 149 -fPIC \ 150 -Wno-unused-local-typedefs \ 151 -Wno-format \ 152 -m64 \ 153 -march=x86-64 \ 154 -ffunction-sections \ 155 -funwind-tables \ 156 -g \ 157 -fstack-protector \ 158 -fno-short-enums \ 159 -finline-limit=64 \ 160 -Wa,--noexecstack \ 161 -U_FORTIFY_SOURCE \ 162 -Wno-extra \ 163 -Wno-ignored-qualifiers \ 164 -Wno-type-limits \ 165 -Wno-unused-but-set-variable \ 166 -Wno-address \ 167 -Wno-format-security \ 168 -Wno-return-type \ 169 -Wno-sequence-point \ 170 -Os \ 171 -fno-ident \ 172 -fdata-sections \ 173 -ffunction-sections \ 174 -fomit-frame-pointer \ 175 -funwind-tables 176 177 MY_DEFS_Release := \ 178 '-DV8_DEPRECATION_WARNINGS' \ 179 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 180 '-D_FILE_OFFSET_BITS=64' \ 181 '-DNO_TCMALLOC' \ 182 '-DDISABLE_NACL' \ 183 '-DCHROMIUM_BUILD' \ 184 '-DUSE_LIBJPEG_TURBO=1' \ 185 '-DENABLE_WEBRTC=1' \ 186 '-DUSE_PROPRIETARY_CODECS' \ 187 '-DENABLE_BROWSER_CDMS' \ 188 '-DENABLE_CONFIGURATION_POLICY' \ 189 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 190 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 191 '-DENABLE_EGLIMAGE=1' \ 192 '-DCLD_VERSION=1' \ 193 '-DENABLE_PRINTING=1' \ 194 '-DENABLE_MANAGED_USERS=1' \ 195 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 196 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 197 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 198 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 199 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 200 '-DVIDEO_HOLE=1' \ 201 '-DUSE_OPENSSL=1' \ 202 '-DUSE_OPENSSL_CERTS=1' \ 203 '-DANDROID' \ 204 '-D__GNU_SOURCE=1' \ 205 '-DUSE_STLPORT=1' \ 206 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 207 '-DCHROME_BUILD_ID=""' \ 208 '-DNDEBUG' \ 209 '-DNVALGRIND' \ 210 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 211 212 213 # Include paths placed before CFLAGS/CPPFLAGS 214 LOCAL_C_INCLUDES_Release := \ 215 $(gyp_shared_intermediate_dir) \ 216 $(LOCAL_PATH)/third_party/zlib \ 217 $(PWD)/frameworks/wilhelm/include \ 218 $(PWD)/bionic \ 219 $(PWD)/external/stlport/stlport 220 221 222 # Flags passed to only C++ (and not C) files. 223 LOCAL_CPPFLAGS_Release := \ 224 -fno-rtti \ 225 -fno-threadsafe-statics \ 226 -fvisibility-inlines-hidden \ 227 -Wno-deprecated \ 228 -Wno-non-virtual-dtor \ 229 -Wno-sign-promo \ 230 -Wno-non-virtual-dtor 231 232 233 LOCAL_FDO_SUPPORT_Release := false 234 235 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 236 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 237 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 238 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 239 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 240 ### Rules for final target. 241 242 LOCAL_LDFLAGS_Debug := \ 243 -Wl,-z,now \ 244 -Wl,-z,relro \ 245 -Wl,--fatal-warnings \ 246 -Wl,-z,noexecstack \ 247 -fPIC \ 248 -m64 \ 249 -fuse-ld=gold \ 250 -nostdlib \ 251 -Wl,--no-undefined \ 252 -Wl,--exclude-libs=ALL \ 253 -Wl,--warn-shared-textrel \ 254 -Wl,-O1 \ 255 -Wl,--as-needed 256 257 258 LOCAL_LDFLAGS_Release := \ 259 -Wl,-z,now \ 260 -Wl,-z,relro \ 261 -Wl,--fatal-warnings \ 262 -Wl,-z,noexecstack \ 263 -fPIC \ 264 -m64 \ 265 -fuse-ld=gold \ 266 -nostdlib \ 267 -Wl,--no-undefined \ 268 -Wl,--exclude-libs=ALL \ 269 -Wl,-O1 \ 270 -Wl,--as-needed \ 271 -Wl,--gc-sections \ 272 -Wl,--warn-shared-textrel 273 274 275 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 276 277 LOCAL_STATIC_LIBRARIES := 278 279 # Enable grouping to fix circular references 280 LOCAL_GROUP_STATIC_LIBRARIES := true 281 282 LOCAL_SHARED_LIBRARIES := \ 283 libstlport \ 284 libdl 285 286 # Add target alias to "gyp_all_modules" target. 287 .PHONY: gyp_all_modules 288 gyp_all_modules: third_party_zlib_zlib_gyp 289 290 # Alias gyp target name. 291 .PHONY: zlib 292 zlib: third_party_zlib_zlib_gyp 293 294 include $(BUILD_STATIC_LIBRARY) 295