aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorBe <be@mixxx.org>2021-08-19 08:59:43 -0700
committerGitHub <noreply@github.com>2021-08-19 08:59:43 -0700
commit996baeff2978d1e80b8939ef1688c2aa6f276dbd (patch)
tree7c0575b53c53e405ca94963ac75c76d20046e12b /ports
parentbd7fc2c75b87b815c96abff1990a0d2333b20d6d (diff)
downloadvcpkg-996baeff2978d1e80b8939ef1688c2aa6f276dbd.tar.gz
vcpkg-996baeff2978d1e80b8939ef1688c2aa6f276dbd.zip
[wxwidgets] make wxUSE_STL an optional triplet feature (#19274)
wxUSE_STL defaults to OFF so that is how it is in Linux distribution packages. Downstream projects developed with wxUSE_STL=ON are not necessarily compatible with wxUSE_STL=OFF without modification. So, by default, go with wxWidgets' default for compatibility with downstream codebases. vcpkg users who need wxUSE_STL=ON can still do so by simply opting into the new 'stl' feature of this port. https://forums.wxwidgets.org/viewtopic.php?p=165208 Signed-off-by: Be <be@mixxx.org>
Diffstat (limited to 'ports')
-rw-r--r--ports/wxwidgets/portfile.cmake9
-rw-r--r--ports/wxwidgets/vcpkg.json7
2 files changed, 13 insertions, 3 deletions
diff --git a/ports/wxwidgets/portfile.cmake b/ports/wxwidgets/portfile.cmake
index 8b2050e2d..5b5ecd730 100644
--- a/ports/wxwidgets/portfile.cmake
+++ b/ports/wxwidgets/portfile.cmake
@@ -23,6 +23,13 @@ if(VCPKG_TARGET_ARCHITECTURE STREQUAL arm64 OR VCPKG_TARGET_ARCHITECTURE STREQUA
)
endif()
+# This may be set to ON by users in a custom triplet.
+# wxUSE_STL=ON and wxUSE_STL=OFF are not API compatible which is why this must be set
+# in a custom triplet rather than a port feature.
+if(NOT DEFINED WXWIDGETS_USE_STL)
+ set(WXWIDGETS_USE_STL OFF)
+endif()
+
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
@@ -33,8 +40,8 @@ vcpkg_configure_cmake(
-DwxUSE_LIBJPEG=sys
-DwxUSE_LIBPNG=sys
-DwxUSE_LIBTIFF=sys
- -DwxUSE_STL=ON
-DwxBUILD_DISABLE_PLATFORM_LIB_DIR=ON
+ -DwxUSE_STL=${WXWIDGETS_USE_STL}
${OPTIONS}
)
diff --git a/ports/wxwidgets/vcpkg.json b/ports/wxwidgets/vcpkg.json
index c7464fe14..540e2147f 100644
--- a/ports/wxwidgets/vcpkg.json
+++ b/ports/wxwidgets/vcpkg.json
@@ -1,8 +1,11 @@
{
"name": "wxwidgets",
"version-semver": "3.1.5",
- "port-version": 2,
- "description": "a widget toolkit and tools library for creating graphical user interfaces (GUIs) for cross-platform applications.",
+ "port-version": 3,
+ "description": [
+ "Widget toolkit and tools library for creating graphical user interfaces (GUIs) for cross-platform applications. ",
+ "Set WXWIDGETS_USE_STL in a custom triplet to build with the wxUSE_STL build option."
+ ],
"homepage": "https://github.com/wxWidgets/wxWidgets",
"supports": "!uwp",
"dependencies": [