diff options
| author | ruki <[email protected]> | 2017-03-23 09:49:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-03-23 09:49:07 +0800 |
| commit | dcf38006d36ec96bbc20be32f97ceb7b5f176821 (patch) | |
| tree | 423b0feafb6a7ce1f733fcd44881b049855caa48 /xmake/core/project/project.lua | |
| parent | 1bdf43c3a7fcd6aa578e2b293664f0db80ebd058 (diff) | |
improve vs201x project plugin and add set_basename api
Diffstat (limited to 'xmake/core/project/project.lua')
| -rw-r--r-- | xmake/core/project/project.lua | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua index 0cf877ba3..6c25ed8e7 100644 --- a/xmake/core/project/project.lua +++ b/xmake/core/project/project.lua @@ -194,6 +194,7 @@ function project._interpreter() , "target.set_strip" , "target.set_options" , "target.set_symbols" + , "target.set_basename" , "target.set_warnings" , "target.set_optimize" , "target.set_languages" @@ -421,17 +422,7 @@ function project.load() -- make targets local targets = {} for targetname, targetinfo in pairs(results) do - - -- init a target instance - local instance = table.inherit(target) - assert(instance) - - -- save name and info - instance._NAME = targetname - instance._INFO = targetinfo - - -- save it - targets[targetname] = instance + targets[targetname] = target.new(targetname, targetinfo) end -- save targets |
