Add meson build support
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'.
2018-05-22 09:55:35 -04:00
|
|
|
cogl_test_conformance_sources = [
|
|
|
|
'test-conform-main.c',
|
|
|
|
'test-atlas-migration.c',
|
|
|
|
'test-blend-strings.c',
|
|
|
|
'test-blend.c',
|
|
|
|
'test-depth-test.c',
|
|
|
|
'test-color-hsl.c',
|
|
|
|
'test-backface-culling.c',
|
|
|
|
'test-just-vertex-shader.c',
|
|
|
|
'test-pipeline-user-matrix.c',
|
|
|
|
'test-pipeline-uniforms.c',
|
|
|
|
'test-pixel-buffer.c',
|
|
|
|
'test-premult.c',
|
|
|
|
'test-snippets.c',
|
|
|
|
'test-wrap-modes.c',
|
|
|
|
'test-sub-texture.c',
|
|
|
|
'test-custom-attributes.c',
|
|
|
|
'test-offscreen.c',
|
|
|
|
'test-primitive.c',
|
|
|
|
'test-sparse-pipeline.c',
|
|
|
|
'test-read-texture-formats.c',
|
|
|
|
'test-write-texture-formats.c',
|
|
|
|
'test-point-size.c',
|
|
|
|
'test-point-size-attribute.c',
|
|
|
|
'test-point-sprite.c',
|
|
|
|
'test-no-gl-header.c',
|
|
|
|
'test-version.c',
|
|
|
|
'test-gles2-context.c',
|
|
|
|
'test-euler-quaternion.c',
|
|
|
|
'test-layer-remove.c',
|
|
|
|
'test-alpha-test.c',
|
|
|
|
'test-map-buffer-range.c',
|
|
|
|
'test-npot-texture.c',
|
|
|
|
'test-alpha-textures.c',
|
|
|
|
'test-wrap-rectangle-textures.c',
|
|
|
|
'test-texture-get-set-data.c',
|
|
|
|
'test-framebuffer-get-bits.c',
|
|
|
|
'test-primitive-and-journal.c',
|
|
|
|
'test-copy-replace-texture.c',
|
|
|
|
'test-pipeline-cache-unrefs-texture.c',
|
|
|
|
'test-texture-no-allocate.c',
|
|
|
|
'test-pipeline-shader-state.c',
|
|
|
|
'test-texture-rg.c',
|
|
|
|
'test-fence.c',
|
|
|
|
'test-path.c',
|
|
|
|
'test-path-clip.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
#unported = [
|
|
|
|
# "test-fixed.c",
|
|
|
|
# "test-materials.c",
|
|
|
|
# "test-viewport.c",
|
|
|
|
# "test-multitexture.c",
|
|
|
|
# "test-npot-texture.c",
|
|
|
|
# "test-object.c",
|
|
|
|
# "test-readpixels.c",
|
|
|
|
# "test-texture-mipmaps.c",
|
|
|
|
# "test-texture-pixmap-x11.c",",
|
|
|
|
# "test-texture-rectangle.c",
|
|
|
|
# "test-vertex-buffer-contiguous.c",
|
|
|
|
# "test-vertex-buffer-interleved.c",
|
|
|
|
# "test-vertex-buffer-mutability.c",
|
|
|
|
#]
|
|
|
|
|
|
|
|
cogl_test_conformance_includes = [
|
|
|
|
cogl_includepath,
|
|
|
|
cogl_test_fixtures_includepath,
|
|
|
|
]
|
|
|
|
|
2018-12-17 10:26:07 -05:00
|
|
|
if have_installed_tests
|
|
|
|
cogl_installed_tests_cdata = configuration_data()
|
|
|
|
cogl_installed_tests_cdata.set('libexecdir', libexecdir)
|
|
|
|
cogl_installed_tests_cdata.set('apiversion', libmutter_api_version)
|
|
|
|
|
|
|
|
configure_file(
|
|
|
|
input: 'mutter-cogl.test.in',
|
|
|
|
output: 'mutter-cogl.test',
|
|
|
|
configuration: cogl_installed_tests_cdata,
|
|
|
|
install: true,
|
|
|
|
install_dir: mutter_installed_tests_datadir,
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
Add meson build support
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'.
2018-05-22 09:55:35 -04:00
|
|
|
libmutter_cogl_test_conformance = executable('test-conformance',
|
|
|
|
sources: cogl_test_conformance_sources,
|
|
|
|
c_args: cogl_debug_c_args + [
|
|
|
|
'-DCOGL_ENABLE_EXPERIMENTAL_API',
|
|
|
|
'-DCOGL_DISABLE_DEPRECATED',
|
|
|
|
'-DCOGL_DISABLE_DEPRECATION_WARNINGS',
|
|
|
|
'-DTESTS_DATADIR="@0@/tests/data"'.format(cogl_srcdir),
|
|
|
|
],
|
|
|
|
include_directories: cogl_test_conformance_includes,
|
|
|
|
dependencies: [
|
2018-11-06 14:50:24 -05:00
|
|
|
libmutter_cogl_dep,
|
Add meson build support
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'.
2018-05-22 09:55:35 -04:00
|
|
|
libmutter_cogl_path_dep,
|
2018-11-06 14:50:24 -05:00
|
|
|
libmutter_cogl_test_fixtures_dep,
|
Add meson build support
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'.
2018-05-22 09:55:35 -04:00
|
|
|
],
|
2018-12-17 10:26:07 -05:00
|
|
|
install: have_installed_tests,
|
|
|
|
install_dir: cogl_installed_tests_libexecdir,
|
|
|
|
install_rpath: pkglibdir,
|
Add meson build support
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'.
2018-05-22 09:55:35 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
find_unit_tests = find_program('meson/find-conform-unit-tests.sh')
|
|
|
|
cogl_conform_unit_tests = custom_target('cogl-tests-conform-unit-tests',
|
|
|
|
output: 'unit-tests',
|
|
|
|
input: 'test-conform-main.c',
|
|
|
|
command: [find_unit_tests, '@INPUT@', '@OUTPUT@'],
|
2018-12-17 10:26:07 -05:00
|
|
|
install: have_installed_tests,
|
|
|
|
install_dir: cogl_installed_tests_libexecdir,
|
Add meson build support
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'.
2018-05-22 09:55:35 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
test('cogl/conform', cogl_run_tests,
|
|
|
|
args: [
|
|
|
|
cogl_config_env,
|
|
|
|
libmutter_cogl_test_conformance,
|
|
|
|
cogl_conform_unit_tests
|
|
|
|
],
|
|
|
|
is_parallel: false,
|
2018-08-17 12:28:54 -04:00
|
|
|
timeout: 120,
|
Add meson build support
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'.
2018-05-22 09:55:35 -04:00
|
|
|
)
|