mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
ef85d1a643
This commit adds meson build support to mutter. It takes a step away from the three separate code bases with three different autotools setups into a single meson build system. There are still places that can be unified better, for example by removing various "config.h" style files from cogl and clutter, centralizing debug C flags and other configurable macros, and similar artifacts that are there only because they were once separate code bases. There are some differences between the autotools setup and the new meson. Here are a few: The meson setup doesn't generate wrapper scripts for various cogl and clutter test cases. What these tests did was more or less generate a tiny script that called an executable with a test name as the argument. To run particular tests, just run the test executable with the name of the test as the argument. The meson setup doesn't install test files anymore. The autotools test suite was designed towards working with installed tests, but it didn't really still, and now with meson, it doesn't install anything at all, but instead makes sure that everything runs with the uninstalled input files, binaries and libraries when running the test suite. Installable tests may come later. Tests from cogl, clutter and mutter are run on 'meson test'. In autotools, only cogl and clutter tests were run on 'make check'.
36 lines
866 B
Meson
36 lines
866 B
Meson
clutter_tests_performance_c_args = [
|
|
'-DTESTS_DATA_DIR="@0@"'.format(join_paths(clutter_srcdir, 'tests/interactive')),
|
|
'-DG_DISABLE_SINGLE_INCLUDES',
|
|
'-DGLIB_DISABLE_DEPRECATION_WARNINGS',
|
|
'-DCOGL_DISABLE_DEPRECATION_WARNINGS',
|
|
'-DCLUTTER_DISABLE_DEPRECATION_WARNINGS',
|
|
]
|
|
|
|
clutter_tests_performance_c_args += clutter_debug_c_args
|
|
|
|
clutter_tests_performance_tests = [
|
|
'test-picking',
|
|
'test-text-perf',
|
|
'test-state',
|
|
'test-state-interactive',
|
|
'test-state-hidden',
|
|
'test-state-mini',
|
|
'test-state-pick',
|
|
]
|
|
|
|
foreach test : clutter_tests_performance_tests
|
|
executable(test,
|
|
sources: [
|
|
'@0@.c'.format(test),
|
|
'test-common.h',
|
|
],
|
|
include_directories: clutter_includes,
|
|
c_args: clutter_tests_performance_c_args,
|
|
dependencies: [
|
|
clutter_deps,
|
|
libmutter_clutter_dep,
|
|
],
|
|
install: false,
|
|
)
|
|
endforeach
|