Ykkrosh
3fbc464857
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.
24 lines
400 B
Lua
Executable File
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
|