2023-05-26 10:09:29 -04:00
|
|
|
zlib = {
|
|
|
|
source = path.join(dependencies.basePath, "zlib"),
|
|
|
|
}
|
|
|
|
|
|
|
|
function zlib.import()
|
|
|
|
links { "zlib" }
|
|
|
|
zlib.includes()
|
|
|
|
end
|
|
|
|
|
|
|
|
function zlib.includes()
|
|
|
|
includedirs {
|
|
|
|
zlib.source
|
|
|
|
}
|
|
|
|
|
|
|
|
defines {
|
|
|
|
"ZLIB_CONST",
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
function zlib.project()
|
|
|
|
project "zlib"
|
|
|
|
language "C"
|
2023-09-12 13:28:07 -04:00
|
|
|
cdialect "C89"
|
2023-05-26 10:09:29 -04:00
|
|
|
|
|
|
|
zlib.includes()
|
|
|
|
|
|
|
|
files {
|
|
|
|
path.join(zlib.source, "*.h"),
|
|
|
|
path.join(zlib.source, "*.c"),
|
|
|
|
}
|
|
|
|
|
|
|
|
defines {
|
|
|
|
"_CRT_SECURE_NO_DEPRECATE",
|
|
|
|
}
|
|
|
|
|
|
|
|
warnings "Off"
|
|
|
|
kind "StaticLib"
|
|
|
|
end
|
|
|
|
|
|
|
|
table.insert(dependencies, zlib)
|