kolibrios/programs/use_fasm.lua
Ivan Baravy 3befb301cf Add use_fasm.lua and example: launch.
Now one can avoid ../../../../ includes and lang.inc files.

git-svn-id: svn://kolibrios.org@7127 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-12-05 07:29:50 +00:00

17 lines
374 B
Lua

INCLUDES = ""
FASM_DEFAULT = "fasm"
function add_include(dir)
if INCLUDES == ""
then INCLUDES = dir
else INCLUDES = INCLUDES .. ";" .. dir
end
if tup.getconfig("TUP_PLATFORM") == "win32"
then env_prefix = "set INCLUDE='$(INCLUDES)'&&"
else env_prefix = "INCLUDE='$(INCLUDES)' "
end
FASM = env_prefix .. FASM_DEFAULT
end
add_include(tup.getcwd())