dbus/cmake
Simon McVittie dcdc638ea4 cmake: Make intrusive (formerly embedded) tests into a separate option
Previously, the CMake build enabled tests by default, and enabled both
modular and intrusive (embedded) tests with a single option. This is
a really bad idea if anyone is using CMake-built binaries in production.

DBUS_BUILD_TESTS now enables only the modular tests, which are safe to
enable in production builds.

A new DBUS_ENABLE_INTRUSIVE_TESTS option enables the intrusive test
instrumentation.

To preserve existing test coverage, explicitly enable the intrusive
tests in most CMake-based Gitlab-CI jobs (Debian native, openSUSE native,
Windows).

In jobs that have a mirrored pair of production/debug builds (openSUSE
and Debian mingw32/mingw64 cmake), instead we leave the production
build as-is and only build full test coverage in the debug build.

Co-authored-by: Philip Withnall <philip@tecnocode.co.uk>
Signed-off-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit 41c7570e1e)
2024-12-10 15:43:34 +00:00
..
bus Move cmake related build system to top level 2019-01-22 09:57:40 +01:00
modules cmake: Make intrusive (formerly embedded) tests into a separate option 2024-12-10 15:43:34 +00:00
bus-test.bat.cmake * cmake: new directory, contains cmake build support. 2007-03-03 14:32:17 +00:00
config.h.cmake Rename "embedded tests" to "intrusive tests" 2024-12-10 15:43:31 +00:00
ConfigureChecks.cmake sysdeps: Use C11 stdatomic.h where possible 2023-08-15 12:54:41 +00:00
dbus-env.bat.cmake Split DBUS_SESSION_BUS_DEFAULT_ADDRESS into listen, connect addresses and set better defaults 2012-08-13 19:57:13 +01:00
DBus1Config.cmake.in cmake: In client configuration file get DBus1_xxx variables from cmake target 2024-12-10 10:24:10 +00:00
DBus1Config.pkgconfig.in cmake: Look for dbus-arch-deps.h next to DBus1Config.cmake 2022-03-30 07:36:38 +00:00
DBus1ConfigVersion.cmake.in cmake, autotools: Add find package config support for cmake clients 2017-03-20 14:18:45 +00:00
i686-w64-mingw32.cmake cmake: Fix warning on travis-ci 'CMAKE_FORCE_C.._COMPILER macro is deprecated' 2018-03-21 15:02:38 +01:00
meson.build build: Add machine-readable licensing markers to the Meson build system 2022-07-13 20:36:13 +01:00
x86_64-w64-mingw32.cmake travis-ci: Add cross building support for mingw 64 bit compiler 2018-03-22 21:13:47 +01:00