mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 17:37:51 +08:00
3f7655c70a
* [cairomm] update to 1.16.1 (microsoft#23903) Cairo: * Surface::Type: Deprecate WIN32, add WIN32_SURFACE (Kjell Ahlstedt) Issue #26, merge request !14 Build: * cairommconfig.h.*: Don't dllimport on MinGW (Chun-wei Fan) Merge reqest !16 (Chun-wei Fan) Issue gtkmm#90 (Lukas K.) * Meson build: Make it possible to use cairomm as a subproject (Kjell Ahlstedt) * Meson build: No implicit_include_directories (Kjell Ahlstedt) * MSVC build: exception.h: Export Cairo::logic_error selectively (Chun-wei Fan) Merge request !17 * [cairomm] remove patch (microsoft#23903) The WIN32 constant has been renamed to WIN32_SURFACE , and the WIN32 -> WIN32_SURFACE alias is only provided for non-win32 sytems, therefore our previous patch is no longer needed. * [cairomm] Support MSVC2022 (microsoft#23903) Manually add ed1ce9a630b375b0f43435e34fbe690eb8276178 from upstream, which prevents MSVC 2022 toolchains from being overridden by the meson port file, resulting in corrupted binarycache metadata * [cairomm] update version registries (microsoft#23903) * [cairomm] add license (microsoft#23903) * [cairomm] regenerate license registry (microsoft#23903) Co-authored-by: Schaich <alonso.schaich@sodgeit.de>
42 lines
1.3 KiB
Diff
42 lines
1.3 KiB
Diff
commit ed1ce9a630b375b0f43435e34fbe690eb8276178
|
|
Author: Chun-wei Fan <fanchunwei@src.gnome.org>
|
|
Date: Wed Nov 10 16:11:04 2021 +0800
|
|
|
|
build: Support Visual Studio 2022
|
|
|
|
Make these builds distinct from the Visual Studio 2019 builds.
|
|
|
|
diff --git a/MSVC_NMake/detectenv-msvc.mak b/MSVC_NMake/detectenv-msvc.mak
|
|
index bf2e906..58b7092 100644
|
|
--- a/MSVC_NMake/detectenv-msvc.mak
|
|
+++ b/MSVC_NMake/detectenv-msvc.mak
|
|
@@ -98,9 +98,12 @@ PDBVER = 14
|
|
!if $(VCVERSION) > 1909 && $(VCVERSION) < 1920
|
|
VSVER_SUFFIX = 1
|
|
VSVER = 15
|
|
-!elseif $(VCVERSION) > 1919 && $(VCVERSION) < 2000
|
|
+!elseif $(VCVERSION) > 1919 && $(VCVERSION) < 1930
|
|
VSVER_SUFFIX = 2
|
|
VSVER = 16
|
|
+!elseif $(VCVERSION) > 1929 && $(VCVERSION) < 2000
|
|
+VSVER_SUFFIX = 3
|
|
+VSVER = 17
|
|
!else
|
|
VSVER = $(PDBVER)
|
|
!endif
|
|
diff --git a/meson.build b/meson.build
|
|
index 8b18fc2..1fa2da0 100644
|
|
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -238,7 +238,9 @@ if is_msvc
|
|
add_project_arguments(disabled_warning, language: 'cpp')
|
|
endforeach
|
|
if use_msvc14x_toolset_ver
|
|
- if cpp_compiler.version().version_compare('>=19.20')
|
|
+ if cpp_compiler.version().version_compare('>=19.30')
|
|
+ msvc14x_toolset_ver = '-vc143'
|
|
+ elif cpp_compiler.version().version_compare('>=19.20')
|
|
msvc14x_toolset_ver = '-vc142'
|
|
elif cpp_compiler.version().version_compare('>=19.10')
|
|
msvc14x_toolset_ver = '-vc141'
|