diff options
| author | ruki <[email protected]> | 2017-05-12 22:22:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-05-12 22:22:53 +0800 |
| commit | fd4a54717f7a25127e77c9159f1b4ffeaa69e3c8 (patch) | |
| tree | 125ca8836120f2adbe820ff3149e1966b003e702 /xmake/plugins/project/vstudio/impl/vs200x_solution.lua | |
| parent | 442a015bd6c93541023a8c11e99a1f353f0a01f6 (diff) | |
fix phony target for vs project
Diffstat (limited to 'xmake/plugins/project/vstudio/impl/vs200x_solution.lua')
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs200x_solution.lua | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs200x_solution.lua b/xmake/plugins/project/vstudio/impl/vs200x_solution.lua index 85de807cc..b076d35bd 100644 --- a/xmake/plugins/project/vstudio/impl/vs200x_solution.lua +++ b/xmake/plugins/project/vstudio/impl/vs200x_solution.lua @@ -40,19 +40,21 @@ function _make_projects(slnfile, vsinfo) -- make all targets for targetname, target in pairs(project.targets()) do + if not target:isphony() then - -- enter project - slnfile:enter("Project(\"{%s}\") = \"%s\", \"%s\\%s.vcproj\", \"{%s}\"", vctool, targetname, targetname, targetname, os.uuid(targetname)) + -- enter project + slnfile:enter("Project(\"{%s}\") = \"%s\", \"%s\\%s.vcproj\", \"{%s}\"", vctool, targetname, targetname, targetname, os.uuid(targetname)) - -- add dependences - for _, dep in ipairs(target:get("deps")) do - slnfile:enter("ProjectSection(ProjectDependencies) = postProject") - slnfile:print("{%s} = {%s}", os.uuid(dep), os.uuid(dep)) - slnfile:leave("EndProjectSection") - end + -- add dependences + for _, dep in ipairs(target:get("deps")) do + slnfile:enter("ProjectSection(ProjectDependencies) = postProject") + slnfile:print("{%s} = {%s}", os.uuid(dep), os.uuid(dep)) + slnfile:leave("EndProjectSection") + end - -- leave project - slnfile:leave("EndProject") + -- leave project + slnfile:leave("EndProject") + end end end @@ -69,9 +71,11 @@ function _make_global(slnfile, vsinfo) -- add project configuration platforms slnfile:enter("GlobalSection(ProjectConfigurationPlatforms) = postSolution") - for targetname, _ in pairs(project.targets()) do - slnfile:print("{%s}.$(mode)|Win32.ActiveCfg = $(mode)|Win32", os.uuid(targetname)) - slnfile:print("{%s}.$(mode)|Win32.Build.0 = $(mode)|Win32", os.uuid(targetname)) + for targetname, target in pairs(project.targets()) do + if not target:isphony() then + slnfile:print("{%s}.$(mode)|Win32.ActiveCfg = $(mode)|Win32", os.uuid(targetname)) + slnfile:print("{%s}.$(mode)|Win32.Build.0 = $(mode)|Win32", os.uuid(targetname)) + end end slnfile:leave("EndGlobalSection") |
