- Update premake build script for VS2017+ build support.

- Update premake (for VS2019 support).
- Update Xenia build script to detect VS2017+ version.
- Update Xenia premake scripts due to updated premake.
- Fix cc override in Xenia build script.
This commit is contained in:
gibbed
2019-04-18 05:26:20 -05:00
parent 63e135590c
commit ffbc99926b
14 changed files with 49 additions and 34 deletions

View File

@@ -21,7 +21,11 @@ if premake.override then
-- for msvc
premake.override(premake.vstudio.vc2010, "additionalCompileOptions", function(base, cfg, condition)
if cfg.abspath and table.contains(forced_cc_files, cfg.abspath) then
_p(3,'<CompileAs %s>CompileAsCpp</CompileAs>', condition)
if condition == nil or condition == '' then
_p(3,'<CompileAs>CompileAsCpp</CompileAs>')
else
_p(3,'<CompileAs Condition="\'$(Configuration)|$(Platform)\'==\'%s\'">CompileAsCpp</CompileAs>', condition)
end
end
return base(cfg, condition)
end)