Add per-file defines for VC 200x
This commit is contained in:
parent
984b14c621
commit
f44ac84545
@ -870,6 +870,7 @@
|
||||
_p("%s", compilerAttribs)
|
||||
end
|
||||
p.pop('/>')
|
||||
|
||||
p.pop('</FileConfiguration>')
|
||||
end
|
||||
end
|
||||
@ -909,6 +910,7 @@
|
||||
m.customBuildTool(filecfg)
|
||||
m.objectFile(filecfg)
|
||||
m.optimization(filecfg)
|
||||
m.preprocessorDefinitions(filecfg)
|
||||
m.usePrecompiledHeader(filecfg)
|
||||
m.VCCLCompilerTool_fileConfig_additionalOptions(filecfg)
|
||||
m.forcedIncludeFiles(filecfg)
|
||||
|
@ -530,3 +530,28 @@
|
||||
Optimization="0"
|
||||
]]
|
||||
end
|
||||
|
||||
|
||||
|
||||
--
|
||||
-- Check handling of per-file defines.
|
||||
--
|
||||
|
||||
function suite.defines()
|
||||
files { "hello.cpp" }
|
||||
configuration "hello.cpp"
|
||||
defines { "HELLO" }
|
||||
prepare()
|
||||
test.capture [[
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="hello.cpp"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="HELLO"
|
||||
]]
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user