diff options
| author | ruki <[email protected]> | 2015-05-20 10:40:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-05-20 10:40:16 +0800 |
| commit | d0c91342731cdbaa3e25e239574ce41593297ee1 (patch) | |
| tree | cab29bc6d12be7aa4f67e6dad5a57dbe73717220 /xmake/scripts/base/makefile.lua | |
| parent | 9c161e7f113de8c020df176c1fab87e8c93083f5 (diff) | |
make the current project configure
Diffstat (limited to 'xmake/scripts/base/makefile.lua')
| -rw-r--r-- | xmake/scripts/base/makefile.lua | 7 |
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!") |
