From 90df188638da752b5f2801145e7ae53f8a5c4aca Mon Sep 17 00:00:00 2001 From: turbocat Date: Tue, 26 Apr 2022 09:36:31 +0000 Subject: [PATCH] Added libvorbis to autobuild git-svn-id: svn://kolibrios.org@9793 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../sdk/sources/libvorbis-1.3.7/Tupfile.lua | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 contrib/sdk/sources/libvorbis-1.3.7/Tupfile.lua diff --git a/contrib/sdk/sources/libvorbis-1.3.7/Tupfile.lua b/contrib/sdk/sources/libvorbis-1.3.7/Tupfile.lua new file mode 100755 index 0000000000..303c742fe6 --- /dev/null +++ b/contrib/sdk/sources/libvorbis-1.3.7/Tupfile.lua @@ -0,0 +1,36 @@ +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_OPTIMIZE_SPEED .. " -DHAVE_CONFIG " + +INCLUDES = INCLUDES .. " -Iinclude -I../libogg-1.3.5/include -Ilib " + +compile_gcc{ + "lib/block.c", + "lib/sharedbook.c", + "lib/vorbisenc.c", + "lib/info.c", + "lib/registry.c", + "lib/psy.c", + "lib/window.c", + "lib/lpc.c", + "lib/tone.c", + "lib/smallft.c", + "lib/barkmel.c", + "lib/mdct.c", + "lib/bitrate.c", + "lib/analysis.c", + "lib/vorbisfile.c", + "lib/res0.c", + "lib/lookup.c", + "lib/lsp.c", + "lib/floor1.c", + "lib/floor0.c", + "lib/codebook.c", + "lib/envelope.c", + "lib/mapping0.c", + "lib/synthesis.c" +} +tup.rule(OBJS, "kos32-ar rcs %o %f", {"../../lib/libvorbis.a", "../../lib/"})