2011-07-01 19:05:16 +00:00
|
|
|
--
|
|
|
|
-- tests/actions/vstudio/vc2010/test_header.lua
|
|
|
|
-- Validate generation of the project file header block.
|
2012-01-27 01:40:39 +00:00
|
|
|
-- Copyright (c) 2011-2012 Jason Perkins and the Premake project
|
2011-07-01 19:05:16 +00:00
|
|
|
--
|
|
|
|
|
2012-01-27 01:40:39 +00:00
|
|
|
T.vstudio_vc2010_header = { }
|
|
|
|
local suite = T.vstudio_vc2010_header
|
2011-07-01 19:05:16 +00:00
|
|
|
local vc2010 = premake.vstudio.vc2010
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2012-01-27 01:40:39 +00:00
|
|
|
-- If a default build target is specified, it should be included in the
|
|
|
|
-- generated Project element.
|
2011-07-01 19:05:16 +00:00
|
|
|
--
|
|
|
|
|
2012-01-27 01:40:39 +00:00
|
|
|
function suite.project_onDefaultTarget()
|
|
|
|
vc2010.header_ng("Build")
|
|
|
|
test.capture [[
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
]]
|
2011-07-01 19:05:16 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
--
|
2012-01-27 01:40:39 +00:00
|
|
|
-- If no build target is specified, the entire attribute should be omitted.
|
2011-07-01 19:05:16 +00:00
|
|
|
--
|
|
|
|
|
2012-01-27 01:40:39 +00:00
|
|
|
function suite.project_onNoDefaultTarget()
|
|
|
|
vc2010.header_ng()
|
2011-07-01 19:05:16 +00:00
|
|
|
test.capture [[
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
]]
|
|
|
|
end
|