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_zlib_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := 14 15GYP_GENERATED_OUTPUTS := 16 17# Make sure our deps and generated files are built first. 18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20LOCAL_GENERATED_SOURCES := 21 22GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24LOCAL_SRC_FILES := \ 25 third_party/zlib/adler32.c \ 26 third_party/zlib/compress.c \ 27 third_party/zlib/crc32.c \ 28 third_party/zlib/deflate.c \ 29 third_party/zlib/gzclose.c \ 30 third_party/zlib/gzlib.c \ 31 third_party/zlib/gzread.c \ 32 third_party/zlib/gzwrite.c \ 33 third_party/zlib/infback.c \ 34 third_party/zlib/inffast.c \ 35 third_party/zlib/inflate.c \ 36 third_party/zlib/inftrees.c \ 37 third_party/zlib/trees.c \ 38 third_party/zlib/uncompr.c \ 39 third_party/zlib/zutil.c 40 41 42# Flags passed to both C and C++ files. 43MY_CFLAGS_Debug := \ 44 --param=ssp-buffer-size=4 \ 45 -fno-strict-aliasing \ 46 -Wno-unused-parameter \ 47 -Wno-missing-field-initializers \ 48 -fvisibility=hidden \ 49 -pipe \ 50 -fPIC \ 51 -Wno-unused-local-typedefs \ 52 -Wno-format \ 53 -ffunction-sections \ 54 -funwind-tables \ 55 -g \ 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 -gdwarf-4 \ 71 -fdata-sections \ 72 -ffunction-sections \ 73 -funwind-tables 74 75MY_DEFS_Debug := \ 76 '-DV8_DEPRECATION_WARNINGS' \ 77 '-D_FILE_OFFSET_BITS=64' \ 78 '-DNO_TCMALLOC' \ 79 '-DDISABLE_NACL' \ 80 '-DCHROMIUM_BUILD' \ 81 '-DUSE_LIBJPEG_TURBO=1' \ 82 '-DENABLE_WEBRTC=1' \ 83 '-DUSE_PROPRIETARY_CODECS' \ 84 '-DENABLE_BROWSER_CDMS' \ 85 '-DENABLE_CONFIGURATION_POLICY' \ 86 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 87 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 88 '-DENABLE_EGLIMAGE=1' \ 89 '-DCLD_VERSION=1' \ 90 '-DENABLE_PRINTING=1' \ 91 '-DENABLE_MANAGED_USERS=1' \ 92 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 93 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 94 '-DDATA_REDUCTION_DEV_FALLBACK_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 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 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 $(PWD)/frameworks/wilhelm/include \ 117 $(PWD)/bionic \ 118 $(PWD)/external/stlport/stlport 119 120 121# Flags passed to only C++ (and not C) files. 122LOCAL_CPPFLAGS_Debug := \ 123 -fno-exceptions \ 124 -fno-rtti \ 125 -fno-threadsafe-statics \ 126 -fvisibility-inlines-hidden \ 127 -Wno-deprecated \ 128 -std=gnu++11 \ 129 -Wno-narrowing \ 130 -Wno-literal-suffix \ 131 -Wno-non-virtual-dtor \ 132 -Wno-sign-promo \ 133 -Wno-non-virtual-dtor 134 135 136# Flags passed to both C and C++ files. 137MY_CFLAGS_Release := \ 138 --param=ssp-buffer-size=4 \ 139 -fno-strict-aliasing \ 140 -Wno-unused-parameter \ 141 -Wno-missing-field-initializers \ 142 -fvisibility=hidden \ 143 -pipe \ 144 -fPIC \ 145 -Wno-unused-local-typedefs \ 146 -Wno-format \ 147 -ffunction-sections \ 148 -funwind-tables \ 149 -g \ 150 -fno-short-enums \ 151 -finline-limit=64 \ 152 -Wa,--noexecstack \ 153 -U_FORTIFY_SOURCE \ 154 -Wno-extra \ 155 -Wno-ignored-qualifiers \ 156 -Wno-type-limits \ 157 -Wno-unused-but-set-variable \ 158 -Wno-address \ 159 -Wno-format-security \ 160 -Wno-return-type \ 161 -Wno-sequence-point \ 162 -Os \ 163 -fno-ident \ 164 -fdata-sections \ 165 -ffunction-sections \ 166 -funwind-tables 167 168MY_DEFS_Release := \ 169 '-DV8_DEPRECATION_WARNINGS' \ 170 '-D_FILE_OFFSET_BITS=64' \ 171 '-DNO_TCMALLOC' \ 172 '-DDISABLE_NACL' \ 173 '-DCHROMIUM_BUILD' \ 174 '-DUSE_LIBJPEG_TURBO=1' \ 175 '-DENABLE_WEBRTC=1' \ 176 '-DUSE_PROPRIETARY_CODECS' \ 177 '-DENABLE_BROWSER_CDMS' \ 178 '-DENABLE_CONFIGURATION_POLICY' \ 179 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 180 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 181 '-DENABLE_EGLIMAGE=1' \ 182 '-DCLD_VERSION=1' \ 183 '-DENABLE_PRINTING=1' \ 184 '-DENABLE_MANAGED_USERS=1' \ 185 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 186 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 187 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 188 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 189 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 190 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 191 '-DVIDEO_HOLE=1' \ 192 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 193 '-DUSE_OPENSSL=1' \ 194 '-DUSE_OPENSSL_CERTS=1' \ 195 '-DANDROID' \ 196 '-D__GNU_SOURCE=1' \ 197 '-DUSE_STLPORT=1' \ 198 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 199 '-DCHROME_BUILD_ID=""' \ 200 '-DNDEBUG' \ 201 '-DNVALGRIND' \ 202 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 203 204 205# Include paths placed before CFLAGS/CPPFLAGS 206LOCAL_C_INCLUDES_Release := \ 207 $(gyp_shared_intermediate_dir) \ 208 $(LOCAL_PATH)/third_party/zlib \ 209 $(PWD)/frameworks/wilhelm/include \ 210 $(PWD)/bionic \ 211 $(PWD)/external/stlport/stlport 212 213 214# Flags passed to only C++ (and not C) files. 215LOCAL_CPPFLAGS_Release := \ 216 -fno-exceptions \ 217 -fno-rtti \ 218 -fno-threadsafe-statics \ 219 -fvisibility-inlines-hidden \ 220 -Wno-deprecated \ 221 -std=gnu++11 \ 222 -Wno-narrowing \ 223 -Wno-literal-suffix \ 224 -Wno-non-virtual-dtor \ 225 -Wno-sign-promo \ 226 -Wno-non-virtual-dtor 227 228 229LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 230LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 231LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 232LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 233### Rules for final target. 234 235LOCAL_SHARED_LIBRARIES := \ 236 libstlport \ 237 libdl 238 239# Add target alias to "gyp_all_modules" target. 240.PHONY: gyp_all_modules 241gyp_all_modules: third_party_zlib_zlib_gyp 242 243# Alias gyp target name. 244.PHONY: zlib 245zlib: third_party_zlib_zlib_gyp 246 247include $(BUILD_STATIC_LIBRARY) 248