df217df7cb
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Diavolo <edoardo.sanguineti222@gmail.com>
41 lines
517 B
Lua
41 lines
517 B
Lua
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"
|
|
cdialect "C89"
|
|
|
|
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)
|