diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2018-10-09 16:46:21 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2018-10-12 07:45:53 +0100 |
commit | 7c5aececdad2a04b642ca8419cf2fe4889c7e524 (patch) | |
tree | 01f13896a80f7faa1eec1ca1882251eb0fa96b64 /common.py | |
parent | 416013b4f5caef69f8be15aaebf31d789b93f30f (diff) | |
download | mesa-7c5aececdad2a04b642ca8419cf2fe4889c7e524.tar.gz mesa-7c5aececdad2a04b642ca8419cf2fe4889c7e524.tar.bz2 mesa-7c5aececdad2a04b642ca8419cf2fe4889c7e524.zip |
scons: Allow building with custom MSVC_USE_SCRIPT script.
SCons MSVC support relies on vcvarsall.bat to extract the PATH, CPP
includes, library paths, etc.
And SCons also has an build env var named MSVC_USE_SCRIPT which one can
use to point to alternative vcvarsall.bat script.
This change exposes this MSVC_USE_SCRIPT build env variable as a SCons
command line variable. This will enable using MSVC outside Program
Files (e.g, network shares, etc.)
This change also links advapi32 library, necessary for the Windows
Registry API used by WGL state tracker, avoiding missing symbols.
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'common.py')
-rw-r--r-- | common.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common.py b/common.py index 24a7e8a611d..113fc7f5c12 100644 --- a/common.py +++ b/common.py @@ -113,3 +113,4 @@ def AddOptions(opts): opts.Add(BoolOption('swr', 'Build OpenSWR', 'no')) if host_platform == 'windows': opts.Add('MSVC_VERSION', 'Microsoft Visual C/C++ version') + opts.Add('MSVC_USE_SCRIPT', 'Microsoft Visual C/C++ vcvarsall script', True) |