summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authoryg2f <yoann@terminajones.com>2016-09-15 18:04:26 +0200
committeryg2f <yoann@terminajones.com>2016-09-16 11:17:57 +0200
commit663d4ee7de9741e4e55255908fbecd8582097ae3 (patch)
tree06aade4fc11cb51c4ff7bfc55c7d7849d920f9d7 /SConstruct
parent4613cb7874a7a6beb3195bebf06d7ecfbd2454c3 (diff)
downloadredot-engine-663d4ee7de9741e4e55255908fbecd8582097ae3.tar.gz
scons detects standalone MSVC on Windows
Under Windows, Scons is now capable of detecting and compiling with standalone MSVC compilers (aka "Visual C++ Build Tools"). http://landinghub.visualstudio.com/visual-cpp-build-tools Tried with version 2015, and native x86 and x64 compilers under Windows 10 pro 64 and Windows 8.1 64, with the default Win8 SDK provided by the "Visual C++ Build Tools" web-installer. Follow the same compiling instructions than for compiling with Visual Studio, except that Visual Studio is no more required. KNOWN ISSUES : - ``methods.detect_visual_c_compiler_version()`` will emit a warning message on computers where the ``VSINSTALLDIR`` environement variable is not present. But it should compile just fine and still automatically detects the 32 or 64 bits according to the compiler you picked. TODO : - eventually, update ``platform/winrt/dectet.py`` with function ``methods.msvc_is_detected()`` and try to compile winrt/UWP with these standalone compilers (if you did not select Win10 SDK when installing the standalone tools, you can run it again). - update doc to make users aware of "Visual C++ Build Tools" aka "stadalone MSVC". - eventually, update ``methods.detect_visual_c_compiler_version()``
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct3
1 files changed, 1 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index d168820f66..0c85023b21 100644
--- a/SConstruct
+++ b/SConstruct
@@ -16,7 +16,6 @@ platform_list = [] # list of platforms
platform_opts = {} # options for each platform
platform_flags = {} # flags for each platform
-
active_platforms=[]
active_platform_ids=[]
platform_exporters=[]
@@ -60,7 +59,7 @@ platform_arg = ARGUMENTS.get("platform", False)
if (os.name=="posix"):
pass
elif (os.name=="nt"):
- if (os.getenv("VSINSTALLDIR")==None or platform_arg=="android"):
+ if (not methods.msvc_is_detected() or platform_arg=="android"):
custom_tools=['mingw']
env_base=Environment(tools=custom_tools);