wxwidgets/build
Maarten Bent f6631a3d6a CMake: Create a config file for use with find_package
The config file uses the wxWidgetsTargets file to find all the libraries that
can be linked to.

It supports checking for components (e.g. base, core, aui, gl) and fails if a
requested component is not found.

Set the version compatibility to SameMinorVersion (when CMake supports this),
because different minor wxWidgets versions (3.0 and 3.1/3.2) are expected to
break API.

Because the default libraries are named like wx::wxname, create an alias that
is just called wx::name. CMake older than 3.18 does not support creating an
alias to non-global imported targets, so manually create a library with the
same properties.

The wxWidgets CMake build only builds the Release and Debug configurations, but
when creating a (MSVC) CMake project it also contains MinSizeRel and
RelWithDebInfo configurations. By default these seems to use the Debug
libraries, causing build errors. Map them to the Release libraries instead.

Also create a wxWidgets_LIBRARIES variable that can be used to link with, so
users can keep using the same variables from FindwxWidgets.
2022-06-18 17:06:15 +02:00
..
aclocal Return the new value from wxAtomicInc() too 2022-05-11 00:16:47 +02:00
autoconf_prepend-include
bakefiles Add new wx/filedlgcustomize.h to the list of files 2022-06-11 15:13:38 +02:00
cmake CMake: Create a config file for use with find_package 2022-06-18 17:06:15 +02:00
msw Add dependency of richtext on html library to MSVS .sln files 2022-06-15 23:45:47 +01:00
osx Add GitHub Actions workflow for CI builds using Xcode 2022-04-19 00:31:07 +02:00
tools Update MSYS2 MinGW version to 12.1.0 2022-06-06 15:41:01 +02:00
autogen.mk Fix autogen.mk after e70fc11e 2020-10-05 17:01:55 +02:00
files Add new wx/filedlgcustomize.h to the list of files 2022-06-11 15:13:38 +02:00
README.txt
update-setup-h Remove setup0.h files 2021-01-31 19:02:56 +01:00
upmake Stop updating non-existent MSVC 7 project files 2021-07-31 19:12:41 +01:00
upmake_script.pl Stop updating non-existent MSVC 7 project files 2021-07-31 19:12:41 +01:00

autogen.mk

autogen.mk is a makefile provided to automatically update the GNU autotools
build system.  It will run Bakefile, aclocal, and autoconf as appropriate.

The .m4 files required for running aclocal are located in build/aclocal.
When upgrading software that wxWidgets depends on (for example, Bakefile,
cppunit, GTK, SDL, or others) it is advisable to upgrade the .m4 files
located in the build/aclocal directory.

It is particularly important that if you use a newer version of Bakefile
to generate the Makefile.in files that you use the newer bakefile*.m4.
Because build/autogen.mk is a Makefile it will automatically rerun
aclocal and autoconf as necessary whenever any m4 in build/aclocal is
newer than the generated aclocal.m4.

You can achieve this simply by copying the new bakefile*.m4 files from 
PREFIX/share/aclocal/ into the build/aclocal/ directory and
rerunning make -f build/autogen.mk.  Note that you should _not_ preserve
source file times (don't use cp -p) or else it's possible your .m4 files
will be older than the generated aclocal.m4).
Example:
cp /usr/share/aclocal/bakefile*.m4 build/aclocal/
make -f build/autogen.mk

Please don't forget to commit updated .m4 files as well as updated aclocal.m4,
configure, and Makefile.in files to wxWidgets.