WXWIDGETS.ECLASSSection: eclass-manpages (5)
Updated: May 2020
Index Return to Main Contents
NAMEwxwidgets.eclass - Manages build configuration for wxGTK-using packages.
DESCRIPTIONThis eclass sets up the proper environment for ebuilds using the wxGTK libraries. Ebuilds using wxPython do not need to inherit this eclass.
More specifically, this eclass controls the configuration chosen by the /usr/bin/wx-config wrapper.
Using the eclass is simple:
- set WX_GTK_VER equal to a SLOT of wxGTK
- call setup-wxwidgets()
The configuration chosen is based on the version required and the flags wxGTK was built with.
SUPPORTED EAPIS0 1 2 3 4 5 6 7
Call this in your ebuild to set up the environment for wxGTK. Besides
controlling the wx-config wrapper this exports WX_CONFIG containing
the path to the config in case it needs to be passed to a build system.
In wxGTK-2.9 and later it also controls the level of debugging output from the libraries. In these versions debugging features are enabled by default and need to be disabled at the package level. Because this causes many warning dialogs to pop up during runtime we add -DNDEBUG to CPPFLAGS to disable debugging features (unless your ebuild has a debug USE flag and it's enabled). If you don't like this behavior you can set WX_DISABLE_NDEBUG to override it.
REPORTING BUGSPlease report bugs via https://bugs.gentoo.org/
This document was created by man2html, using the manual pages.
Time: 00:27:03 GMT, August 10, 2020