0ad/build/premake/functions.lua
Ykkrosh 54c1508db6 Renamed autobuilt ps.exe to pyrogenesis.exe, to match the new project layout.
Fixed Atlas project creation.
Improved VS2005 linking speed.
Added work-in-progress environment (water, sun) editing to Atlas.

This was SVN commit r3935.
2006-06-03 05:08:32 +00:00

26 lines
475 B
Lua
Executable File

function sourcesfromdirs(root, dirs)
local res = {}
for i,v in dirs do
local prefix
if v == "" then prefix = root..v else prefix = root..v.."/" end
local files = matchfiles(
prefix.."*.cpp",
prefix.."*.h",
prefix.."*.asm")
listconcat(res, files)
end
return res
end
function trimrootdir(root, dirs)
for i,v in dirs do
dirs[i] = strsub(v, strlen(root))
end
end
function listconcat(list, values)
for i,v in values do
table.insert(list, v)
end
end