forked from RT-Thread/userapps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
25 lines (25 loc) · 686 Bytes
/
xmake.lua
File metadata and controls
25 lines (25 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
local arch = get_config("arch")
if arch == "xuantie" then
local run_apps = {
"busybox",
"cpp",
"hello",
"shm_ping",
"shm_pong",
"smart-fetch",
"zlib",
}
for _, packagedir in ipairs(run_apps) do
local packagefile = path.join(path.join(os.scriptdir(), packagedir), "xmake.lua")
if os.isfile(packagefile) then
includes(packagefile)
end
end
else
for _, packagedir in ipairs(os.dirs(path.join(os.scriptdir(), "*"))) do
local packagefile = path.join(packagedir, "xmake.lua")
if os.isfile(packagefile) then
includes(packagefile)
end
end
end