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_google_zip_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9gyp_intermediate_dir := $(call local-intermediates-dir) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 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_CPP_EXTENSION := .cc 21LOCAL_GENERATED_SOURCES := 22 23GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25LOCAL_SRC_FILES := \ 26 third_party/zlib/google/zip.cc \ 27 third_party/zlib/google/zip_internal.cc \ 28 third_party/zlib/google/zip_reader.cc 29 30 31# Flags passed to both C and C++ files. 32MY_CFLAGS_Debug := \ 33 --param=ssp-buffer-size=4 \ 34 -fno-exceptions \ 35 -fno-strict-aliasing \ 36 -Wno-unused-parameter \ 37 -Wno-missing-field-initializers \ 38 -fvisibility=hidden \ 39 -pipe \ 40 -fPIC \ 41 -Wno-format \ 42 -m32 \ 43 -mmmx \ 44 -march=pentium4 \ 45 -msse2 \ 46 -mfpmath=sse \ 47 -fuse-ld=gold \ 48 -ffunction-sections \ 49 -funwind-tables \ 50 -g \ 51 -fno-short-enums \ 52 -finline-limit=64 \ 53 -Wa,--noexecstack \ 54 -U_FORTIFY_SOURCE \ 55 -Wno-extra \ 56 -Wno-ignored-qualifiers \ 57 -Wno-type-limits \ 58 -fno-stack-protector \ 59 -Wno-address \ 60 -Wno-format-security \ 61 -Wno-return-type \ 62 -Wno-sequence-point \ 63 -Os \ 64 -g \ 65 -fomit-frame-pointer \ 66 -fdata-sections \ 67 -ffunction-sections 68 69MY_DEFS_Debug := \ 70 '-DV8_DEPRECATION_WARNINGS' \ 71 '-D_FILE_OFFSET_BITS=64' \ 72 '-DNO_TCMALLOC' \ 73 '-DDISABLE_NACL' \ 74 '-DCHROMIUM_BUILD' \ 75 '-DUSE_LIBJPEG_TURBO=1' \ 76 '-DUSE_PROPRIETARY_CODECS' \ 77 '-DENABLE_CONFIGURATION_POLICY' \ 78 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 79 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 80 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 81 '-DUSE_OPENSSL=1' \ 82 '-DENABLE_EGLIMAGE=1' \ 83 '-DCLD_VERSION=1' \ 84 '-DENABLE_PRINTING=1' \ 85 '-DENABLE_MANAGED_USERS=1' \ 86 '-DANDROID' \ 87 '-D__GNU_SOURCE=1' \ 88 '-DUSE_STLPORT=1' \ 89 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 90 '-DCHROME_BUILD_ID=""' \ 91 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 92 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 93 '-D_DEBUG' 94 95 96# Include paths placed before CFLAGS/CPPFLAGS 97LOCAL_C_INCLUDES_Debug := \ 98 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 99 $(LOCAL_PATH) \ 100 $(LOCAL_PATH)/third_party/zlib \ 101 $(PWD)/frameworks/wilhelm/include \ 102 $(PWD)/bionic \ 103 $(PWD)/external/stlport/stlport 104 105 106# Flags passed to only C++ (and not C) files. 107LOCAL_CPPFLAGS_Debug := \ 108 -fno-rtti \ 109 -fno-threadsafe-statics \ 110 -fvisibility-inlines-hidden \ 111 -Wno-deprecated \ 112 -Wno-error=c++0x-compat \ 113 -Wno-non-virtual-dtor \ 114 -Wno-sign-promo \ 115 -Wno-non-virtual-dtor 116 117 118# Flags passed to both C and C++ files. 119MY_CFLAGS_Release := \ 120 --param=ssp-buffer-size=4 \ 121 -fno-exceptions \ 122 -fno-strict-aliasing \ 123 -Wno-unused-parameter \ 124 -Wno-missing-field-initializers \ 125 -fvisibility=hidden \ 126 -pipe \ 127 -fPIC \ 128 -Wno-format \ 129 -m32 \ 130 -mmmx \ 131 -march=pentium4 \ 132 -msse2 \ 133 -mfpmath=sse \ 134 -fuse-ld=gold \ 135 -ffunction-sections \ 136 -funwind-tables \ 137 -g \ 138 -fno-short-enums \ 139 -finline-limit=64 \ 140 -Wa,--noexecstack \ 141 -U_FORTIFY_SOURCE \ 142 -Wno-extra \ 143 -Wno-ignored-qualifiers \ 144 -Wno-type-limits \ 145 -fno-stack-protector \ 146 -Wno-address \ 147 -Wno-format-security \ 148 -Wno-return-type \ 149 -Wno-sequence-point \ 150 -Os \ 151 -fno-ident \ 152 -fdata-sections \ 153 -ffunction-sections \ 154 -fomit-frame-pointer \ 155 -fno-unwind-tables \ 156 -fno-asynchronous-unwind-tables 157 158MY_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 '-DUSE_PROPRIETARY_CODECS' \ 166 '-DENABLE_CONFIGURATION_POLICY' \ 167 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 168 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 169 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 170 '-DUSE_OPENSSL=1' \ 171 '-DENABLE_EGLIMAGE=1' \ 172 '-DCLD_VERSION=1' \ 173 '-DENABLE_PRINTING=1' \ 174 '-DENABLE_MANAGED_USERS=1' \ 175 '-DANDROID' \ 176 '-D__GNU_SOURCE=1' \ 177 '-DUSE_STLPORT=1' \ 178 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 179 '-DCHROME_BUILD_ID=""' \ 180 '-DNDEBUG' \ 181 '-DNVALGRIND' \ 182 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 183 184 185# Include paths placed before CFLAGS/CPPFLAGS 186LOCAL_C_INCLUDES_Release := \ 187 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 188 $(LOCAL_PATH) \ 189 $(LOCAL_PATH)/third_party/zlib \ 190 $(PWD)/frameworks/wilhelm/include \ 191 $(PWD)/bionic \ 192 $(PWD)/external/stlport/stlport 193 194 195# Flags passed to only C++ (and not C) files. 196LOCAL_CPPFLAGS_Release := \ 197 -fno-rtti \ 198 -fno-threadsafe-statics \ 199 -fvisibility-inlines-hidden \ 200 -Wno-deprecated \ 201 -Wno-error=c++0x-compat \ 202 -Wno-non-virtual-dtor \ 203 -Wno-sign-promo \ 204 -Wno-non-virtual-dtor 205 206 207LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 208LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 209LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 210### Rules for final target. 211 212LOCAL_LDFLAGS_Debug := \ 213 -Wl,-z,now \ 214 -Wl,-z,relro \ 215 -Wl,-z,noexecstack \ 216 -fPIC \ 217 -m32 \ 218 -fuse-ld=gold \ 219 -nostdlib \ 220 -Wl,--no-undefined \ 221 -Wl,--exclude-libs=ALL \ 222 -Wl,--fatal-warnings \ 223 -Wl,--gc-sections \ 224 -Wl,--warn-shared-textrel \ 225 -Wl,-O1 \ 226 -Wl,--as-needed 227 228 229LOCAL_LDFLAGS_Release := \ 230 -Wl,-z,now \ 231 -Wl,-z,relro \ 232 -Wl,-z,noexecstack \ 233 -fPIC \ 234 -m32 \ 235 -fuse-ld=gold \ 236 -nostdlib \ 237 -Wl,--no-undefined \ 238 -Wl,--exclude-libs=ALL \ 239 -Wl,-O1 \ 240 -Wl,--as-needed \ 241 -Wl,--gc-sections \ 242 -Wl,--fatal-warnings \ 243 -Wl,--warn-shared-textrel 244 245 246LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 247 248LOCAL_STATIC_LIBRARIES := 249 250# Enable grouping to fix circular references 251LOCAL_GROUP_STATIC_LIBRARIES := true 252 253LOCAL_SHARED_LIBRARIES := \ 254 libstlport \ 255 libdl 256 257# Add target alias to "gyp_all_modules" target. 258.PHONY: gyp_all_modules 259gyp_all_modules: third_party_zlib_google_zip_gyp 260 261# Alias gyp target name. 262.PHONY: zip 263zip: third_party_zlib_google_zip_gyp 264 265include $(BUILD_STATIC_LIBRARY) 266