mirror of
https://github.com/brl/mutter.git
synced 2025-04-12 21:29:38 +00:00

This will require some symbol exporting, but the benefit is that have better control of what external test cases can do in terms of creating more testing specific contexts. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
35 lines
848 B
Meson
35 lines
848 B
Meson
clutter_tests_performance_c_args = [
|
|
'-DTESTS_DATA_DIR="@0@"'.format(clutter_tests_interactive_srcdir),
|
|
'-DG_DISABLE_SINGLE_INCLUDES',
|
|
'-DGLIB_DISABLE_DEPRECATION_WARNINGS',
|
|
'-DCOGL_DISABLE_DEPRECATION_WARNINGS',
|
|
'-DCLUTTER_DISABLE_DEPRECATION_WARNINGS',
|
|
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
|
|
]
|
|
|
|
clutter_tests_performance_c_args += clutter_debug_c_args
|
|
|
|
clutter_tests_performance_tests = [
|
|
'test-picking',
|
|
'test-text-perf',
|
|
]
|
|
|
|
foreach test : clutter_tests_performance_tests
|
|
executable(test,
|
|
sources: [
|
|
'@0@.c'.format(test),
|
|
'test-common.h',
|
|
clutter_test_utils,
|
|
],
|
|
include_directories: [
|
|
clutter_includes,
|
|
clutter_tests_includes,
|
|
],
|
|
c_args: clutter_tests_performance_c_args,
|
|
dependencies: [
|
|
libmutter_test_dep,
|
|
],
|
|
install: false,
|
|
)
|
|
endforeach
|