Fix libmujs autobuild

git-svn-id: svn://kolibrios.org@8486 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
maxcodehack
2020-12-27 16:01:26 +00:00
parent cf20eabdc1
commit 261cb7bddc
3 changed files with 23 additions and 20 deletions
+13
View File
@@ -0,0 +1,13 @@
if tup.getconfig("NO_GCC") ~= "" then return end
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
tup.include(HELPERDIR .. "/use_gcc.lua")
tup.include(HELPERDIR .. "/use_newlib.lua")
LDFLAGS = LDFLAGS .. " -Llibmujs --subsystem native"
LIBS = "-lmujs " .. LIBS
table.insert(LIBDEPS, "libmujs/<libmujs>")
INCLUDES = INCLUDES .. " -Ilibmujs"
compile_gcc{"kosjs.c", "import.c"}
link_gcc("kosjs")