2017-12-05 10:29:50 +03:00
|
|
|
INCLUDES = ""
|
|
|
|
FASM_DEFAULT = "fasm"
|
2021-05-22 22:09:11 +03:00
|
|
|
PESTRIP_CMD = string.gsub(tup.getconfig("PESTRIP_CMD"), "$(ROOT)", ROOT or "")
|
2017-12-05 10:29:50 +03:00
|
|
|
|
|
|
|
function add_include(dir)
|
|
|
|
if INCLUDES == ""
|
|
|
|
then INCLUDES = dir
|
|
|
|
else INCLUDES = INCLUDES .. ";" .. dir
|
|
|
|
end
|
|
|
|
if tup.getconfig("TUP_PLATFORM") == "win32"
|
2020-05-25 01:34:03 +03:00
|
|
|
then env_prefix = "set INCLUDE=$(INCLUDES)&&"
|
2021-05-22 21:02:57 +03:00
|
|
|
-- else env_prefix = "INCLUDE='$(INCLUDES)' "
|
|
|
|
else env_prefix = "INCLUDE='" .. INCLUDES .. "' "
|
2017-12-05 10:29:50 +03:00
|
|
|
end
|
|
|
|
FASM = env_prefix .. FASM_DEFAULT
|
|
|
|
end
|
|
|
|
|
|
|
|
add_include(tup.getcwd())
|