summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/makefile.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-05-20 10:40:16 +0800
committerruki <[email protected]>2015-05-20 10:40:16 +0800
commitd0c91342731cdbaa3e25e239574ce41593297ee1 (patch)
treecab29bc6d12be7aa4f67e6dad5a57dbe73717220 /xmake/scripts/base/makefile.lua
parent9c161e7f113de8c020df176c1fab87e8c93083f5 (diff)
make the current project configure
Diffstat (limited to 'xmake/scripts/base/makefile.lua')
-rw-r--r--xmake/scripts/base/makefile.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/scripts/base/makefile.lua b/xmake/scripts/base/makefile.lua
index 7d2680f61..b09a1b237 100644
--- a/xmake/scripts/base/makefile.lua
+++ b/xmake/scripts/base/makefile.lua
@@ -69,6 +69,9 @@ function makefile._srcfiles(target)
end
end
+ -- remove repeat files
+ srcfiles = utils.unique(srcfiles)
+
-- ok?
return srcfiles
end
@@ -194,10 +197,10 @@ end
function makefile._make_targets(file)
-- check
- assert(file and project and project._CONFIGS)
+ assert(file)
-- get all project targets
- local targets = project._CONFIGS._TARGET
+ local targets = project.targets()
if not targets then
-- error
utils.error("not found target in this project!")