mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-17 05:44:08 -07:00
Fixed Atlas project creation. Improved VS2005 linking speed. Added work-in-progress environment (water, sun) editing to Atlas. This was SVN commit r3935.
25 lines
475 B
Lua
Executable file
25 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
|