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