add ATL support
This commit is contained in:
parent
0af9660606
commit
cb3671fdc8
@ -285,6 +285,17 @@
|
||||
},
|
||||
}
|
||||
|
||||
api.register {
|
||||
name = "ATL",
|
||||
scope = "config",
|
||||
kind = "string",
|
||||
allowed = {
|
||||
"Off",
|
||||
"Dynamic",
|
||||
"Static",
|
||||
},
|
||||
}
|
||||
|
||||
api.register {
|
||||
name = "floatingpoint",
|
||||
scope = "config",
|
||||
|
@ -146,7 +146,7 @@
|
||||
m.configurationType,
|
||||
m.useOfMFC,
|
||||
m.characterSet,
|
||||
m.managedExtensions
|
||||
m.managedExtensions,
|
||||
}
|
||||
end
|
||||
end
|
||||
@ -1551,7 +1551,6 @@
|
||||
end
|
||||
|
||||
|
||||
|
||||
function m.usePrecompiledHeader(cfg)
|
||||
local prj, file = config.normalize(cfg)
|
||||
if file then
|
||||
|
@ -177,6 +177,7 @@
|
||||
"configurationType",
|
||||
"useDebugLibraries",
|
||||
"useOfMfc",
|
||||
"useOfAtl",
|
||||
"clrSupport",
|
||||
"characterSet",
|
||||
"wholeProgramOptimization",
|
||||
@ -1248,6 +1249,12 @@
|
||||
end
|
||||
end
|
||||
|
||||
function vc2010.useOfAtl(cfg)
|
||||
if cfg.ATL then
|
||||
_p(2,'<UseOfATL>%s</UseOfATL>', cfg.ATL or "nil")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function vc2010.warningLevel(cfg)
|
||||
local map = { Off = "TurnOffAllWarnings", Extra = "Level4" }
|
||||
|
@ -151,6 +151,31 @@
|
||||
]]
|
||||
end
|
||||
|
||||
--
|
||||
-- Check the support for building with ATL.
|
||||
--
|
||||
|
||||
function suite.useOfAtl_onDynamicRuntime()
|
||||
ATL "Dynamic"
|
||||
prepare()
|
||||
test.capture [[
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<UseOfATL>Dynamic</UseOfATL>
|
||||
]]
|
||||
end
|
||||
|
||||
function suite.useOfAtl_onStaticRuntime()
|
||||
ATL "Static"
|
||||
prepare()
|
||||
test.capture [[
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<UseOfATL>Static</UseOfATL>
|
||||
]]
|
||||
end
|
||||
|
||||
--
|
||||
-- Check handling of the ReleaseRuntime flag; should override the
|
||||
|
Loading…
Reference in New Issue
Block a user