first commit
CI / Build (clang, clang++, ubuntu-22.04, linux, 3.10, master, x86,x86_64) (push) Canceled after 0s
CI / Build (clang, clang++, windows-2022, windows, 3.10, master, x86,x86_64) (push) Canceled after 0s
CI / Release (push) Canceled after 0s

This commit is contained in:
2026-09-13 22:18:11 +01:00
commit 08c03ac533
6701 changed files with 1577314 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
# vim: sts=2 ts=8 sw=2 tw=99 et ft=python:
import os
builder.SetBuildFolder('libz')
rvalue = {}
for cxx in builder.targets:
binary = Extension.StaticLibrary(builder, cxx, 'z')
binary.compiler.includes += [
os.path.join(builder.sourcePath, 'zlib'),
]
if binary.compiler.target.platform in ['linux', 'mac']:
binary.compiler.defines += ['HAVE_UNISTD_H']
if binary.compiler.family == 'clang':
# https://llvm.org/bugs/show_bug.cgi?id=16428
binary.compiler.cflags += ['-Wno-attributes', '-Wno-deprecated-non-prototype']
# Defined as ZLIB_SRCS in zlib/CMakeLists.txt
binary.sources += [
'adler32.c',
'compress.c',
'crc32.c',
'deflate.c',
'gzclose.c',
'gzlib.c',
'gzread.c',
'gzwrite.c',
'infback.c',
'inffast.c',
'inflate.c',
'inftrees.c',
'trees.c',
'uncompr.c',
'zutil.c',
]
rvalue[binary.compiler.target.arch] = builder.Add(binary)