[gtk/more-vs2022-fixes: 1/2] meson: Make VS2022 builds distinct from VS2019




commit 92a8e10789f9a14ba3446dcf32d94a4b93fbcf49
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Dec 22 10:07:21 2021 +0800

    meson: Make VS2022 builds distinct from VS2019
    
    Make sure that we append the 'vs17' suffix to the DLL filenames rather than
    appending 'vs16', so that VS2022 builds are distinct from the VS2019 ones.

 meson.build | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index 15cca3de15..98f1007e73 100644
--- a/meson.build
+++ b/meson.build
@@ -94,14 +94,17 @@ if cc.get_id() == 'msvc'
     # Visual Studio 2015 and later (19.xx.xxxxx or later): look at the minor version.
     # If minor version < 10: Visual Studio 2015,
     #    10 < minor version < 20: Visual Studio 2017,
-    #    20 < minor version: Visual Studio 2019
+    #    20 < minor version < 30: Visual Studio 2019,
+    #    30 < minor version: Visual Studio 2022
     mscsubver = cc.version().split('.')[1].to_int()
     if mscsubver < 10
       vsver = 14
     elif mscsubver < 20
       vsver = 15
-    else
+    elif mscsubver < 30
       vsver = 16
+    else
+      vsver = 17
     endif
   endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]