-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[wxwidgets] Update and fix #25572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[wxwidgets] Update and fix #25572
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
c63be93
Revert "[wxwidgets] Remove debug asserts from Release build. (#25240)"
dg0yt c15ec7b
Update to 3.1.7
dg0yt a9714cc
Update installation layout
dg0yt 8118a53
Upstream CMake export is not ready for use
dg0yt 6d6cf76
Update versions
dg0yt e88b593
Remove obsolete patch
dg0yt 0c36289
Use msvc layout for mingw on windows
dg0yt ce04c3f
Add debug-support feature
dg0yt c66ab6e
Update versions
dg0yt ae74c70
Fix condition
dg0yt 6a5b193
Update versions
dg0yt 1ced1e9
Restore symlink patch
dg0yt 67bc148
Update versions
dg0yt f2c61ee
Remove trace option from test port
dg0yt feca777
Enable testing without feature debug-support
dg0yt 06ff3fb
Fixup defaults for using without debug support
dg0yt 2783c10
Expect wxrc-3.1 for mingw cross builds ("unix" layout)
dg0yt 18b0416
Update versions
dg0yt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,35 +1,29 @@ | ||
| diff --git a/build/cmake/init.cmake b/build/cmake/init.cmake | ||
| index 8c9275974f..3758261299 100644 | ||
| --- a/build/cmake/init.cmake | ||
| +++ b/build/cmake/init.cmake | ||
| @@ -615,3 +615,6 @@ if(wxBUILD_PRECOMP) | ||
| wx_option_force_value(wxBUILD_PRECOMP OFF) | ||
| endif() | ||
| endif(wxBUILD_PRECOMP) | ||
| + | ||
| +find_package(unofficial-nanosvg CONFIG REQUIRED) | ||
| +list(APPEND wxTOOLKIT_LIBRARIES unofficial::nanosvg::nanosvg) | ||
| diff --git a/src/generic/bmpsvg.cpp b/src/generic/bmpsvg.cpp | ||
| index 76f20dce4c..7a7c24b4dd 100644 | ||
| --- a/src/generic/bmpsvg.cpp | ||
| +++ b/src/generic/bmpsvg.cpp | ||
| @@ -26,7 +26,7 @@ | ||
| // your source tree doesn't contain 3rdparty/nanosvg and you should initialize | ||
| // and update the corresponding submodule. | ||
| #ifdef __has_include | ||
| - #if ! __has_include("../../3rdparty/nanosvg/src/nanosvg.h") | ||
| + #if 0 | ||
| #error You need to run "git submodule update --init 3rdparty/nanosvg". | ||
| #undef wxHAS_SVG | ||
| #endif | ||
| @@ -60,8 +60,8 @@ | ||
| #define NANOSVG_IMPLEMENTATION | ||
| #define NANOSVGRAST_IMPLEMENTATION | ||
| #define NANOSVG_ALL_COLOR_KEYWORDS | ||
| -#include "../../3rdparty/nanosvg/src/nanosvg.h" | ||
| -#include "../../3rdparty/nanosvg/src/nanosvgrast.h" | ||
| +#include <nanosvg.h> | ||
| +#include <nanosvgrast.h> | ||
|
|
||
| #ifdef __VISUALC__ | ||
| #pragma warning(pop) | ||
| diff --git a/build/cmake/lib/nanosvg.cmake b/build/cmake/lib/nanosvg.cmake | ||
| index 401bf48..b9e4b57 100644 | ||
| --- a/build/cmake/lib/nanosvg.cmake | ||
| +++ b/build/cmake/lib/nanosvg.cmake | ||
| @@ -16,9 +16,9 @@ elseif(wxUSE_NANOSVG) | ||
| set(NANOSVG_INCLUDE_DIRS ) | ||
| set(wxUSE_NANOSVG_EXTERNAL_ENABLE_IMPL TRUE) | ||
|
|
||
| - find_package(NanoSVG REQUIRED) | ||
| + find_package(unofficial-nanosvg CONFIG REQUIRED) | ||
|
|
||
| - foreach(TARGETNAME NanoSVG::nanosvg NanoSVG::nanosvgrast unofficial::nanosvg) | ||
| + foreach(TARGETNAME unofficial::nanosvg::nanosvg) | ||
| if(NOT TARGET ${TARGETNAME}) | ||
| continue() | ||
| endif() | ||
| diff --git a/build/cmake/options.cmake b/build/cmake/options.cmake | ||
| index 49c536a..5630526 100644 | ||
| --- a/build/cmake/options.cmake | ||
| +++ b/build/cmake/options.cmake | ||
| @@ -114,7 +114,7 @@ wx_add_thirdparty_library(wxUSE_EXPAT EXPAT "use expat for XML parsing" DEFAULT_ | ||
| wx_add_thirdparty_library(wxUSE_LIBJPEG JPEG "use libjpeg (JPEG file format)") | ||
| wx_add_thirdparty_library(wxUSE_LIBPNG PNG "use libpng (PNG image format)") | ||
| wx_add_thirdparty_library(wxUSE_LIBTIFF TIFF "use libtiff (TIFF file format)") | ||
| -wx_add_thirdparty_library(wxUSE_NANOSVG NanoSVG "use NanoSVG for rasterizing SVG") | ||
| +wx_add_thirdparty_library(wxUSE_NANOSVG unofficial-nanosvg "use NanoSVG for rasterizing SVG") | ||
|
|
||
| wx_option(wxUSE_LIBLZMA "use LZMA compression" OFF) | ||
| set(wxTHIRD_PARTY_LIBRARIES ${wxTHIRD_PARTY_LIBRARIES} wxUSE_LIBLZMA "use liblzma for LZMA compression") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ | |
| }, | ||
| { | ||
| "name": "wxwidgets", | ||
| "default-features": false, | ||
| "features": [ | ||
| "example" | ||
| ] | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.