Add flag "WPF" to enable Microsoft WPF project handling
This commit is contained in:
parent
708175e24b
commit
d3f0a43644
@ -258,6 +258,7 @@
|
||||
"Unicode",
|
||||
"Unsafe",
|
||||
"WinMain",
|
||||
"WPF",
|
||||
},
|
||||
aliases = {
|
||||
Optimise = 'Optimize',
|
||||
@ -615,7 +616,7 @@
|
||||
scope = "config",
|
||||
kind = "directory-list",
|
||||
tokens = true,
|
||||
}
|
||||
}
|
||||
|
||||
api.register {
|
||||
name = "uuid",
|
||||
|
@ -82,6 +82,7 @@
|
||||
"targetFrameworkVersion",
|
||||
"targetFrameworkProfile",
|
||||
"fileAlignment",
|
||||
"projectTypeGuids",
|
||||
}
|
||||
|
||||
function cs2005.projectProperties(prj)
|
||||
@ -415,6 +416,13 @@
|
||||
end
|
||||
|
||||
|
||||
function cs2005.projectTypeGuids(cfg)
|
||||
if cfg.flags.WPF then
|
||||
_p(2,'<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>')
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function cs2005.rootNamespace(cfg)
|
||||
_p(2,'<RootNamespace>%s</RootNamespace>', cfg.namespace or cfg.buildtarget.basename)
|
||||
end
|
||||
|
@ -149,8 +149,6 @@
|
||||
--
|
||||
|
||||
function project.getconfig(prj, buildcfg, platform)
|
||||
-- prj = premake.oven.bakeProject(prj, prj.solution)
|
||||
|
||||
-- if no build configuration is specified, return the "root" project
|
||||
-- configurations, which includes all configuration values that
|
||||
-- weren't set with a specific configuration filter
|
||||
|
@ -138,3 +138,31 @@
|
||||
]]
|
||||
end
|
||||
|
||||
|
||||
--
|
||||
-- WPF adds an additional element.
|
||||
--
|
||||
|
||||
function suite.projectTypeGuids_onWPF()
|
||||
_ACTION = "vs2010"
|
||||
flags { "WPF" }
|
||||
prepare()
|
||||
test.capture [[
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{AE61726D-187C-E440-BD07-2556188A6565}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>MyProject</RootNamespace>
|
||||
<AssemblyName>MyProject</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile>
|
||||
</TargetFrameworkProfile>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
</PropertyGroup>
|
||||
]]
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user