Use new indentation-aware APIs in VC 200x exporter
This commit is contained in:
parent
f40bdf16c1
commit
6db06d6985
@ -180,7 +180,7 @@
|
|||||||
_p(3,'<Link>%s</Link>', path.translate(link))
|
_p(3,'<Link>%s</Link>', path.translate(link))
|
||||||
end
|
end
|
||||||
if #contents > 0 then
|
if #contents > 0 then
|
||||||
_p("%s", contents)
|
io.printf("%s", contents)
|
||||||
end
|
end
|
||||||
_p(2,'</%s>', info.action)
|
_p(2,'</%s>', info.action)
|
||||||
else
|
else
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -384,7 +384,7 @@
|
|||||||
end)
|
end)
|
||||||
if #contents > 0 then
|
if #contents > 0 then
|
||||||
_p(2,'<Lib>')
|
_p(2,'<Lib>')
|
||||||
_p("%s", contents)
|
io.printf("%s", contents)
|
||||||
_p(2,'</Lib>')
|
_p(2,'</Lib>')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -529,7 +529,7 @@
|
|||||||
|
|
||||||
if #contents > 0 then
|
if #contents > 0 then
|
||||||
_x(2,'<ClCompile Include=\"%s\">', path.translate(file.relpath))
|
_x(2,'<ClCompile Include=\"%s\">', path.translate(file.relpath))
|
||||||
_p("%s", contents)
|
io.printf("%s", contents)
|
||||||
_p(2,'</ClCompile>')
|
_p(2,'</ClCompile>')
|
||||||
else
|
else
|
||||||
_x(2,'<ClCompile Include=\"%s\" />', path.translate(file.relpath))
|
_x(2,'<ClCompile Include=\"%s\" />', path.translate(file.relpath))
|
||||||
|
@ -41,10 +41,10 @@
|
|||||||
|
|
||||||
function io.captured()
|
function io.captured()
|
||||||
if io._captured then
|
if io._captured then
|
||||||
if not io._captured_string then
|
if not io._captured_string and #io._captured > 0 then
|
||||||
io._captured_string = table.concat(io._captured, io.eol)
|
io._captured_string = table.concat(io._captured, io.eol)
|
||||||
end
|
end
|
||||||
return io._captured_string
|
return io._captured_string or ""
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -78,11 +78,21 @@
|
|||||||
---
|
---
|
||||||
-- Write a formatted string to the exported file, after decreasing the
|
-- Write a formatted string to the exported file, after decreasing the
|
||||||
-- indentation level by one.
|
-- indentation level by one.
|
||||||
|
--
|
||||||
|
-- @param i
|
||||||
|
-- If set to a number, the indentation level will be decreased by
|
||||||
|
-- this amount. If nil, the indentation level is decremented and
|
||||||
|
-- no output is written. Otherwise, pass to premake.w() as the
|
||||||
|
-- formatting string, followed by any additional arguments.
|
||||||
---
|
---
|
||||||
|
|
||||||
function premake.pop(...)
|
function premake.pop(i, ...)
|
||||||
premake.indentation = premake.indentation - 1
|
if i == nil or type(i) == "number" then
|
||||||
premake.w(...)
|
premake.indentation = premake.indentation - (i or 1)
|
||||||
|
else
|
||||||
|
premake.indentation = premake.indentation - 1
|
||||||
|
premake.w(i, ...)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -90,11 +100,21 @@
|
|||||||
---
|
---
|
||||||
-- Write a formatted string to the exported file, and increase the
|
-- Write a formatted string to the exported file, and increase the
|
||||||
-- indentation level by one.
|
-- indentation level by one.
|
||||||
|
--
|
||||||
|
-- @param i
|
||||||
|
-- If set to a number, the indentation level will be increased by
|
||||||
|
-- this amount. If nil, the indentation level is incremented and
|
||||||
|
-- no output is written. Otherwise, pass to premake.w() as the
|
||||||
|
-- formatting string, followed by any additional arguments.
|
||||||
---
|
---
|
||||||
|
|
||||||
function premake.push(...)
|
function premake.push(i, ...)
|
||||||
premake.w(...)
|
if i == nil or type(i) == "number" then
|
||||||
premake.indentation = premake.indentation + 1
|
premake.indentation = premake.indentation + (i or 1)
|
||||||
|
else
|
||||||
|
premake.w(i, ...)
|
||||||
|
premake.indentation = premake.indentation + 1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -264,3 +284,18 @@
|
|||||||
_p('')
|
_p('')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
-- Write a formatted string to the exported file, after passing all
|
||||||
|
-- arguments (except for the first, which is the formatting string)
|
||||||
|
-- through premake.esc().
|
||||||
|
---
|
||||||
|
|
||||||
|
function premake.x(msg, ...)
|
||||||
|
for i = 1, #arg do
|
||||||
|
arg[i] = premake.esc(arg[i])
|
||||||
|
end
|
||||||
|
premake.w(msg, unpack(arg))
|
||||||
|
end
|
||||||
|
@ -44,12 +44,12 @@
|
|||||||
links { "System.dll", "System.Data.dll" }
|
links { "System.dll", "System.Data.dll" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<AssemblyReference
|
<AssemblyReference
|
||||||
RelativePath="System.dll"
|
RelativePath="System.dll"
|
||||||
/>
|
/>
|
||||||
<AssemblyReference
|
<AssemblyReference
|
||||||
RelativePath="System.Data.dll"
|
RelativePath="System.Data.dll"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -62,9 +62,9 @@
|
|||||||
links { "m", "System.dll" }
|
links { "m", "System.dll" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<AssemblyReference
|
<AssemblyReference
|
||||||
RelativePath="System.dll"
|
RelativePath="System.dll"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -77,8 +77,8 @@
|
|||||||
links { "../nunit.framework.dll" }
|
links { "../nunit.framework.dll" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<AssemblyReference
|
<AssemblyReference
|
||||||
RelativePath="..\nunit.framework.dll"
|
RelativePath="..\nunit.framework.dll"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
@ -32,9 +32,9 @@
|
|||||||
function suite.noCommandLine_onNoBuildSteps()
|
function suite.noCommandLine_onNoBuildSteps()
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCPreBuildEventTool"
|
Name="VCPreBuildEventTool"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -47,10 +47,10 @@
|
|||||||
prebuildcommands { "command_1", "command_2" }
|
prebuildcommands { "command_1", "command_2" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCPreBuildEventTool"
|
Name="VCPreBuildEventTool"
|
||||||
CommandLine="command_1
command_2"
|
CommandLine="command_1
command_2"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -65,10 +65,10 @@
|
|||||||
prebuildmessage "Pre-building..."
|
prebuildmessage "Pre-building..."
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCPreBuildEventTool"
|
Name="VCPreBuildEventTool"
|
||||||
Description="Pre-building..."
|
Description="Pre-building..."
|
||||||
CommandLine="command1"
|
CommandLine="command1"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
@ -32,17 +32,17 @@
|
|||||||
function suite.looksGood_onDefaultSettings()
|
function suite.looksGood_onDefaultSettings()
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
DebugInformationFormat="0"
|
DebugInformationFormat="0"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -56,10 +56,10 @@
|
|||||||
includedirs { "include/lua", "include/zlib" }
|
includedirs { "include/lua", "include/zlib" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
AdditionalIncludeDirectories="include\lua;include\zlib"
|
AdditionalIncludeDirectories="include\lua;include\zlib"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -73,18 +73,18 @@
|
|||||||
flags "Symbols"
|
flags "Symbols"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
MinimalRebuild="true"
|
MinimalRebuild="true"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="3"
|
RuntimeLibrary="3"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
DebugInformationFormat="4"
|
DebugInformationFormat="4"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -99,17 +99,17 @@
|
|||||||
optimize "On"
|
optimize "On"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="3"
|
Optimization="3"
|
||||||
StringPooling="true"
|
StringPooling="true"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
DebugInformationFormat="3"
|
DebugInformationFormat="3"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -123,17 +123,17 @@
|
|||||||
debugformat "C7"
|
debugformat "C7"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="3"
|
RuntimeLibrary="3"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
DebugInformationFormat="1"
|
DebugInformationFormat="1"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -151,18 +151,18 @@
|
|||||||
pchsource "source/common.cpp"
|
pchsource "source/common.cpp"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="2"
|
UsePrecompiledHeader="2"
|
||||||
PrecompiledHeaderThrough="include/common.h"
|
PrecompiledHeaderThrough="include/common.h"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
DebugInformationFormat="0"
|
DebugInformationFormat="0"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -175,18 +175,18 @@
|
|||||||
floatingpoint "Fast"
|
floatingpoint "Fast"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
FloatingPointModel="2"
|
FloatingPointModel="2"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
DebugInformationFormat="0"
|
DebugInformationFormat="0"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -194,18 +194,18 @@
|
|||||||
floatingpoint "Strict"
|
floatingpoint "Strict"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
FloatingPointModel="1"
|
FloatingPointModel="1"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
DebugInformationFormat="0"
|
DebugInformationFormat="0"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -218,17 +218,17 @@
|
|||||||
targetname "foob"
|
targetname "foob"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\foob.pdb"
|
ProgramDataBaseFileName="$(OutDir)\foob.pdb"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
DebugInformationFormat="0"
|
DebugInformationFormat="0"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -241,17 +241,17 @@
|
|||||||
flags { "Symbols", "NoMinimalRebuild" }
|
flags { "Symbols", "NoMinimalRebuild" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="3"
|
RuntimeLibrary="3"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
DebugInformationFormat="4"
|
DebugInformationFormat="4"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -263,18 +263,18 @@
|
|||||||
flags { "NoBufferSecurityCheck" }
|
flags { "NoBufferSecurityCheck" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
BufferSecurityCheck="false"
|
BufferSecurityCheck="false"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
DebugInformationFormat="0"
|
DebugInformationFormat="0"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -286,18 +286,18 @@
|
|||||||
language "C"
|
language "C"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
DebugInformationFormat="0"
|
DebugInformationFormat="0"
|
||||||
CompileAs="1"
|
CompileAs="1"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -310,18 +310,18 @@
|
|||||||
flags { "Symbols" }
|
flags { "Symbols" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
MinimalRebuild="true"
|
MinimalRebuild="true"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="3"
|
RuntimeLibrary="3"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
DebugInformationFormat="4"
|
DebugInformationFormat="4"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -334,17 +334,17 @@
|
|||||||
warnings "Extra"
|
warnings "Extra"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="4"
|
WarningLevel="4"
|
||||||
DebugInformationFormat="0"
|
DebugInformationFormat="0"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -357,18 +357,18 @@
|
|||||||
flags { "FatalWarnings" }
|
flags { "FatalWarnings" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
WarnAsError="true"
|
WarnAsError="true"
|
||||||
DebugInformationFormat="0"
|
DebugInformationFormat="0"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -382,17 +382,17 @@
|
|||||||
warnings "Off"
|
warnings "Off"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="0"
|
WarningLevel="0"
|
||||||
DebugInformationFormat="0"
|
DebugInformationFormat="0"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -405,18 +405,18 @@
|
|||||||
_ACTION = "vs2005"
|
_ACTION = "vs2005"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
Detect64BitPortabilityProblems="true"
|
Detect64BitPortabilityProblems="true"
|
||||||
DebugInformationFormat="0"
|
DebugInformationFormat="0"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -430,17 +430,17 @@
|
|||||||
warnings "Off"
|
warnings "Off"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="0"
|
WarningLevel="0"
|
||||||
DebugInformationFormat="0"
|
DebugInformationFormat="0"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -453,17 +453,17 @@
|
|||||||
system "Xbox360"
|
system "Xbox360"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLX360CompilerTool"
|
Name="VCCLX360CompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
DebugInformationFormat="0"
|
DebugInformationFormat="0"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -476,17 +476,17 @@
|
|||||||
forceincludes { "stdafx.h", "include/sys.h" }
|
forceincludes { "stdafx.h", "include/sys.h" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
DebugInformationFormat="0"
|
DebugInformationFormat="0"
|
||||||
ForcedIncludeFiles="stdafx.h;include\sys.h"
|
ForcedIncludeFiles="stdafx.h;include\sys.h"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -494,17 +494,17 @@
|
|||||||
forceusings { "stdafx.h", "include/sys.h" }
|
forceusings { "stdafx.h", "include/sys.h" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
DebugInformationFormat="0"
|
DebugInformationFormat="0"
|
||||||
ForcedUsingFiles="stdafx.h;include\sys.h"
|
ForcedUsingFiles="stdafx.h;include\sys.h"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -517,10 +517,10 @@
|
|||||||
flags { "NoRuntimeChecks" }
|
flags { "NoRuntimeChecks" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -534,11 +534,11 @@
|
|||||||
flags { "MultiProcessorCompile" }
|
flags { "MultiProcessorCompile" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
AdditionalOptions="/MP"
|
AdditionalOptions="/MP"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -553,12 +553,12 @@
|
|||||||
flags { "Symbols", "ReleaseRuntime" }
|
flags { "Symbols", "ReleaseRuntime" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
MinimalRebuild="true"
|
MinimalRebuild="true"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -566,12 +566,12 @@
|
|||||||
flags { "Symbols", "ReleaseRuntime", "StaticRuntime" }
|
flags { "Symbols", "ReleaseRuntime", "StaticRuntime" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
MinimalRebuild="true"
|
MinimalRebuild="true"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="0"
|
RuntimeLibrary="0"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -583,10 +583,10 @@
|
|||||||
flags { "LinkTimeOptimization" }
|
flags { "LinkTimeOptimization" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
WholeProgramOptimization="true"
|
WholeProgramOptimization="true"
|
||||||
]]
|
]]
|
||||||
|
|
||||||
end
|
end
|
||||||
@ -600,10 +600,10 @@
|
|||||||
optimize "On"
|
optimize "On"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="3"
|
Optimization="3"
|
||||||
StringPooling="true"
|
StringPooling="true"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -611,10 +611,10 @@
|
|||||||
optimize "Size"
|
optimize "Size"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="1"
|
Optimization="1"
|
||||||
StringPooling="true"
|
StringPooling="true"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -622,10 +622,10 @@
|
|||||||
optimize "Speed"
|
optimize "Speed"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="2"
|
Optimization="2"
|
||||||
StringPooling="true"
|
StringPooling="true"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -633,10 +633,10 @@
|
|||||||
optimize "Full"
|
optimize "Full"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="3"
|
Optimization="3"
|
||||||
StringPooling="true"
|
StringPooling="true"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -644,10 +644,10 @@
|
|||||||
optimize "Off"
|
optimize "Off"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -655,10 +655,10 @@
|
|||||||
optimize "Debug"
|
optimize "Debug"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -671,16 +671,16 @@
|
|||||||
flags { "OmitDefaultLibrary" }
|
flags { "OmitDefaultLibrary" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
DebugInformationFormat="0"
|
DebugInformationFormat="0"
|
||||||
OmitDefaultLibName="true"
|
OmitDefaultLibName="true"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
@ -34,13 +34,13 @@
|
|||||||
function suite.defaultSettings()
|
function suite.defaultSettings()
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Configuration
|
<Configuration
|
||||||
Name="Debug|Win32"
|
Name="Debug|Win32"
|
||||||
OutputDirectory="."
|
OutputDirectory="."
|
||||||
IntermediateDirectory="obj\Debug"
|
IntermediateDirectory="obj\Debug"
|
||||||
ConfigurationType="1"
|
ConfigurationType="1"
|
||||||
CharacterSet="2"
|
CharacterSet="2"
|
||||||
>
|
>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -54,8 +54,8 @@
|
|||||||
platforms { "x32" }
|
platforms { "x32" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Configuration
|
<Configuration
|
||||||
Name="Debug|Win32"
|
Name="Debug|Win32"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -68,8 +68,8 @@
|
|||||||
platforms { "x64" }
|
platforms { "x64" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Configuration
|
<Configuration
|
||||||
Name="Debug|x64"
|
Name="Debug|x64"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -82,9 +82,9 @@
|
|||||||
targetdir("../bin")
|
targetdir("../bin")
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Configuration
|
<Configuration
|
||||||
Name="Debug|Win32"
|
Name="Debug|Win32"
|
||||||
OutputDirectory="..\bin"
|
OutputDirectory="..\bin"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -98,12 +98,12 @@
|
|||||||
kind "Makefile"
|
kind "Makefile"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Configuration
|
<Configuration
|
||||||
Name="Debug|Win32"
|
Name="Debug|Win32"
|
||||||
OutputDirectory="."
|
OutputDirectory="."
|
||||||
IntermediateDirectory="obj\Debug"
|
IntermediateDirectory="obj\Debug"
|
||||||
ConfigurationType="0"
|
ConfigurationType="0"
|
||||||
>
|
>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -111,11 +111,11 @@
|
|||||||
kind "None"
|
kind "None"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Configuration
|
<Configuration
|
||||||
Name="Debug|Win32"
|
Name="Debug|Win32"
|
||||||
OutputDirectory="."
|
OutputDirectory="."
|
||||||
IntermediateDirectory="obj\Debug"
|
IntermediateDirectory="obj\Debug"
|
||||||
ConfigurationType="0"
|
ConfigurationType="0"
|
||||||
>
|
>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
@ -49,9 +49,9 @@
|
|||||||
function suite.normalLink_onIncludedConfig()
|
function suite.normalLink_onIncludedConfig()
|
||||||
prepare("Zeus")
|
prepare("Zeus")
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
OutputFile="$(OutDir)\MyProject.exe"
|
OutputFile="$(OutDir)\MyProject.exe"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -60,10 +60,10 @@
|
|||||||
system "PS3"
|
system "PS3"
|
||||||
prepare("Zeus")
|
prepare("Zeus")
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalOptions="-s"
|
AdditionalOptions="-s"
|
||||||
OutputFile="$(OutDir)\MyProject.elf"
|
OutputFile="$(OutDir)\MyProject.elf"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -77,10 +77,10 @@
|
|||||||
function suite.explicitLink_onExcludedConfig()
|
function suite.explicitLink_onExcludedConfig()
|
||||||
prepare("Ares")
|
prepare("Ares")
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
LinkLibraryDependencies="false"
|
LinkLibraryDependencies="false"
|
||||||
AdditionalDependencies="MyProject2.lib"
|
AdditionalDependencies="MyProject2.lib"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -89,9 +89,9 @@
|
|||||||
system "PS3"
|
system "PS3"
|
||||||
prepare("Ares")
|
prepare("Ares")
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalOptions="-s"
|
AdditionalOptions="-s"
|
||||||
AdditionalDependencies="libMyProject2.a"
|
AdditionalDependencies="libMyProject2.a"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
@ -33,14 +33,14 @@
|
|||||||
function suite.checkDefaults()
|
function suite.checkDefaults()
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
AdditionalOptions="-Xc+=exceptions -Xc+=rtti"
|
AdditionalOptions="-Xc+=exceptions -Xc+=rtti"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
DebugInformationFormat="0"
|
DebugInformationFormat="0"
|
||||||
CompileAs="0"
|
CompileAs="0"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -53,11 +53,11 @@
|
|||||||
includedirs { "../include", "include" }
|
includedirs { "../include", "include" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
AdditionalOptions="-Xc+=exceptions -Xc+=rtti"
|
AdditionalOptions="-Xc+=exceptions -Xc+=rtti"
|
||||||
AdditionalIncludeDirectories="..\include;include"
|
AdditionalIncludeDirectories="..\include;include"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -70,13 +70,13 @@
|
|||||||
forceincludes { "stdafx.h", "include/sys.h" }
|
forceincludes { "stdafx.h", "include/sys.h" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
AdditionalOptions="-Xc+=exceptions -Xc+=rtti"
|
AdditionalOptions="-Xc+=exceptions -Xc+=rtti"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
DebugInformationFormat="0"
|
DebugInformationFormat="0"
|
||||||
CompileAs="0"
|
CompileAs="0"
|
||||||
ForcedIncludeFiles="stdafx.h;include\sys.h"
|
ForcedIncludeFiles="stdafx.h;include\sys.h"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
@ -36,16 +36,16 @@
|
|||||||
kind "ConsoleApp"
|
kind "ConsoleApp"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalOptions="-s"
|
AdditionalOptions="-s"
|
||||||
OutputFile="$(OutDir)\MyProject.elf"
|
OutputFile="$(OutDir)\MyProject.elf"
|
||||||
LinkIncremental="0"
|
LinkIncremental="0"
|
||||||
GenerateManifest="false"
|
GenerateManifest="false"
|
||||||
ProgramDatabaseFile=""
|
ProgramDatabaseFile=""
|
||||||
RandomizedBaseAddress="1"
|
RandomizedBaseAddress="1"
|
||||||
DataExecutionPrevention="0"
|
DataExecutionPrevention="0"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -58,11 +58,11 @@
|
|||||||
kind "StaticLib"
|
kind "StaticLib"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLibrarianTool"
|
Name="VCLibrarianTool"
|
||||||
AdditionalOptions="-s"
|
AdditionalOptions="-s"
|
||||||
OutputFile="$(OutDir)\libMyProject.a"
|
OutputFile="$(OutDir)\libMyProject.a"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -75,10 +75,10 @@
|
|||||||
links { "fs_stub", "net_stub" }
|
links { "fs_stub", "net_stub" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalOptions="-s"
|
AdditionalOptions="-s"
|
||||||
AdditionalDependencies="-lfs_stub -lnet_stub"
|
AdditionalDependencies="-lfs_stub -lnet_stub"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -96,10 +96,10 @@
|
|||||||
language "C++"
|
language "C++"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalOptions="-s"
|
AdditionalOptions="-s"
|
||||||
OutputFile="$(OutDir)\MyProject.elf"
|
OutputFile="$(OutDir)\MyProject.elf"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -119,9 +119,9 @@
|
|||||||
language "C++"
|
language "C++"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalOptions="-s"
|
AdditionalOptions="-s"
|
||||||
AdditionalDependencies="libMyProject2.a"
|
AdditionalDependencies="libMyProject2.a"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
@ -33,11 +33,11 @@
|
|||||||
files { "hello.cpp" }
|
files { "hello.cpp" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<File
|
<File
|
||||||
RelativePath="hello.cpp"
|
RelativePath="hello.cpp"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -50,19 +50,19 @@
|
|||||||
files { "src/hello.cpp", "so_long.cpp" }
|
files { "src/hello.cpp", "so_long.cpp" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<Filter
|
<Filter
|
||||||
Name="src"
|
Name="src"
|
||||||
>
|
>
|
||||||
<File
|
|
||||||
RelativePath="src\hello.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
<File
|
<File
|
||||||
RelativePath="so_long.cpp"
|
RelativePath="src\hello.cpp"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<File
|
||||||
|
RelativePath="so_long.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -75,23 +75,23 @@
|
|||||||
files { "src/greetings/hello.cpp", "so_long.cpp" }
|
files { "src/greetings/hello.cpp", "so_long.cpp" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
|
<Filter
|
||||||
|
Name="src"
|
||||||
|
>
|
||||||
<Filter
|
<Filter
|
||||||
Name="src"
|
Name="greetings"
|
||||||
>
|
>
|
||||||
<Filter
|
<File
|
||||||
Name="greetings"
|
RelativePath="src\greetings\hello.cpp"
|
||||||
>
|
>
|
||||||
<File
|
</File>
|
||||||
RelativePath="src\greetings\hello.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
</Filter>
|
</Filter>
|
||||||
<File
|
</Filter>
|
||||||
RelativePath="so_long.cpp"
|
<File
|
||||||
>
|
RelativePath="so_long.cpp"
|
||||||
</File>
|
>
|
||||||
|
</File>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -105,15 +105,15 @@
|
|||||||
vpaths { ["Source Files"] = "**.cpp" }
|
vpaths { ["Source Files"] = "**.cpp" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<Filter
|
<Filter
|
||||||
Name="Source Files"
|
Name="Source Files"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath="src\hello.cpp"
|
||||||
>
|
>
|
||||||
<File
|
</File>
|
||||||
RelativePath="src\hello.cpp"
|
</Filter>
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -128,11 +128,11 @@
|
|||||||
files { "hello.lua" }
|
files { "hello.lua" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<File
|
<File
|
||||||
RelativePath="hello.lua"
|
RelativePath="hello.lua"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -147,16 +147,16 @@
|
|||||||
files { "hello.c" }
|
files { "hello.c" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<File
|
<File
|
||||||
RelativePath="hello.c"
|
RelativePath="hello.c"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
<Tool
|
||||||
Name="Debug|Win32"
|
Name="VCCLCompilerTool"
|
||||||
>
|
CompileAs="1"
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
CompileAs="1"
|
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -166,16 +166,16 @@
|
|||||||
files { "hello.cpp" }
|
files { "hello.cpp" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<File
|
<File
|
||||||
RelativePath="hello.cpp"
|
RelativePath="hello.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
<Tool
|
||||||
Name="Debug|Win32"
|
Name="VCCLCompilerTool"
|
||||||
>
|
CompileAs="2"
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
CompileAs="2"
|
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -189,16 +189,16 @@
|
|||||||
pchsource "afxwin.cpp"
|
pchsource "afxwin.cpp"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<File
|
<File
|
||||||
RelativePath="afxwin.cpp"
|
RelativePath="afxwin.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
<Tool
|
||||||
Name="Debug|Win32"
|
Name="VCCLCompilerTool"
|
||||||
>
|
UsePrecompiledHeader="1"
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
UsePrecompiledHeader="1"
|
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -213,19 +213,19 @@
|
|||||||
removefiles { "hello.cpp" }
|
removefiles { "hello.cpp" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<File
|
<File
|
||||||
RelativePath="hello.cpp"
|
RelativePath="hello.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
ExcludedFromBuild="true"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
<Tool
|
||||||
Name="Debug|Win32"
|
Name="VCCLCompilerTool"
|
||||||
ExcludedFromBuild="true"
|
/>
|
||||||
>
|
</FileConfiguration>
|
||||||
<Tool
|
</File>
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -235,27 +235,27 @@
|
|||||||
flags { "ExcludeFromBuild" }
|
flags { "ExcludeFromBuild" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<File
|
<File
|
||||||
RelativePath="hello.cpp"
|
RelativePath="hello.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
ExcludedFromBuild="true"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
<Tool
|
||||||
Name="Debug|Win32"
|
Name="VCCLCompilerTool"
|
||||||
ExcludedFromBuild="true"
|
/>
|
||||||
>
|
</FileConfiguration>
|
||||||
<Tool
|
<FileConfiguration
|
||||||
Name="VCCLCompilerTool"
|
Name="Release|Win32"
|
||||||
/>
|
ExcludedFromBuild="true"
|
||||||
</FileConfiguration>
|
>
|
||||||
<FileConfiguration
|
<Tool
|
||||||
Name="Release|Win32"
|
Name="VCCLCompilerTool"
|
||||||
ExcludedFromBuild="true"
|
/>
|
||||||
>
|
</FileConfiguration>
|
||||||
<Tool
|
</File>
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -275,19 +275,19 @@
|
|||||||
buildoutputs { "$(IntDir)/$(InputName).obj" }
|
buildoutputs { "$(IntDir)/$(InputName).obj" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<File
|
<File
|
||||||
RelativePath="hello.x"
|
RelativePath="hello.x"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
<Tool
|
||||||
Name="Debug|Win32"
|
Name="VCCustomBuildTool"
|
||||||
>
|
CommandLine="cxc -c "$(InputFile)" -o "$(IntDir)/$(InputName).xo"
c2o -c "$(IntDir)/$(InputName).xo" -o "$(IntDir)/$(InputName).obj""
|
||||||
<Tool
|
Outputs="$(IntDir)/$(InputName).obj"
|
||||||
Name="VCCustomBuildTool"
|
/>
|
||||||
CommandLine="cxc -c "$(InputFile)" -o "$(IntDir)/$(InputName).xo"
c2o -c "$(IntDir)/$(InputName).xo" -o "$(IntDir)/$(InputName).obj""
|
</FileConfiguration>
|
||||||
Outputs="$(IntDir)/$(InputName).obj"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -303,19 +303,19 @@
|
|||||||
buildoutputs { "%{cfg.objdir}/%{file.basename}.obj" }
|
buildoutputs { "%{cfg.objdir}/%{file.basename}.obj" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<File
|
<File
|
||||||
RelativePath="hello.x"
|
RelativePath="hello.x"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
<Tool
|
||||||
Name="Debug|Win32"
|
Name="VCCustomBuildTool"
|
||||||
>
|
CommandLine="cxc -c hello.x -o ../tmp/Debug/hello.xo
c2o -c ../tmp/Debug/hello.xo -o ../tmp/Debug/hello.obj"
|
||||||
<Tool
|
Outputs="../tmp/Debug/hello.obj"
|
||||||
Name="VCCustomBuildTool"
|
/>
|
||||||
CommandLine="cxc -c hello.x -o ../tmp/Debug/hello.xo
c2o -c ../tmp/Debug/hello.xo -o ../tmp/Debug/hello.obj"
|
</FileConfiguration>
|
||||||
Outputs="../tmp/Debug/hello.obj"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -329,35 +329,35 @@
|
|||||||
files { "hello.cpp", "greetings/hello.cpp" }
|
files { "hello.cpp", "greetings/hello.cpp" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<Filter
|
<Filter
|
||||||
Name="greetings"
|
Name="greetings"
|
||||||
>
|
>
|
||||||
<File
|
|
||||||
RelativePath="greetings\hello.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
<File
|
<File
|
||||||
RelativePath="hello.cpp"
|
RelativePath="greetings\hello.cpp"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)\hello1.obj"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ObjectFile="$(IntDir)\hello1.obj"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<File
|
||||||
|
RelativePath="hello.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\hello1.obj"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\hello1.obj"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -373,16 +373,16 @@
|
|||||||
|
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<File
|
<File
|
||||||
RelativePath="hello.cpp"
|
RelativePath="hello.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
<Tool
|
||||||
Name="Debug|Win32"
|
Name="VCCLCompilerTool"
|
||||||
>
|
ForcedIncludeFiles="..\include\force1.h;..\include\force2.h"
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
ForcedIncludeFiles="..\include\force1.h;..\include\force2.h"
|
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -398,16 +398,16 @@
|
|||||||
|
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<File
|
<File
|
||||||
RelativePath="hello.cpp"
|
RelativePath="hello.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
<Tool
|
||||||
Name="Debug|Win32"
|
Name="VCCLCompilerTool"
|
||||||
>
|
AdditionalOptions="/Xc"
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
AdditionalOptions="/Xc"
|
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -422,16 +422,16 @@
|
|||||||
optimize "On"
|
optimize "On"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<File
|
<File
|
||||||
RelativePath="hello.cpp"
|
RelativePath="hello.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
<Tool
|
||||||
Name="Debug|Win32"
|
Name="VCCLCompilerTool"
|
||||||
>
|
Optimization="3"
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="3"
|
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -442,16 +442,16 @@
|
|||||||
optimize "Size"
|
optimize "Size"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<File
|
<File
|
||||||
RelativePath="hello.cpp"
|
RelativePath="hello.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
<Tool
|
||||||
Name="Debug|Win32"
|
Name="VCCLCompilerTool"
|
||||||
>
|
Optimization="1"
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="1"
|
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -461,16 +461,16 @@
|
|||||||
optimize "Speed"
|
optimize "Speed"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<File
|
<File
|
||||||
RelativePath="hello.cpp"
|
RelativePath="hello.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
<Tool
|
||||||
Name="Debug|Win32"
|
Name="VCCLCompilerTool"
|
||||||
>
|
Optimization="2"
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="2"
|
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -480,16 +480,16 @@
|
|||||||
optimize "Full"
|
optimize "Full"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<File
|
<File
|
||||||
RelativePath="hello.cpp"
|
RelativePath="hello.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
<Tool
|
||||||
Name="Debug|Win32"
|
Name="VCCLCompilerTool"
|
||||||
>
|
Optimization="3"
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="3"
|
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -499,16 +499,16 @@
|
|||||||
optimize "Off"
|
optimize "Off"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<File
|
<File
|
||||||
RelativePath="hello.cpp"
|
RelativePath="hello.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
<Tool
|
||||||
Name="Debug|Win32"
|
Name="VCCLCompilerTool"
|
||||||
>
|
Optimization="0"
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -518,15 +518,15 @@
|
|||||||
optimize "Debug"
|
optimize "Debug"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Files>
|
<Files>
|
||||||
<File
|
<File
|
||||||
RelativePath="hello.cpp"
|
RelativePath="hello.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
<Tool
|
||||||
Name="Debug|Win32"
|
Name="VCCLCompilerTool"
|
||||||
>
|
Optimization="0"
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
@ -34,15 +34,15 @@
|
|||||||
kind "ConsoleApp"
|
kind "ConsoleApp"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
OutputFile="$(OutDir)\MyProject.exe"
|
OutputFile="$(OutDir)\MyProject.exe"
|
||||||
LinkIncremental="2"
|
LinkIncremental="2"
|
||||||
GenerateDebugInformation="false"
|
GenerateDebugInformation="false"
|
||||||
SubSystem="1"
|
SubSystem="1"
|
||||||
EntryPointSymbol="mainCRTStartup"
|
EntryPointSymbol="mainCRTStartup"
|
||||||
TargetMachine="1"
|
TargetMachine="1"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -55,15 +55,15 @@
|
|||||||
kind "WindowedApp"
|
kind "WindowedApp"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
OutputFile="$(OutDir)\MyProject.exe"
|
OutputFile="$(OutDir)\MyProject.exe"
|
||||||
LinkIncremental="2"
|
LinkIncremental="2"
|
||||||
GenerateDebugInformation="false"
|
GenerateDebugInformation="false"
|
||||||
SubSystem="2"
|
SubSystem="2"
|
||||||
EntryPointSymbol="mainCRTStartup"
|
EntryPointSymbol="mainCRTStartup"
|
||||||
TargetMachine="1"
|
TargetMachine="1"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -76,15 +76,15 @@
|
|||||||
kind "SharedLib"
|
kind "SharedLib"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
OutputFile="$(OutDir)\MyProject.dll"
|
OutputFile="$(OutDir)\MyProject.dll"
|
||||||
LinkIncremental="2"
|
LinkIncremental="2"
|
||||||
GenerateDebugInformation="false"
|
GenerateDebugInformation="false"
|
||||||
SubSystem="2"
|
SubSystem="2"
|
||||||
ImportLibrary="MyProject.lib"
|
ImportLibrary="MyProject.lib"
|
||||||
TargetMachine="1"
|
TargetMachine="1"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -97,10 +97,10 @@
|
|||||||
kind "StaticLib"
|
kind "StaticLib"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLibrarianTool"
|
Name="VCLibrarianTool"
|
||||||
OutputFile="$(OutDir)\MyProject.lib"
|
OutputFile="$(OutDir)\MyProject.lib"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -113,12 +113,12 @@
|
|||||||
flags "Symbols"
|
flags "Symbols"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
OutputFile="$(OutDir)\MyProject.exe"
|
OutputFile="$(OutDir)\MyProject.exe"
|
||||||
LinkIncremental="2"
|
LinkIncremental="2"
|
||||||
GenerateDebugInformation="true"
|
GenerateDebugInformation="true"
|
||||||
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -132,15 +132,15 @@
|
|||||||
debugformat "C7"
|
debugformat "C7"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
OutputFile="$(OutDir)\MyProject.exe"
|
OutputFile="$(OutDir)\MyProject.exe"
|
||||||
LinkIncremental="2"
|
LinkIncremental="2"
|
||||||
GenerateDebugInformation="true"
|
GenerateDebugInformation="true"
|
||||||
SubSystem="1"
|
SubSystem="1"
|
||||||
EntryPointSymbol="mainCRTStartup"
|
EntryPointSymbol="mainCRTStartup"
|
||||||
TargetMachine="1"
|
TargetMachine="1"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -153,11 +153,11 @@
|
|||||||
files { "MyProject.def" }
|
files { "MyProject.def" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
OutputFile="$(OutDir)\MyProject.exe"
|
OutputFile="$(OutDir)\MyProject.exe"
|
||||||
LinkIncremental="2"
|
LinkIncremental="2"
|
||||||
ModuleDefinitionFile="MyProject.def"
|
ModuleDefinitionFile="MyProject.def"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -170,10 +170,10 @@
|
|||||||
flags { "NoIncrementalLink" }
|
flags { "NoIncrementalLink" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
OutputFile="$(OutDir)\MyProject.exe"
|
OutputFile="$(OutDir)\MyProject.exe"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -187,11 +187,11 @@
|
|||||||
linkoptions { "/ltcg", "/lZ" }
|
linkoptions { "/ltcg", "/lZ" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLibrarianTool"
|
Name="VCLibrarianTool"
|
||||||
AdditionalOptions="/ltcg /lZ"
|
AdditionalOptions="/ltcg /lZ"
|
||||||
OutputFile="$(OutDir)\MyProject.lib"
|
OutputFile="$(OutDir)\MyProject.lib"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -204,9 +204,9 @@
|
|||||||
links { "GL", "GLU" }
|
links { "GL", "GLU" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="GL.lib GLU.lib"
|
AdditionalDependencies="GL.lib GLU.lib"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -223,9 +223,9 @@
|
|||||||
language "C++"
|
language "C++"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
OutputFile="$(OutDir)\MyProject.exe"
|
OutputFile="$(OutDir)\MyProject.exe"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -243,10 +243,10 @@
|
|||||||
language "C++"
|
language "C++"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
LinkLibraryDependencies="false"
|
LinkLibraryDependencies="false"
|
||||||
AdditionalDependencies="MyProject2.lib"
|
AdditionalDependencies="MyProject2.lib"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -259,9 +259,9 @@
|
|||||||
links { "My Lib" }
|
links { "My Lib" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies=""My Lib.lib""
|
AdditionalDependencies=""My Lib.lib""
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -274,8 +274,8 @@
|
|||||||
links { "kernel32", "System.dll", "System.Data.dll" }
|
links { "kernel32", "System.dll", "System.Data.dll" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="kernel32.lib"
|
AdditionalDependencies="kernel32.lib"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
@ -33,9 +33,9 @@
|
|||||||
files { "hello.c" }
|
files { "hello.c" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCManifestTool"
|
Name="VCManifestTool"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -48,9 +48,9 @@
|
|||||||
files { "hello.c", "project1.manifest", "goodbye.c", "project2.manifest" }
|
files { "hello.c", "project1.manifest", "goodbye.c", "project2.manifest" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCManifestTool"
|
Name="VCManifestTool"
|
||||||
AdditionalManifestFiles="project1.manifest;project2.manifest"
|
AdditionalManifestFiles="project1.manifest;project2.manifest"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
@ -33,19 +33,19 @@
|
|||||||
function suite.onDefaultSettings()
|
function suite.onDefaultSettings()
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCNMakeTool"
|
Name="VCNMakeTool"
|
||||||
BuildCommandLine=""
|
BuildCommandLine=""
|
||||||
ReBuildCommandLine=""
|
ReBuildCommandLine=""
|
||||||
CleanCommandLine=""
|
CleanCommandLine=""
|
||||||
Output="$(OutDir)MyProject"
|
Output="$(OutDir)MyProject"
|
||||||
PreprocessorDefinitions=""
|
PreprocessorDefinitions=""
|
||||||
IncludeSearchPath=""
|
IncludeSearchPath=""
|
||||||
ForcedIncludes=""
|
ForcedIncludes=""
|
||||||
AssemblySearchPath=""
|
AssemblySearchPath=""
|
||||||
ForcedUsingAssemblies=""
|
ForcedUsingAssemblies=""
|
||||||
CompileAsManaged=""
|
CompileAsManaged=""
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -58,12 +58,12 @@
|
|||||||
targetextension ".exe"
|
targetextension ".exe"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCNMakeTool"
|
Name="VCNMakeTool"
|
||||||
BuildCommandLine=""
|
BuildCommandLine=""
|
||||||
ReBuildCommandLine=""
|
ReBuildCommandLine=""
|
||||||
CleanCommandLine=""
|
CleanCommandLine=""
|
||||||
Output="$(OutDir)MyProject.exe"
|
Output="$(OutDir)MyProject.exe"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -76,11 +76,11 @@
|
|||||||
buildcommands { "command 1" }
|
buildcommands { "command 1" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCNMakeTool"
|
Name="VCNMakeTool"
|
||||||
BuildCommandLine="command 1"
|
BuildCommandLine="command 1"
|
||||||
ReBuildCommandLine=""
|
ReBuildCommandLine=""
|
||||||
CleanCommandLine=""
|
CleanCommandLine=""
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -88,11 +88,11 @@
|
|||||||
buildcommands { "command 1", "command 2" }
|
buildcommands { "command 1", "command 2" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCNMakeTool"
|
Name="VCNMakeTool"
|
||||||
BuildCommandLine="command 1
command 2"
|
BuildCommandLine="command 1
command 2"
|
||||||
ReBuildCommandLine=""
|
ReBuildCommandLine=""
|
||||||
CleanCommandLine=""
|
CleanCommandLine=""
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -100,11 +100,11 @@
|
|||||||
rebuildcommands { "command 1" }
|
rebuildcommands { "command 1" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCNMakeTool"
|
Name="VCNMakeTool"
|
||||||
BuildCommandLine=""
|
BuildCommandLine=""
|
||||||
ReBuildCommandLine="command 1"
|
ReBuildCommandLine="command 1"
|
||||||
CleanCommandLine=""
|
CleanCommandLine=""
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -112,10 +112,10 @@
|
|||||||
cleancommands { "command 1" }
|
cleancommands { "command 1" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCNMakeTool"
|
Name="VCNMakeTool"
|
||||||
BuildCommandLine=""
|
BuildCommandLine=""
|
||||||
ReBuildCommandLine=""
|
ReBuildCommandLine=""
|
||||||
CleanCommandLine="command 1"
|
CleanCommandLine="command 1"
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
@ -10,16 +10,16 @@
|
|||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Setup
|
-- Setup
|
||||||
--
|
--
|
||||||
|
|
||||||
local sln, prj
|
local sln, prj
|
||||||
|
|
||||||
function suite.setup()
|
function suite.setup()
|
||||||
_ACTION = "vs2008"
|
_ACTION = "vs2008"
|
||||||
sln = test.createsolution()
|
sln = test.createsolution()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function prepare()
|
local function prepare()
|
||||||
prj = premake.solution.getproject(sln, 1)
|
prj = premake.solution.getproject(sln, 1)
|
||||||
vc200x.platforms(prj)
|
vc200x.platforms(prj)
|
||||||
@ -33,11 +33,11 @@
|
|||||||
function suite.win32Listed_onNoPlatforms()
|
function suite.win32Listed_onNoPlatforms()
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Platforms>
|
<Platforms>
|
||||||
<Platform
|
<Platform
|
||||||
Name="Win32"
|
Name="Win32"
|
||||||
/>
|
/>
|
||||||
</Platforms>
|
</Platforms>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -51,11 +51,11 @@
|
|||||||
platforms { "Static", "Dynamic" }
|
platforms { "Static", "Dynamic" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Platforms>
|
<Platforms>
|
||||||
<Platform
|
<Platform
|
||||||
Name="Win32"
|
Name="Win32"
|
||||||
/>
|
/>
|
||||||
</Platforms>
|
</Platforms>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -68,14 +68,14 @@
|
|||||||
platforms { "x32", "x64" }
|
platforms { "x32", "x64" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Platforms>
|
<Platforms>
|
||||||
<Platform
|
<Platform
|
||||||
Name="Win32"
|
Name="Win32"
|
||||||
/>
|
/>
|
||||||
<Platform
|
<Platform
|
||||||
Name="x64"
|
Name="x64"
|
||||||
/>
|
/>
|
||||||
</Platforms>
|
</Platforms>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -88,12 +88,12 @@
|
|||||||
platforms { "PS3" }
|
platforms { "PS3" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Platforms>
|
<Platforms>
|
||||||
<Platform
|
<Platform
|
||||||
Name="Win32"
|
Name="Win32"
|
||||||
/>
|
/>
|
||||||
</Platforms>
|
</Platforms>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -105,10 +105,10 @@
|
|||||||
platforms { "Xbox360" }
|
platforms { "Xbox360" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Platforms>
|
<Platforms>
|
||||||
<Platform
|
<Platform
|
||||||
Name="Xbox 360"
|
Name="Xbox 360"
|
||||||
/>
|
/>
|
||||||
</Platforms>
|
</Platforms>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
@ -48,10 +48,10 @@
|
|||||||
links { "MyProject" }
|
links { "MyProject" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<ProjectReference
|
<ProjectReference
|
||||||
ReferencedProjectIdentifier="{00112233-4455-6677-8888-99AABBCCDDEE}"
|
ReferencedProjectIdentifier="{00112233-4455-6677-8888-99AABBCCDDEE}"
|
||||||
RelativePathToProject=".\MyProject.vcproj"
|
RelativePathToProject=".\MyProject.vcproj"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -69,10 +69,10 @@
|
|||||||
location "build/MyProject"
|
location "build/MyProject"
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<ProjectReference
|
<ProjectReference
|
||||||
ReferencedProjectIdentifier="{00112233-4455-6677-8888-99AABBCCDDEE}"
|
ReferencedProjectIdentifier="{00112233-4455-6677-8888-99AABBCCDDEE}"
|
||||||
RelativePathToProject=".\build\MyProject\MyProject.vcproj"
|
RelativePathToProject=".\build\MyProject\MyProject.vcproj"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -32,9 +32,9 @@
|
|||||||
function suite.looksGood_onDefaultSettings()
|
function suite.looksGood_onDefaultSettings()
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCResourceCompilerTool"
|
Name="VCResourceCompilerTool"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -48,9 +48,9 @@
|
|||||||
resincludedirs { "../res/include" }
|
resincludedirs { "../res/include" }
|
||||||
prepare()
|
prepare()
|
||||||
test.capture [[
|
test.capture [[
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCResourceCompilerTool"
|
Name="VCResourceCompilerTool"
|
||||||
AdditionalIncludeDirectories="..\include;..\res\include"
|
AdditionalIncludeDirectories="..\include;..\res\include"
|
||||||
/>
|
/>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
@ -424,4 +424,4 @@
|
|||||||
<TreatLibWarningAsErrors>true</TreatLibWarningAsErrors>
|
<TreatLibWarningAsErrors>true</TreatLibWarningAsErrors>
|
||||||
</Lib>
|
</Lib>
|
||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user