diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2022-11-01 23:51:58 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2022-11-02 03:01:13 +0530 |
commit | ee7116bbb3014677fb1e5523d30923d7016b0c7e (patch) | |
tree | 0e5a19c9c92411a97a60097b13806243ead89477 /config | |
parent | 68b7e6f09191f984146d603b1ad96b54815f27cd (diff) |
Use Visual Studio by default for building on Windows
When possible, we now build using Visual Studio by default, unless you
pass -v mingw.
This flips the previous default of using the MinGW toolchain unless
you pass -v visualstudio
The migration path for users on Windows is to wipe their build-tools
prefix and rebuild it.
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/991>
Diffstat (limited to 'config')
-rw-r--r-- | config/windows.config | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config/windows.config b/config/windows.config index c66f723d..5ceb4510 100644 --- a/config/windows.config +++ b/config/windows.config @@ -6,9 +6,15 @@ from cerbero.config import Architecture, Platform, Distro, FatalError from cerbero.utils import EnvValue, EnvValueArg, EnvValueCmd, EnvValuePath +# Use Visual Studio by default when building on Windows +if platform == Platform.WINDOWS: + variants.override('visualstudio') +else: + variants.override('mingw') + # Enable rust support by default only when building with MSVC # https://gitlab.freedesktop.org/gstreamer/cerbero/-/issues/381 -if variants.visualstudio and not variants.uwp: +if not variants.mingw and not variants.uwp: variants.override('rust') # We don't want anything from mingw or msys detected in configure and |