Skip to content

Reduce macOS and Windows binary size#14

Merged
friedkiwi merged 2 commits intomainfrom
build/smaller-wxwidgets-binaries
Mar 22, 2026
Merged

Reduce macOS and Windows binary size#14
friedkiwi merged 2 commits intomainfrom
build/smaller-wxwidgets-binaries

Conversation

@friedkiwi
Copy link
Copy Markdown
Contributor

Summary

  • build wxWidgets as static components instead of the monolithic library on macOS and Windows
  • statically link only the required wxWidgets components and disable unused subsystems
  • strip the final app binary after linking on macOS and Windows

Verification

  • cmake -S . -B build
  • cmake --build build --target csv_explorer
  • cmake -S . -B build-strip -DFETCHCONTENT_SOURCE_DIR_WXWIDGETS=/Users/friedkiwi/CLionProjects/CSV-Explorer/build/_deps/wxwidgets-src
  • cmake --build build-strip --target csv_explorer
  • du -sh build-strip/csv-explorer.app build-strip/csv-explorer.app/Contents/MacOS/csv-explorer

@friedkiwi friedkiwi merged commit 18e81fd into main Mar 22, 2026
7 checks passed
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.

1 participant