godot/platform/windows
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 Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
context_gl_win.cpp Explicitly set OpenGL profile to core (X11, Windows). 2018-03-06 15:53:30 +02:00
context_gl_win.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
crash_handler_win.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
crash_handler_win.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
ctxgl_procaddr.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
ctxgl_procaddr.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
godot_res.rc Refactor version macros and fix related bugs 2018-02-23 20:15:29 +01:00
godot_win.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
godot.ico Make the Windows icon file smaller 2017-06-20 14:38:50 +02:00
joypad.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
joypad.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
key_mapping_win.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
key_mapping_win.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
lang_table.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
logo.png Fixed iCCp chunk in pngs 2016-06-22 21:13:29 +02:00
os_windows.cpp Explicitly set OpenGL profile to core (X11, Windows). 2018-03-06 15:53:30 +02:00
os_windows.h Clean and expose get_audio/video_driver_* funcs on OS class 2018-03-04 14:18:05 -03:00
platform_config.h add GLES 2 renderer for 2D 2018-03-01 15:12:30 +01:00
power_windows.cpp Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
power_windows.h Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
SCsub PEP3101 applied with changing old type string formatting as new ones 2018-02-14 19:29:25 +03:00
windows_terminal_logger.cpp Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
windows_terminal_logger.h Update copyright statements to 2018 2018-01-01 14:40:47 +01:00