This repository contains a snapshot of the wxWidgets (https://github.com/wxWidgets/wxWidgets) sources. It is desgined to be used as a submodule or subtree of various KeyWorks Software repositories. As such, it only contains a single custom CMake build file rather than the various wxWidgets build files. It also does not contain documentation, samples, or anything not specifically needed for building the wxWidgets libraries.
All release versions of wxWidgets are in named branches. The main branch is a snapshot of the developmenet version of wxWidgets (currently 3.3.x) and is not a release build.
For the official wxWidgets readme file, please see wxREADME.
The CMakeLists.txt file is not the same file that is part of the wxWidgets repository. This is a custom version, designed to build two librarys: wxCLib and wxWidgets. If building the shared libary version, you only need to link to the wxWidgets library. If building the static version, you need to link to both the wxCLib and wxWidgets libraries.
The wxWidgets.lib library is a subset of the monolithic library that would normally be built using the original wxWidgets build scripts. In particular, it does not include the following sub-libraries:
- wxGL (monolithic library doesn't include this either)
- wxMedia
- wxNet
- wxQA
The other difference between these libraries and the official wxWidgets libraries is the compiler and linker options used. Under MSW, the compiler is told to optimize for space rather than speed (which often results in faster code due to CPU caching). Debug builds are built using using /Z7 instead of /Zi -- this results in a slightly larger PDB file, but faster compilation with ninja. Finally, when using MSVC, the compiler uses /GL and the linker uses /LTCG allowing for whole program optimization.