mirror of
https://github.com/brl/mutter.git
synced 2024-12-01 12:20:47 -05:00
3838341d83
Since a libmutter-cogl dependency is declared as libmutter_cogl_dep, it can be used to avoid repeating cogl dependency everywhere. https://gitlab.gnome.org/GNOME/mutter/merge_requests/3955
42 lines
960 B
Meson
42 lines
960 B
Meson
cogl_test_unit_sources = [
|
|
'test-unit-main.c',
|
|
]
|
|
|
|
cogl_test_unit_includes = [
|
|
cogl_includepath,
|
|
cogl_test_fixtures_includepath,
|
|
]
|
|
|
|
libmutter_cogl_test_unit = executable('test-unit',
|
|
sources: cogl_test_unit_sources,
|
|
c_args: cogl_debug_c_args + [
|
|
'-DCOGL_DISABLE_DEPRECATED',
|
|
'-DCOGL_COMPILATION',
|
|
'-DTESTS_DATADIR="@0@/tests/data"'.format(cogl_srcdir),
|
|
],
|
|
include_directories: cogl_test_unit_includes,
|
|
dependencies: [
|
|
libmutter_cogl_dep,
|
|
libmutter_cogl_path_dep,
|
|
libmutter_cogl_test_fixtures_dep,
|
|
],
|
|
install: false,
|
|
)
|
|
|
|
find_unit_tests = find_program('meson/find-unit-tests.sh')
|
|
cogl_unit_unit_tests = custom_target('cogl-tests-unit-unit-tests',
|
|
output: 'unit-tests',
|
|
input: libmutter_cogl,
|
|
command: [find_unit_tests, '@INPUT@', '@OUTPUT@'],
|
|
install: false,
|
|
)
|
|
|
|
test('cogl/unit', cogl_run_tests,
|
|
args: [
|
|
cogl_config_env,
|
|
libmutter_cogl_test_unit,
|
|
cogl_unit_unit_tests
|
|
],
|
|
is_parallel: false,
|
|
)
|