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 -fstack-protector \ 45 --param=ssp-buffer-size=4 \ 46 -fno-exceptions \ 47 -fno-strict-aliasing \ 48 -Wno-unused-parameter \ 49 -Wno-missing-field-initializers \ 50 -fvisibility=hidden \ 51 -pipe \ 52 -fPIC \ 53 -Wno-format \ 54 -fno-tree-sra \ 55 -fuse-ld=gold \ 56 -Wno-psabi \ 57 -ffunction-sections \ 58 -funwind-tables \ 59 -g \ 60 -fstack-protector \ 61 -fno-short-enums \ 62 -finline-limit=64 \ 63 -Wa,--noexecstack \ 64 -U_FORTIFY_SOURCE \ 65 -Wno-extra \ 66 -Wno-ignored-qualifiers \ 67 -Wno-type-limits \ 68 -Wno-address \ 69 -Wno-format-security \ 70 -Wno-return-type \ 71 -Wno-sequence-point \ 72 -Os \ 73 -g \ 74 -fomit-frame-pointer \ 75 -fdata-sections \ 76 -ffunction-sections 77 78 MY_DEFS_Debug := \ 79 '-DANGLE_DX11' \ 80 '-D_FILE_OFFSET_BITS=64' \ 81 '-DNO_TCMALLOC' \ 82 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 83 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 84 '-DDISABLE_NACL' \ 85 '-DCHROMIUM_BUILD' \ 86 '-DUSE_LIBJPEG_TURBO=1' \ 87 '-DUSE_PROPRIETARY_CODECS' \ 88 '-DENABLE_CONFIGURATION_POLICY' \ 89 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 90 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 91 '-DENABLE_GPU=1' \ 92 '-DUSE_OPENSSL=1' \ 93 '-DENABLE_EGLIMAGE=1' \ 94 '-DENABLE_PRINTING=1' \ 95 '-DANDROID' \ 96 '-D__GNU_SOURCE=1' \ 97 '-DUSE_STLPORT=1' \ 98 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 99 '-DCHROME_BUILD_ID=""' \ 100 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 101 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 102 '-D_DEBUG' 103 104 105 # Include paths placed before CFLAGS/CPPFLAGS 106 LOCAL_C_INCLUDES_Debug := \ 107 $(LOCAL_PATH)/third_party/zlib \ 108 $(PWD)/frameworks/wilhelm/include \ 109 $(PWD)/bionic \ 110 $(PWD)/external/stlport/stlport 111 112 113 # Flags passed to only C++ (and not C) files. 114 LOCAL_CPPFLAGS_Debug := \ 115 -fno-rtti \ 116 -fno-threadsafe-statics \ 117 -fvisibility-inlines-hidden \ 118 -Wno-deprecated \ 119 -Wno-abi \ 120 -Wno-error=c++0x-compat \ 121 -Wno-non-virtual-dtor \ 122 -Wno-sign-promo \ 123 -Wno-non-virtual-dtor 124 125 126 # Flags passed to both C and C++ files. 127 MY_CFLAGS_Release := \ 128 -fstack-protector \ 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 -fno-tree-sra \ 139 -fuse-ld=gold \ 140 -Wno-psabi \ 141 -ffunction-sections \ 142 -funwind-tables \ 143 -g \ 144 -fstack-protector \ 145 -fno-short-enums \ 146 -finline-limit=64 \ 147 -Wa,--noexecstack \ 148 -U_FORTIFY_SOURCE \ 149 -Wno-extra \ 150 -Wno-ignored-qualifiers \ 151 -Wno-type-limits \ 152 -Wno-address \ 153 -Wno-format-security \ 154 -Wno-return-type \ 155 -Wno-sequence-point \ 156 -Os \ 157 -fno-ident \ 158 -fdata-sections \ 159 -ffunction-sections \ 160 -fomit-frame-pointer 161 162 MY_DEFS_Release := \ 163 '-DANGLE_DX11' \ 164 '-D_FILE_OFFSET_BITS=64' \ 165 '-DNO_TCMALLOC' \ 166 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 167 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 168 '-DDISABLE_NACL' \ 169 '-DCHROMIUM_BUILD' \ 170 '-DUSE_LIBJPEG_TURBO=1' \ 171 '-DUSE_PROPRIETARY_CODECS' \ 172 '-DENABLE_CONFIGURATION_POLICY' \ 173 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 174 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 175 '-DENABLE_GPU=1' \ 176 '-DUSE_OPENSSL=1' \ 177 '-DENABLE_EGLIMAGE=1' \ 178 '-DENABLE_PRINTING=1' \ 179 '-DANDROID' \ 180 '-D__GNU_SOURCE=1' \ 181 '-DUSE_STLPORT=1' \ 182 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 183 '-DCHROME_BUILD_ID=""' \ 184 '-DNDEBUG' \ 185 '-DNVALGRIND' \ 186 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 187 188 189 # Include paths placed before CFLAGS/CPPFLAGS 190 LOCAL_C_INCLUDES_Release := \ 191 $(LOCAL_PATH)/third_party/zlib \ 192 $(PWD)/frameworks/wilhelm/include \ 193 $(PWD)/bionic \ 194 $(PWD)/external/stlport/stlport 195 196 197 # Flags passed to only C++ (and not C) files. 198 LOCAL_CPPFLAGS_Release := \ 199 -fno-rtti \ 200 -fno-threadsafe-statics \ 201 -fvisibility-inlines-hidden \ 202 -Wno-deprecated \ 203 -Wno-abi \ 204 -Wno-error=c++0x-compat \ 205 -Wno-non-virtual-dtor \ 206 -Wno-sign-promo \ 207 -Wno-non-virtual-dtor 208 209 210 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 211 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 212 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 213 ### Rules for final target. 214 215 LOCAL_LDFLAGS_Debug := \ 216 -Wl,-z,now \ 217 -Wl,-z,relro \ 218 -Wl,-z,noexecstack \ 219 -fPIC \ 220 -Wl,-z,relro \ 221 -Wl,-z,now \ 222 -fuse-ld=gold \ 223 -nostdlib \ 224 -Wl,--no-undefined \ 225 -Wl,--exclude-libs=ALL \ 226 -Wl,--icf=safe \ 227 -Wl,--fatal-warnings \ 228 -Wl,--gc-sections \ 229 -Wl,--warn-shared-textrel \ 230 -Wl,-O1 \ 231 -Wl,--as-needed 232 233 234 LOCAL_LDFLAGS_Release := \ 235 -Wl,-z,now \ 236 -Wl,-z,relro \ 237 -Wl,-z,noexecstack \ 238 -fPIC \ 239 -Wl,-z,relro \ 240 -Wl,-z,now \ 241 -fuse-ld=gold \ 242 -nostdlib \ 243 -Wl,--no-undefined \ 244 -Wl,--exclude-libs=ALL \ 245 -Wl,--icf=safe \ 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