mirror of
https://github.com/XLabsProject/s1x-client.git
synced 2023-08-02 15:02:12 +02:00
40 lines
500 B
Lua
40 lines
500 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"
|
|
|
|
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)
|