summaryrefslogtreecommitdiff
path: root/mesonbuild/coredata.py
diff options
context:
space:
mode:
authorNicolas Schneider <nioncode+git@gmail.com>2017-03-23 10:34:32 +0100
committerNicolas Schneider <nioncode+git@gmail.com>2017-03-23 10:34:32 +0100
commit92ed60729070c5b94c34ab24b1553d40978b645d (patch)
treeae1cba87e82446ae3b143b85da63ad59041fcbcf /mesonbuild/coredata.py
parent776de065a8e1bfe94938d535bdf06c1cad9dc28b (diff)
downloadmeson-92ed60729070c5b94c34ab24b1553d40978b645d.tar.gz
add 'vs' backend that automatically chooses between the vs backends
For newer VS versions, we can simply rely on 'VisualStudioVersion' being set in the environment. For VS2010, we fall back to check 'VSINSTALLDIR' for the version string. If the backend can not be auto detected, we raise an exception to make the user choose an explicit backend. We also print the detected backend to the meson log.
Diffstat (limited to 'mesonbuild/coredata.py')
-rw-r--r--mesonbuild/coredata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py
index 0d2af6973..d3a124165 100644
--- a/mesonbuild/coredata.py
+++ b/mesonbuild/coredata.py
@@ -18,7 +18,7 @@ from .mesonlib import MesonException, commonpath
from .mesonlib import default_libdir, default_libexecdir, default_prefix
version = '0.40.0.dev1'
-backendlist = ['ninja', 'vs2010', 'vs2015', 'vs2017', 'xcode']
+backendlist = ['ninja', 'vs', 'vs2010', 'vs2015', 'vs2017', 'xcode']
class UserOption:
def __init__(self, name, description, choices):