From 2a2b320fa01e9de52c1199bb27e0ae121a3f193e Mon Sep 17 00:00:00 2001 From: turbocat Date: Tue, 31 Aug 2021 20:42:20 +0000 Subject: [PATCH] OpenTyrian: Added to autobuild git-svn-id: svn://kolibrios.org@9171 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/games/opentyrian/Tupfile.lua | 75 ++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 contrib/games/opentyrian/Tupfile.lua diff --git a/contrib/games/opentyrian/Tupfile.lua b/contrib/games/opentyrian/Tupfile.lua new file mode 100644 index 0000000000..d63a216064 --- /dev/null +++ b/contrib/games/opentyrian/Tupfile.lua @@ -0,0 +1,75 @@ +if tup.getconfig("NO_GCC") ~= "" then return end +if tup.getconfig("HELPERDIR") == "" +then + if tup.getconfig("NO_NASM") ~= "" then return end -- required for SDL compilation + HELPERDIR = "../../../programs" +end +tup.include(HELPERDIR .. "/use_gcc.lua") +tup.include(HELPERDIR .. "/use_newlib.lua") +--use_dynamic_stack() -- default 64K are not sufficient +tup.include(HELPERDIR .. "/use_sdl_newlib.lua") +CFLAGS = CFLAGS .. [[ -UWIN32 -U_WIN32 -U__WIN32__ -D_KOLIBRI -DTYRIAN_DIR="\"."\" -DSDL_strlcpy=strncpy -D_GNU_SOURCE=1 -D_REENTRANT -DNDEBUG -Wno-missing-field-initializers ]] + +LDFLAGS = LDFLAGS .. " --subsystem native" + +-- Game src files -- +compile_gcc{ + "./src/scroller.c", + "./src/config.c", + "./src/game_menu.c", + "./src/file.c", + "./src/opentyr.c", + "./src/sndmast.c", + "./src/sizebuf.c", + "./src/video_scale.c", + "./src/loudness.c", + "./src/palette.c", + "./src/joystick.c", + "./src/lds_play.c", + "./src/font.c", + "./src/config_file.c", + "./src/network.c", + "./src/helptext.c", + "./src/xmas.c", + "./src/keyboard.c", + "./src/jukebox.c", + "./src/picload.c", + "./src/shots.c", + "./src/setup.c", + "./src/mouse.c", + "./src/musmast.c", + "./src/nortvars.c", + "./src/backgrnd.c", + "./src/destruct.c", + "./src/lvllib.c", + "./src/video_scale_hqNx.c", + "./src/std_support.c", + "./src/mtrand.c", + "./src/sprite.c", + "./src/episodes.c", + "./src/arg_parse.c", + "./src/opl.c", + "./src/video.c", + "./src/editship.c", + "./src/vga_palette.c", + "./src/pcxload.c", + "./src/fonthand.c", + "./src/mainint.c", + "./src/tyrian2.c", + "./src/lvlmast.c", + "./src/animlib.c", + "./src/pcxmast.c", + "./src/menus.c", + "./src/starlib.c", + "./src/player.c", + "./src/nortsong.c", + "./src/vga256d.c", + "./src/varz.c", + "./src/params.c", + "./SDL/joystick_stub.c", + "./SDL/SDL_wave.c", + "./SDL/SDL_audiocvt.c", + "./SDL/uSDL.c", +} + +link_gcc("opentyrian")