kolibrios/programs/fs/minizip/Tupfile.lua
Ivan Baravy 8f444289e0 Trigger tup-0.8 autobuild (minor Tupfile.lua changes)
git-svn-id: svn://kolibrios.org@10043 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-05-21 14:55:01 +00:00

29 lines
755 B
Lua

if tup.getconfig("NO_GCC") ~= "" then return end
if tup.getconfig("HELPERDIR") == ""
then
HELPERDIR = "../.."
end
tup.include(HELPERDIR .. "/use_gcc.lua")
tup.include(HELPERDIR .. "/use_newlib.lua")
CFLAGS = CFLAGS .. " -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -Dunix -I. -I../../../contrib/sdk/sources/zlib"
LDFLAGS = LDFLAGS .. " --subsystem console -L../../../contrib/sdk/sources/zlib"
table.insert(LIBDEPS,"../../../contrib/sdk/lib/<libz.dll.a>")
LIBS += " -lz.dll"
-- Compile --
compile_gcc{
"miniunz.c", "unzip.c", "ioapi.c", "minizip.c", "zip.c",
}
-- Link miniunz
link_gcc({"miniunz.o", "unzip.o", "ioapi.o"},"miniunz")
-- Link minizip
link_gcc({"minizip.o", "zip.o", "ioapi.o"}, "minizip")