2014-09-12 17:15:23 +02:00
|
|
|
if tup.getconfig("NO_FASM") ~= "" or tup.getconfig("BUILD_TYPE") == "" then return end
|
2024-05-21 16:45:21 +02:00
|
|
|
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR")
|
|
|
|
tup.include(HELPERDIR .. "/use_fasm.lua")
|
|
|
|
add_include(tup.getvariantdir())
|
|
|
|
|
2024-05-27 20:22:11 +02:00
|
|
|
deps = tup.rule("echo lang fix " .. ((tup.getconfig("LANG") == "") and "en_US" or tup.getconfig("LANG")) .. " > %o", {"lang.inc"})
|
2014-09-12 17:15:23 +02:00
|
|
|
DOCDIR = "../../../../data/" .. tup.getconfig("BUILD_TYPE") .. "/docs/"
|
|
|
|
if tup.getconfig("TUP_PLATFORM") == "win32"
|
|
|
|
then env_prefix = "set DOCDIR=$(DOCDIR)&&"; cp_cmd = "copy %f %o"
|
|
|
|
else env_prefix = "DOCDIR=$(DOCDIR) "; cp_cmd = "cp %f %o"
|
|
|
|
end
|
2024-05-27 20:22:11 +02:00
|
|
|
if tup.getconfig("LANG") == "ru_RU"
|
2014-09-12 17:15:23 +02:00
|
|
|
then tup.append_table(deps,
|
|
|
|
tup.rule("../../../../kernel/trunk/docs/sysfuncr.txt", "iconv -f utf-8 -t cp866 %f > %o", "SYSFUNCR.TXT"))
|
|
|
|
else tup.append_table(deps,
|
|
|
|
tup.rule("../../../../kernel/trunk/docs/sysfuncs.txt", cp_cmd, "SYSFUNCS.TXT"))
|
|
|
|
end
|
|
|
|
tup.append_table(deps,
|
2020-04-29 01:37:24 +02:00
|
|
|
tup.rule("../../../develop/fasm/1.73/fasm.txt", cp_cmd, "FASM.TXT")
|
2014-09-12 17:15:23 +02:00
|
|
|
)
|
2020-01-14 21:12:46 +01:00
|
|
|
tup.append_table(deps,
|
|
|
|
tup.rule("../../../../kernel/trunk/docs/stack.txt", cp_cmd, "STACK.TXT")
|
|
|
|
)
|
2024-05-21 16:45:21 +02:00
|
|
|
tup.rule({"docpack.asm", extra_inputs = deps}, env_prefix .. FASM .. " %f %o " .. tup.getconfig("KPACK_CMD"), "docpack")
|