0ad/build/premake/functions.lua
Ykkrosh 3fbc464857 # Updated build system
to use Premake 3.1 (slightly modified - see next commit), and to
properly support VS2005. Should still be compatible with GCC, though
there may be differences I haven't noticed.
Removed option to build ScEd (because it won't work anyway).

This was SVN commit r3782.
2006-04-20 01:20:24 +00:00

24 lines
400 B
Lua
Executable File

function sourcesfromdirs(root, dirs)
local res = {}
for i,v in dirs do
local files = matchfiles(
root..v.."/*.cpp",
root..v.."/*.h",
root..v.."/*.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