aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Roszko <mark.roszko@gmail.com>2020-08-05 16:01:00 -0400
committerGitHub <noreply@github.com>2020-08-05 13:01:00 -0700
commita8f69d8eff3785c621b4282d2f7e5cc18e08d7f7 (patch)
treeda0066182528f99300b028ac27e68b146d3b8faf
parent65a1b222d03f9d07c5fc25b1cff4e361c22a20b0 (diff)
downloadvcpkg-a8f69d8eff3785c621b4282d2f7e5cc18e08d7f7.tar.gz
vcpkg-a8f69d8eff3785c621b4282d2f7e5cc18e08d7f7.zip
[wxwidgets] Update to 3.1.4 (#12733)
* [wxwidgets] Update to 3.1.4 * tabs -> spaces
-rw-r--r--ports/wxwidgets/CONTROL3
-rw-r--r--ports/wxwidgets/disable-platform-lib-dir.patch8
-rw-r--r--ports/wxwidgets/fix-macos-clipboard.patch26
-rw-r--r--ports/wxwidgets/fix-stl-build-vs2019-16.6.patch202
-rw-r--r--ports/wxwidgets/portfile.cmake6
5 files changed, 210 insertions, 35 deletions
diff --git a/ports/wxwidgets/CONTROL b/ports/wxwidgets/CONTROL
index 4e12b7690..78c7373ca 100644
--- a/ports/wxwidgets/CONTROL
+++ b/ports/wxwidgets/CONTROL
@@ -1,6 +1,5 @@
Source: wxwidgets
-Version: 3.1.3
-Port-Version: 2
+Version: 3.1.4
Homepage: https://github.com/wxWidgets/wxWidgets
Description: wxWidgets is a widget toolkit and tools library for creating graphical user interfaces (GUIs) for cross-platform applications.
Build-Depends: zlib, libpng, tiff, expat
diff --git a/ports/wxwidgets/disable-platform-lib-dir.patch b/ports/wxwidgets/disable-platform-lib-dir.patch
index 2a1de613e..930477c01 100644
--- a/ports/wxwidgets/disable-platform-lib-dir.patch
+++ b/ports/wxwidgets/disable-platform-lib-dir.patch
@@ -1,13 +1,13 @@
diff --git a/build/cmake/init.cmake b/build/cmake/init.cmake
-index 06256b1..2960a31 100644
+index d013e92..c03135d 100644
--- a/build/cmake/init.cmake
+++ b/build/cmake/init.cmake
-@@ -66,7 +66,7 @@ else()
+@@ -149,7 +149,7 @@ else()
set(wxCOMPILER_PREFIX)
endif()
--if(MSVC OR MINGW)
-+if((MSVC OR MINGW) AND NOT wxBUILD_DISABLE_PLATFORM_LIB_DIR)
+-if(MSVC)
++if(MSVC AND NOT wxBUILD_DISABLE_PLATFORM_LIB_DIR)
if(wxBUILD_SHARED)
set(lib_suffix "dll")
else()
diff --git a/ports/wxwidgets/fix-macos-clipboard.patch b/ports/wxwidgets/fix-macos-clipboard.patch
deleted file mode 100644
index 9f37cc1d9..000000000
--- a/ports/wxwidgets/fix-macos-clipboard.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-diff --git a/src/osx/carbon/clipbrd.cpp b/src/osx/carbon/clipbrd.cpp
-index 274e200..6012d37 100644
---- a/src/osx/carbon/clipbrd.cpp
-+++ b/src/osx/carbon/clipbrd.cpp
-@@ -60,7 +60,11 @@ void wxClipboard::Clear()
-
- bool wxClipboard::Flush()
- {
-- return false;
-+ wxCHECK_MSG( m_open, false, wxT("clipboard not open") );
-+
-+ wxOSXPasteboard::GetGeneralClipboard()->Flush();
-+
-+ return true;
- }
-
- bool wxClipboard::Open()
-@@ -105,6 +109,8 @@ bool wxClipboard::AddData( wxDataObject *data )
-
- data->WriteToSink(wxOSXPasteboard::GetGeneralClipboard());
-
-+ Flush();
-+
- m_data = data;
-
- return true;
diff --git a/ports/wxwidgets/fix-stl-build-vs2019-16.6.patch b/ports/wxwidgets/fix-stl-build-vs2019-16.6.patch
new file mode 100644
index 000000000..e028112e7
--- /dev/null
+++ b/ports/wxwidgets/fix-stl-build-vs2019-16.6.patch
@@ -0,0 +1,202 @@
+From 590e32c60b1dfb32b34632f3d1b0b5cf7c8e4b84 Mon Sep 17 00:00:00 2001
+From: Maarten Bent <MaartenBent@users.noreply.github.com>
+Date: Sat, 1 Aug 2020 11:54:26 +0200
+Subject: [PATCH] Fix building with wxUSE_STL enabled in VS2019 16.6
+
+Exporting standard C++ library types is not allowed any more, see
+
+https://developercommunity.visualstudio.com/content/problem/1042081/142628801includexhash201332-error-c2338-this-funct.html
+
+so don't use DLL export declarations for wxHash{Map,Set} classes, which
+derive from std::{map,set}.
+
+Since the classes are header-only, this should have no direct
+consequences. Only classes that extend wxHashMap or wxHashSet, like
+wxImageHistogram, have to be made header only as well.
+
+Remove the wxLogError message in wxImageHistogram::FindFirstUnusedColour, so
+log.h and translation.h do not have to be included in the header.
+
+Closes https://github.com/wxWidgets/wxWidgets/pull/2009
+---
+ include/wx/hashmap.h | 9 ++++++---
+ include/wx/hashset.h | 6 ++++--
+ include/wx/image.h | 42 ++++++++++++++++++++++++++++++++++++++----
+ src/common/image.cpp | 43 -------------------------------------------
+ 4 files changed, 48 insertions(+), 52 deletions(-)
+
+diff --git a/include/wx/hashmap.h b/include/wx/hashmap.h
+index df9092a3823..86700f40ca9 100644
+--- a/include/wx/hashmap.h
++++ b/include/wx/hashmap.h
+@@ -678,24 +678,27 @@ public: \
+
+ // and these do exactly the same thing but should be used inside the
+ // library
++// note: DECL is not used since the class is inline
+ #define WX_DECLARE_HASH_MAP_WITH_DECL( KEY_T, VALUE_T, HASH_T, KEY_EQ_T, CLASSNAME, DECL) \
+- _WX_DECLARE_HASH_MAP( KEY_T, VALUE_T, HASH_T, KEY_EQ_T, CLASSNAME, DECL )
++ _WX_DECLARE_HASH_MAP( KEY_T, VALUE_T, HASH_T, KEY_EQ_T, CLASSNAME, class )
+
+ #define WX_DECLARE_EXPORTED_HASH_MAP( KEY_T, VALUE_T, HASH_T, KEY_EQ_T, CLASSNAME) \
+ WX_DECLARE_HASH_MAP_WITH_DECL( KEY_T, VALUE_T, HASH_T, KEY_EQ_T, \
+ CLASSNAME, class WXDLLIMPEXP_CORE )
+
++// note: DECL is not used since the class is inline
+ #define WX_DECLARE_STRING_HASH_MAP_WITH_DECL( VALUE_T, CLASSNAME, DECL ) \
+ _WX_DECLARE_HASH_MAP( wxString, VALUE_T, wxStringHash, wxStringEqual, \
+- CLASSNAME, DECL )
++ CLASSNAME, class )
+
+ #define WX_DECLARE_EXPORTED_STRING_HASH_MAP( VALUE_T, CLASSNAME ) \
+ WX_DECLARE_STRING_HASH_MAP_WITH_DECL( VALUE_T, CLASSNAME, \
+ class WXDLLIMPEXP_CORE )
+
++// note: DECL is not used since the class is inline
+ #define WX_DECLARE_VOIDPTR_HASH_MAP_WITH_DECL( VALUE_T, CLASSNAME, DECL ) \
+ _WX_DECLARE_HASH_MAP( void*, VALUE_T, wxPointerHash, wxPointerEqual, \
+- CLASSNAME, DECL )
++ CLASSNAME, class )
+
+ #define WX_DECLARE_EXPORTED_VOIDPTR_HASH_MAP( VALUE_T, CLASSNAME ) \
+ WX_DECLARE_VOIDPTR_HASH_MAP_WITH_DECL( VALUE_T, CLASSNAME, \
+diff --git a/include/wx/hashset.h b/include/wx/hashset.h
+index bb713b87f4f..311aeca9a6e 100644
+--- a/include/wx/hashset.h
++++ b/include/wx/hashset.h
+@@ -159,8 +159,9 @@ public: \
+
+ // and these do exactly the same thing but should be used inside the
+ // library
++// note: DECL is not used since the class is inline
+ #define WX_DECLARE_HASH_SET_WITH_DECL( KEY_T, HASH_T, KEY_EQ_T, CLASSNAME, DECL) \
+- _WX_DECLARE_HASH_SET( KEY_T, HASH_T, KEY_EQ_T, wxPTROP_NORMAL, CLASSNAME, DECL )
++ _WX_DECLARE_HASH_SET( KEY_T, HASH_T, KEY_EQ_T, wxPTROP_NORMAL, CLASSNAME, class )
+
+ #define WX_DECLARE_EXPORTED_HASH_SET( KEY_T, HASH_T, KEY_EQ_T, CLASSNAME) \
+ WX_DECLARE_HASH_SET_WITH_DECL( KEY_T, HASH_T, KEY_EQ_T, \
+@@ -173,8 +174,9 @@ public: \
+ // common compilers (notably Sun CC).
+ #define WX_DECLARE_HASH_SET_PTR( KEY_T, HASH_T, KEY_EQ_T, CLASSNAME) \
+ _WX_DECLARE_HASH_SET( KEY_T, HASH_T, KEY_EQ_T, wxPTROP_NOP, CLASSNAME, class )
++// note: DECL is not used since the class is inline
+ #define WX_DECLARE_HASH_SET_WITH_DECL_PTR( KEY_T, HASH_T, KEY_EQ_T, CLASSNAME, DECL) \
+- _WX_DECLARE_HASH_SET( KEY_T, HASH_T, KEY_EQ_T, wxPTROP_NOP, CLASSNAME, DECL )
++ _WX_DECLARE_HASH_SET( KEY_T, HASH_T, KEY_EQ_T, wxPTROP_NOP, CLASSNAME, class )
+
+ // delete all hash elements
+ //
+diff --git a/include/wx/image.h b/include/wx/image.h
+index f2b5866d2d7..d53ff0b1165 100644
+--- a/include/wx/image.h
++++ b/include/wx/image.h
+@@ -190,7 +190,7 @@ WX_DECLARE_EXPORTED_HASH_MAP(unsigned long, wxImageHistogramEntry,
+ wxIntegerHash, wxIntegerEqual,
+ wxImageHistogramBase);
+
+-class WXDLLIMPEXP_CORE wxImageHistogram : public wxImageHistogramBase
++class wxImageHistogram : public wxImageHistogramBase
+ {
+ public:
+ wxImageHistogram() : wxImageHistogramBase(256) { }
+@@ -211,9 +211,43 @@ class WXDLLIMPEXP_CORE wxImageHistogram : public wxImageHistogramBase
+ bool FindFirstUnusedColour(unsigned char *r,
+ unsigned char *g,
+ unsigned char *b,
+- unsigned char startR = 1,
+- unsigned char startG = 0,
+- unsigned char startB = 0 ) const;
++ unsigned char r2 = 1,
++ unsigned char g2 = 0,
++ unsigned char b2 = 0 ) const
++ {
++ unsigned long key = MakeKey(r2, g2, b2);
++
++ while ( find(key) != end() )
++ {
++ // color already used
++ r2++;
++ if ( r2 >= 255 )
++ {
++ r2 = 0;
++ g2++;
++ if ( g2 >= 255 )
++ {
++ g2 = 0;
++ b2++;
++ if ( b2 >= 255 )
++ {
++ return false;
++ }
++ }
++ }
++
++ key = MakeKey(r2, g2, b2);
++ }
++
++ if ( r )
++ *r = r2;
++ if ( g )
++ *g = g2;
++ if ( b )
++ *b = b2;
++
++ return true;
++ }
+ };
+
+ //-----------------------------------------------------------------------------
+diff --git a/src/common/image.cpp b/src/common/image.cpp
+index 096f823f0c1..880c1c4ea74 100644
+--- a/src/common/image.cpp
++++ b/src/common/image.cpp
+@@ -3381,49 +3381,6 @@ wxImageHandler::GetResolutionFromOptions(const wxImage& image, int *x, int *y)
+ // image histogram stuff
+ // ----------------------------------------------------------------------------
+
+-bool
+-wxImageHistogram::FindFirstUnusedColour(unsigned char *r,
+- unsigned char *g,
+- unsigned char *b,
+- unsigned char r2,
+- unsigned char g2,
+- unsigned char b2) const
+-{
+- unsigned long key = MakeKey(r2, g2, b2);
+-
+- while ( find(key) != end() )
+- {
+- // color already used
+- r2++;
+- if ( r2 >= 255 )
+- {
+- r2 = 0;
+- g2++;
+- if ( g2 >= 255 )
+- {
+- g2 = 0;
+- b2++;
+- if ( b2 >= 255 )
+- {
+- wxLogError(_("No unused colour in image.") );
+- return false;
+- }
+- }
+- }
+-
+- key = MakeKey(r2, g2, b2);
+- }
+-
+- if ( r )
+- *r = r2;
+- if ( g )
+- *g = g2;
+- if ( b )
+- *b = b2;
+-
+- return true;
+-}
+-
+ bool
+ wxImage::FindFirstUnusedColour(unsigned char *r,
+ unsigned char *g,
diff --git a/ports/wxwidgets/portfile.cmake b/ports/wxwidgets/portfile.cmake
index 50414420c..55186b15e 100644
--- a/ports/wxwidgets/portfile.cmake
+++ b/ports/wxwidgets/portfile.cmake
@@ -1,12 +1,12 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO wxWidgets/wxWidgets
- REF v3.1.3
- SHA512 4ecb5c2d13f9bda7aa3c12e887c351a0004509ec24bdd440542bec67e1b6dca20e7838a01236a71dd3cf2e1ba0653c40878047f406464cb2c9ee07c26d6f2599
+ REF v3.1.4
+ SHA512 108e35220de10afbfc58762498ada9ece0b3166f56a6d11e11836d51bfbaed1de3033c32ed4109992da901fecddcf84ce8a1ba47303f728c159c638dac77d148
HEAD_REF master
PATCHES
disable-platform-lib-dir.patch
- fix-macos-clipboard.patch
+ fix-stl-build-vs2019-16.6.patch
)
set(OPTIONS)