summaryrefslogtreecommitdiff
path: root/xmake/core/project/project.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-27 23:57:20 +0800
committerruki <[email protected]>2022-09-27 23:57:20 +0800
commit309a51cb9692851e30ed9cf44f8e33b34976332c (patch)
tree7023de4de3aad9971e7763f0e976886e55f8032e /xmake/core/project/project.lua
parenta1d3d4633fcbe0d112952f5d0ea111570ce3876f (diff)
clone target
Diffstat (limited to 'xmake/core/project/project.lua')
-rw-r--r--xmake/core/project/project.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua
index d0f0145df..73ff45332 100644
--- a/xmake/core/project/project.lua
+++ b/xmake/core/project/project.lua
@@ -340,7 +340,7 @@ function project._load_targets()
-- make targets
local targets = {}
for targetname, targetinfo in pairs(results) do
- local t = target.new(targetname, targetinfo, project)
+ local t = target.new(targetname, targetinfo)
if t and (t:get("enabled") == nil or t:get("enabled") == true) then
targets[targetname] = t
end
@@ -898,6 +898,10 @@ function project.target(name)
return targets and targets[name]
end
+-- add the given target
+function project.target_add(t)
+end
+
-- get targets
function project.targets()
local targets = project._memcache():get("targets")