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