diff options
author | Oliver Schneider <oliver@assarbad.net> | 2014-01-08 03:41:20 +0400 |
---|---|---|
committer | Oliver Schneider <oliver@assarbad.net> | 2014-01-08 03:41:20 +0400 |
commit | 6c2d2a300e2f60dda216f7944c56a9be62db4c9c (patch) | |
tree | 40647c5d84a20d1a5c3c8025f5e86f0003c3c7ff | |
parent | 7f24d71b8ce3a60119e7ce764f5fcccd6cdd70a2 (diff) |
Allowing the mapping between the global solution configuration and the project configurations to be overriddenhg/sln2prj_map_override
--HG--
branch : sln2prj_map_override
-rw-r--r-- | src/actions/vstudio/vs2005_solution.lua | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/actions/vstudio/vs2005_solution.lua b/src/actions/vstudio/vs2005_solution.lua index d5b0298..77928d8 100644 --- a/src/actions/vstudio/vs2005_solution.lua +++ b/src/actions/vstudio/vs2005_solution.lua @@ -86,7 +86,16 @@ _p('\tEndGlobalSection') end +-- +-- Write a single solution to project mapping (ActiveCfg and Build.0 lines) +-- + function sln2005.project_platforms_sln2prj_mapping(sln, prj, cfg, mapped) + _p('\t\t{%s}.%s.ActiveCfg = %s|%s', prj.uuid, cfg.name, cfg.buildcfg, mapped) + if mapped == cfg.platform or cfg.platform == "Mixed Platforms" then + _p('\t\t{%s}.%s.Build.0 = %s|%s', prj.uuid, cfg.name, cfg.buildcfg, mapped) + end + end -- -- Write out the contents of the ProjectConfigurationPlatforms section, which maps @@ -111,11 +120,7 @@ mapped = cfg.platform end end - - _p('\t\t{%s}.%s.ActiveCfg = %s|%s', prj.uuid, cfg.name, cfg.buildcfg, mapped) - if mapped == cfg.platform or cfg.platform == "Mixed Platforms" then - _p('\t\t{%s}.%s.Build.0 = %s|%s', prj.uuid, cfg.name, cfg.buildcfg, mapped) - end + sln2005.project_platforms_sln2prj_mapping(sln, prj, cfg, mapped) end end _p('\tEndGlobalSection') |