From 3117bdc92756928033f31205102f9fdc00b91793 Mon Sep 17 00:00:00 2001 From: maxcodehack Date: Fri, 8 Jan 2021 11:06:19 +0000 Subject: [PATCH] Add zlib and jumpnbump to autobuild git-svn-id: svn://kolibrios.org@8527 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/other/jumpnbump/Tupfile.lua | 18 ++++++++++++++++++ contrib/other/jumpnbump/sdl/Tupfile.lua | 11 +++++++++++ contrib/sdk/sources/zlib/Tupfile.lua | 9 +++++++++ 3 files changed, 38 insertions(+) create mode 100755 contrib/other/jumpnbump/Tupfile.lua create mode 100755 contrib/other/jumpnbump/sdl/Tupfile.lua create mode 100755 contrib/sdk/sources/zlib/Tupfile.lua diff --git a/contrib/other/jumpnbump/Tupfile.lua b/contrib/other/jumpnbump/Tupfile.lua new file mode 100755 index 0000000000..ad1039f24e --- /dev/null +++ b/contrib/other/jumpnbump/Tupfile.lua @@ -0,0 +1,18 @@ +if tup.getconfig("NO_GCC") ~= "" then return end +HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../programs" or tup.getconfig("HELPERDIR") +tup.include(HELPERDIR .. "/use_gcc.lua") +tup.include(HELPERDIR .. "/use_newlib.lua") +tup.include(HELPERDIR .. "/use_sdl_newlib.lua") + +SDK_DIR = "../../sdk" + +CFLAGS = CFLAGS .. " -Dstricmp=strcasecmp -DZLIB_SUPPORT -Dstrnicmp=strncasecmp -DUSE_SDL -DNDEBUG -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32" +INCLUDES = INCLUDES .. " -I. -I $(SDK_DIR)/sources/zlib" +LDFLAGS = LDFLAGS .. " -Lsdl --subsystem native" +LIBS = "-ls -lz " .. LIBS + +table.insert(LIBDEPS, "$(SDK_DIR)/lib/") +table.insert(LIBDEPS, "sdl/") + +compile_gcc{"filter.c", "fireworks.c", "main.c", "menu.c", "stub.c"} +link_gcc("jumpnbump") diff --git a/contrib/other/jumpnbump/sdl/Tupfile.lua b/contrib/other/jumpnbump/sdl/Tupfile.lua new file mode 100755 index 0000000000..effdf377ab --- /dev/null +++ b/contrib/other/jumpnbump/sdl/Tupfile.lua @@ -0,0 +1,11 @@ +if tup.getconfig("NO_GCC") ~= "" then return end +HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../../programs" or tup.getconfig("HELPERDIR") +tup.include(HELPERDIR .. "/use_gcc.lua") +tup.include(HELPERDIR .. "/use_newlib.lua") +tup.include(HELPERDIR .. "/use_sdl_newlib.lua") + +CFLAGS = CFLAGS .. " -DNDEBUG -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DUSE_SDL" +INCLUDES = INCLUDES .. " -I.." + +compile_gcc{"gfx.c", "input.c", "interrpt.c", "sound.c"} +tup.rule(OBJS, "kos32-ar rcs %o %f", {"libs.a", ""}) diff --git a/contrib/sdk/sources/zlib/Tupfile.lua b/contrib/sdk/sources/zlib/Tupfile.lua new file mode 100755 index 0000000000..46301d889b --- /dev/null +++ b/contrib/sdk/sources/zlib/Tupfile.lua @@ -0,0 +1,9 @@ +if tup.getconfig("NO_GCC") ~= "" then return end +HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../../programs" or tup.getconfig("HELPERDIR") +tup.include(HELPERDIR .. "/use_gcc.lua") +tup.include(HELPERDIR .. "/use_newlib.lua") + +CFLAGS = CFLAGS .. " -DHAVE_UNISTD_H -U_Win32 -U_WIN32 -U__MINGW32__" + +compile_gcc{"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"} +tup.rule(OBJS, "kos32-ar rcs %o %f", {"../../lib/libz.a", "../../lib/"})