godot/platform/uwp
Gary Oberbrunner d1318ee12c Enable SCons to autodetect Windows MSVC compiler
SCons has good compiler detection logic for MSVC compilers. Up to now,
Godot hasn't used it; it depends on passed-in OS environment vars from
a specific Visual Studio cmd.exe windows. This makes it harder to
build from a msys or cygwin shell.

This change allows SCons to autodetect Visual Studio unless it sees
VCINSTALLDIR in the os.environ. It also adds a 'msvc_version' arg for
manual specification of compiler version, and uses the existing 'bits'
arg to specify the target architecture. More detail could be added as
desired. It also adds 'use_mingw' to always use mingw, even if Visual
Studio is installed. That uses the existing mingw setup logic.

If people are used to building Godot in a Visual Studio cmd window,
this should not change the behavior in that case, since VCINSTALLDIR
will be set in those windows. (However, note that you could now unset
that var and build with any other MSVC version or target arch, even in
that window.)

I refactored much of platform/windows/detect.py during this, to
simplify and clarify the logic. I also cleaned up a bunch of env var
settings in windows/detect.py and SConstruct to use modern SCons
idioms and simplify things.

I suspect this will also enable using the Intel compiler on Windows,
though that hasn't been tested.
2018-03-13 09:51:05 -04:00
..
export Fix typos with codespell 2018-02-21 19:46:06 +01:00
app.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
app.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
detect.py Enable SCons to autodetect Windows MSVC compiler 2018-03-13 09:51:05 -04:00
gl_context_egl.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
gl_context_egl.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
joypad_uwp.cpp Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
joypad_uwp.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
logo.png Enhanced iOS and UWP logo on Export dialog 2017-11-29 17:34:01 +07:00
os_uwp.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
os_uwp.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
platform_config.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
power_uwp.cpp Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
power_uwp.h Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
SCsub Move windows networking class to drivers/windows/ 2017-12-15 18:25:29 +01:00
thread_uwp.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
thread_uwp.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00