forked from KolibriOS/kolibrios
fb2reader: add to oberon07 build system (#343)
Part of issue #328 Reviewed-on: KolibriOS/kolibrios#343 Reviewed-by: Max Logaev <maxlogaev@proton.me> Reviewed-by: Mikhail Frolov <mixa.frolov2003@gmail.com> Co-authored-by: hrigar <h4gar02@protonmail.com> Co-committed-by: hrigar <h4gar02@protonmail.com>
This commit is contained in:
9
programs/other/fb2reader/Tupfile.lua
Normal file
9
programs/other/fb2reader/Tupfile.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
if tup.getconfig("NO_OB07") ~= "" then return end
|
||||
if tup.getconfig("HELPERDIR") == ""
|
||||
then
|
||||
HELPERDIR = "../../"
|
||||
end
|
||||
|
||||
tup.include(HELPERDIR .. "/use_ob07.lua")
|
||||
|
||||
build_ob07({"SRC/FB2READ.ob07"}, "fb2read", "-upper");
|
||||
@@ -1,6 +1,7 @@
|
||||
OB07 = tup.getcwd() .. "/develop/oberon07/compiler"
|
||||
OB07_FLAGS = "-stk 1 -nochk a"
|
||||
|
||||
function build_ob07(input, output)
|
||||
tup.rule(input, OB07 .. " %f kosexe -out %o " .. OB07_FLAGS .. " " .. tup.getconfig("KPACK_CMD"), output)
|
||||
end
|
||||
OB07 = tup.getcwd() .. "/develop/oberon07/compiler"
|
||||
OB07_FLAGS = "-stk 1 -nochk a"
|
||||
|
||||
function build_ob07(input, output, extra_flags)
|
||||
extra_flags = extra_flags or ""
|
||||
tup.rule(input, OB07 .. " %f kosexe -out %o " .. OB07_FLAGS .. " " .. extra_flags .. " " .. tup.getconfig("KPACK_CMD"), output)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user