gpgme/m4
Ingo Klöcker e6830b58b6
build,qt: Decouple generation of moc files
* m4/qt5.m4: Export moc for Qt 5 in variable MOC5. Unset temporary MOC2.
* m4/qt6.m4: Export moc for Qt 6 in variable MOC6.
* lang/qt/src/Makefile.am: Generate .moc5 files from .h files. Generate
.moc forwarding headers in moc5 subfolder. Add moc5 subfolder to include
paths for Qt 5-based qgpgme library. Ditto for Qt 6. Clean up moc5 and
moc6 subfolders.
* lang/qt/tests/Makefile.am: List tests and test runners for Qt 5 and
Qt 6. Generate .moc5 files from .cpp files of tests. Generate .moc
forwarding headers in moc5 subfolder. Generate .hmoc file from
t-support.h directly in moc5 subfolder. Add moc5 subfolder to include
paths for all Qt 5-based tests and runners. Ditto for Qt 6. Specify
sources, LDADD and CPPFLAGS for all tests and test runners for Qt 5 and
Qt 6. Clean up moc5 and moc6 subfolders.
--

The output of Qt 5's moc and Qt 6's moc is incompatible. Therefore, we
need to generate different .moc files for Qt 5 and Qt 6 to support
co-building of the Qt 5 and Qt 6 bindings. The duplication of the
listing of the tests couldn't be avoided because automake doesn't
understand `the_tests5 = $(the_tests:%=%5)` and couldn't match the
tests with their _SOURCES. Maybe some m4 programming would have helped,
but that would have made the Makefiles even more unreadable.

GnuPG-bug-id: 7205
2024-07-18 14:41:52 +02:00
..
ax_check_compile_flag.m4 build,qt: Optionally build Qt 6 bindings with -mno-direct-extern-access 2023-09-21 10:58:27 +02:00
ax_cxx_compile_stdcxx.m4 build: Update ax_cxx_compile_stdcxx macro 2022-08-22 15:04:32 +02:00
ax_gcc_func_attribute.m4 cpp: Set default visibility of all symbols to hidden 2022-03-28 17:22:48 +02:00
ax_pkg_swig.m4 doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
ax_python_devel.m4 build: Re-add still needed custom changes to Python autoconf macro 2024-01-16 09:58:33 +01:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-02 11:36:37 +01:00
glib-2.0.m4 build: Fix for modern Autoconf. 2022-07-21 13:47:06 +09:00
glibc21.m4 2004-09-14 Marcus Brinkmann <marcus@g10code.de> 2004-09-14 18:30:23 +00:00
gnupg-ttyname.m4 Fix ttyname problem on Android. 2012-10-24 16:44:34 +02:00
gpg-error.m4 Update gpg-error.m4 again for spell fix. 2024-06-14 13:52:19 +09:00
libassuan.m4 m4: Update m4 files. 2024-06-13 14:47:39 +09:00
libtool.m4 libtool: Link without -flat_namespace for macOS. 2021-11-10 11:06:34 +09:00
lt~obsolete.m4 Update to libtool 2.4.2 2012-01-19 15:30:52 +01:00
ltoptions.m4 Update to libtool 2.4.2 2012-01-19 15:30:52 +01:00
ltsugar.m4 2009-12-08 Marcus Brinkmann <marcus@g10code.de> 2009-12-08 21:38:22 +00:00
ltversion.m4 Update to libtool 2.4.2 2012-01-19 15:30:52 +01:00
pkg.m4 doc: Replace http: by https: in core source files. 2016-11-16 13:27:00 +01:00
python.m4 build,python: Build Python bindings without distutils 2024-05-29 17:04:10 +02:00
qt5.m4 build,qt: Decouple generation of moc files 2024-07-18 14:41:52 +02:00
qt6.m4 build,qt: Decouple generation of moc files 2024-07-18 14:41:52 +02:00