aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonmain.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-03-24 19:10:31 +0200
committerGitHub <noreply@github.com>2017-03-24 19:10:31 +0200
commit60034e87b20e71dcaa4fb795965d8477910c733c (patch)
treeb9415672429d031355df2b7536df719b25dc69d3 /mesonbuild/mesonmain.py
parent53795d89df48ca722b018ff8720669deb6209be4 (diff)
parent92ed60729070c5b94c34ab24b1553d40978b645d (diff)
downloadmeson-60034e87b20e71dcaa4fb795965d8477910c733c.zip
meson-60034e87b20e71dcaa4fb795965d8477910c733c.tar.gz
meson-60034e87b20e71dcaa4fb795965d8477910c733c.tar.bz2
Merge pull request #1491 from nioncode/vs2017
VS2017 backend
Diffstat (limited to 'mesonbuild/mesonmain.py')
-rw-r--r--mesonbuild/mesonmain.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py
index 031486c..7db6310 100644
--- a/mesonbuild/mesonmain.py
+++ b/mesonbuild/mesonmain.py
@@ -145,12 +145,19 @@ If you want to change option values, use the mesonconf tool instead.'''
if self.options.backend == 'ninja':
from .backend import ninjabackend
g = ninjabackend.NinjaBackend(b)
+ elif self.options.backend == 'vs':
+ from .backend import vs2010backend
+ g = vs2010backend.autodetect_vs_version(b)
+ mlog.log('Auto detected Visual Studio backend:', mlog.bold(g.name))
elif self.options.backend == 'vs2010':
from .backend import vs2010backend
g = vs2010backend.Vs2010Backend(b)
elif self.options.backend == 'vs2015':
from .backend import vs2015backend
g = vs2015backend.Vs2015Backend(b)
+ elif self.options.backend == 'vs2017':
+ from .backend import vs2017backend
+ g = vs2017backend.Vs2017Backend(b)
elif self.options.backend == 'xcode':
from .backend import xcodebackend
g = xcodebackend.XCodeBackend(b)