Merge pull request #1555 from nickclark2016/issues/1443
Added API to disable fast up to date checks
This commit is contained in:
commit
fae76cb027
@ -398,3 +398,16 @@ end
|
||||
]]
|
||||
end
|
||||
|
||||
|
||||
function suite.disableFastUpToDateCheck()
|
||||
fastuptodate "Off"
|
||||
prepare()
|
||||
test.capture [[
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{42B5DBC6-AE1F-903D-F75D-41E363076E92}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>MyProject</RootNamespace>
|
||||
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
|
||||
</PropertyGroup>
|
||||
]]
|
||||
end
|
||||
|
@ -133,6 +133,7 @@
|
||||
m.preferredToolArchitecture,
|
||||
m.latestTargetPlatformVersion,
|
||||
m.windowsTargetPlatformVersion,
|
||||
m.fastUpToDateCheck,
|
||||
}
|
||||
end
|
||||
|
||||
@ -2688,6 +2689,13 @@
|
||||
end
|
||||
|
||||
|
||||
function m.fastUpToDateCheck(prj)
|
||||
if prj.fastuptodate ~= nil then
|
||||
m.element("DisableFastUpToDateCheck", nil, iif(prj.fastuptodate, "false", "true"))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function m.preferredToolArchitecture(prj)
|
||||
if _ACTION >= "vs2013" then
|
||||
if prj.preferredtoolarchitecture == p.X86_64 then
|
||||
|
@ -430,6 +430,12 @@
|
||||
kind = "string",
|
||||
}
|
||||
|
||||
api.register {
|
||||
name = "fastuptodate",
|
||||
scope = "project",
|
||||
kind = "boolean",
|
||||
}
|
||||
|
||||
api.register {
|
||||
name = "fatalwarnings",
|
||||
scope = "config",
|
||||
|
Reference in New Issue
Block a user