Skip to content

Fix wxWidgets subproject build#573

Merged
arch1t3cht merged 2 commits intoTypesettingTools:masterfrom
filip-hejsek:fix_wx_subproject
Mar 5, 2026
Merged

Fix wxWidgets subproject build#573
arch1t3cht merged 2 commits intoTypesettingTools:masterfrom
filip-hejsek:fix_wx_subproject

Conversation

@filip-hejsek
Copy link
Contributor

Fixes #555.

The toolkit detection is fixed by removing sources from the dependency with partial_dependency. This happens to work because of obscure meson implementation details.

The nonexistent target is fixed by adding logic to detect if the target exists. With the detection logic in place, I've also added wxlexilla to the list of dependencies, since it's needed for wxWidgets 3.3 and with the detection logic, it won't break wxWidgets 3.2.

The conditionally added wxpng, wxzlib and wxexpat could maybe be converted to also use this detection logic instead of hardcoding which platforms they are needed on, but I'm not sure and didn't want to break anything that works, so I kept it as is.

The available targets depend on platform and wxWidgets version. Instead
of trying to guess, let's detect which targets are available.
@arch1t3cht arch1t3cht merged commit 2214600 into TypesettingTools:master Mar 5, 2026
7 checks passed
@filip-hejsek filip-hejsek deleted the fix_wx_subproject branch March 5, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wxWidgets subproject build broken on Linux

2 participants