Adding support for NotSet characterset in VS2010+ (#79)
This commit is contained in:
parent
6437cfddd9
commit
cc107a4da4
@ -144,6 +144,7 @@
|
||||
scope = "config",
|
||||
kind = "string",
|
||||
allowed = {
|
||||
"NotSet",
|
||||
"Default",
|
||||
"MBCS",
|
||||
"Unicode",
|
||||
|
@ -1116,10 +1116,10 @@
|
||||
end
|
||||
else
|
||||
if prjcfg.flags.NoRuntimeChecks or (config.isOptimizedBuild(prjcfg) and runtime:endswith("Debug")) then
|
||||
m.element("BasicRuntimeChecks", nil, "Default")
|
||||
end
|
||||
m.element("BasicRuntimeChecks", nil, "Default")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function m.buildAdditionalInputs(fcfg, condition)
|
||||
@ -1168,7 +1168,13 @@
|
||||
|
||||
function m.characterSet(cfg)
|
||||
if not vstudio.isMakefile(cfg) then
|
||||
m.element("CharacterSet", nil, iif(cfg.characterset == p.MBCS, "MultiByte", "Unicode"))
|
||||
local charactersets = {
|
||||
NotSet = "NotSet",
|
||||
MBCS = "MultiByte",
|
||||
Unicode = "Unicode",
|
||||
Default = "Unicode"
|
||||
}
|
||||
m.element("CharacterSet", nil, charactersets[cfg.characterset])
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -138,6 +138,7 @@
|
||||
Default = { '/D"_UNICODE"', '/D"UNICODE"' },
|
||||
MBCS = '/D"_MBCS"',
|
||||
Unicode = { '/D"_UNICODE"', '/D"UNICODE"' },
|
||||
NotSet = { },
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user