Added libvorbis to autobuild

git-svn-id: svn://kolibrios.org@9793 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
turbocat 2022-04-26 09:36:31 +00:00
parent 17728ab831
commit 90df188638

View File

@ -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/<libvorbis>"})