<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wayland/tests/meson.build, branch 1.24</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/wayland/atom/tests/meson.build?h=1.24</id>
<link rel='self' href='http://git.sudomsg.com/mirror/wayland/atom/tests/meson.build?h=1.24'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/'/>
<updated>2025-06-08T18:56:31Z</updated>
<entry>
<title>tests: Depend on exec-fd-leak-checker</title>
<updated>2025-06-08T18:56:31Z</updated>
<author>
<name>Matt Turner</name>
<email>mattst88@gmail.com</email>
</author>
<published>2024-12-20T02:49:02Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=9099588de1d6e8e95dcfa8e4608ee9065d76afa5'/>
<id>urn:sha1:9099588de1d6e8e95dcfa8e4608ee9065d76afa5</id>
<content type='text'>
Closes: https://gitlab.freedesktop.org/wayland/wayland/-/issues/514
Signed-off-by: Matt Turner &lt;mattst88@gmail.com&gt;
(cherry picked from commit fdac631d1744d50e6e470bb78bf5057664967e32)
</content>
</entry>
<entry>
<title>tests: Add support for specifying runtime dependencies</title>
<updated>2025-06-08T18:56:31Z</updated>
<author>
<name>Matt Turner</name>
<email>mattst88@gmail.com</email>
</author>
<published>2024-12-20T02:48:49Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=a834596d4cdff7586aee2e09dbf9e9d2b4d45d97'/>
<id>urn:sha1:a834596d4cdff7586aee2e09dbf9e9d2b4d45d97</id>
<content type='text'>
Signed-off-by: Matt Turner &lt;mattst88@gmail.com&gt;
(cherry picked from commit 6c1da920185955f7c86af38787c8889203ec3fcb)
</content>
</entry>
<entry>
<title>tests: Make `tests` dict elements dicts themselves</title>
<updated>2025-06-08T18:56:31Z</updated>
<author>
<name>Matt Turner</name>
<email>mattst88@gmail.com</email>
</author>
<published>2024-12-20T02:44:00Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=1d6fba989d24ef458a38390d5d6f9543aa57ef0e'/>
<id>urn:sha1:1d6fba989d24ef458a38390d5d6f9543aa57ef0e</id>
<content type='text'>
Previously each value was a list of extra sources. The next commit will add an
additional field to each test, so they need to be dicts themselves.

Signed-off-by: Matt Turner &lt;mattst88@gmail.com&gt;
(cherry picked from commit ca83185e8a28017ff3a2f9edccaa5d35bb86f1d7)
</content>
</entry>
<entry>
<title>scanner: add validators for enums</title>
<updated>2024-04-23T09:17:02Z</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2022-09-17T08:53:56Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=b258d5f36137088e5cb5ae097db7964290da7d55'/>
<id>urn:sha1:b258d5f36137088e5cb5ae097db7964290da7d55</id>
<content type='text'>
Right now compositors need to manually check that enum values sent
by the client are valid. In particular:

- Check that the value sent by the client is not outside of the enum.
- Check that the version of the enum entry is consistent with the
  object version.

Automatically generate validator functions to perform these tasks.

Signed-off-by: Simon Ser &lt;contact@emersion.fr&gt;
Closes: https://gitlab.freedesktop.org/wayland/wayland/-/issues/104
</content>
</entry>
<entry>
<title>build: add a gen-scanner-test target</title>
<updated>2024-01-15T13:29:10Z</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2024-01-15T13:29:10Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=0e139cfbc710156bc4b4b3c254c7b2ff2f10ff34'/>
<id>urn:sha1:0e139cfbc710156bc4b4b3c254c7b2ff2f10ff34</id>
<content type='text'>
This adds a command to re-generate the test data. This needs to be
done when either an XML source file or the scanner's output is
changed.

Signed-off-by: Simon Ser &lt;contact@emersion.fr&gt;
</content>
</entry>
<entry>
<title>tests: add missing proxy-test</title>
<updated>2023-06-20T07:20:49Z</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2023-06-20T07:13:57Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=f181de1bcf7dc34898144498f1323c184e73f79d'/>
<id>urn:sha1:f181de1bcf7dc34898144498f1323c184e73f79d</id>
<content type='text'>
This was probably lost during a rebase.

Signed-off-by: Simon Ser &lt;contact@emersion.fr&gt;
</content>
</entry>
<entry>
<title>tests: drop misleading fixed-benchmark</title>
<updated>2023-05-03T19:15:12Z</updated>
<author>
<name>Manuel Stoeckl</name>
<email>code@mstoeckl.com</email>
</author>
<published>2023-02-25T20:57:47Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=b1b97e8d348ed3ac9c9c422534bd47bc8fb2d31e'/>
<id>urn:sha1:b1b97e8d348ed3ac9c9c422534bd47bc8fb2d31e</id>
<content type='text'>
Because this benchmark performed wl_fixed_to_double conversions
on a long sequence of consecutive integers, the compiler could
optimize away the addition performed in wl_fixed_to_double, merging
it with the loop iteration code. This made tests/fixed-benchmark.c
significantly underestimate the actual cost of the current
wl_fixed_to_double implementation.

Signed-off-by: Manuel Stoeckl &lt;code@mstoeckl.com&gt;
</content>
</entry>
<entry>
<title>build: sanity check options</title>
<updated>2022-05-10T14:02:51Z</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2022-05-05T09:14:00Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=9402afc353bb359b4d87622451abd635d111d356'/>
<id>urn:sha1:9402afc353bb359b4d87622451abd635d111d356</id>
<content type='text'>
Fail when tests/documentation is enabled without libraries. Fail
when neither scanner nor libraries is enabled, because we don't
build anything in that case.

Signed-off-by: Simon Ser &lt;contact@emersion.fr&gt;
</content>
</entry>
<entry>
<title>build: specify native arg in add_languages()</title>
<updated>2022-03-25T09:14:08Z</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2022-03-08T12:57:23Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=24e0a7b622d3f0e5fac043cb90e0e95093b650d5'/>
<id>urn:sha1:24e0a7b622d3f0e5fac043cb90e0e95093b650d5</id>
<content type='text'>
Fixes the following warning:

    WARNING: add_languages is missing native:, assuming languages are wanted for
    both host and build.

Signed-off-by: Simon Ser &lt;contact@emersion.fr&gt;
</content>
</entry>
<entry>
<title>build: use full_path() instead of path()</title>
<updated>2022-03-25T09:14:08Z</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2022-03-08T12:56:32Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=02661fde24b726edea201e2d4c2382b2723303cd'/>
<id>urn:sha1:02661fde24b726edea201e2d4c2382b2723303cd</id>
<content type='text'>
Fixes the following warning:

    WARNING: Project targeting '&gt;= 0.56.0' but tried to use feature deprecated
    since '0.55.0': ExternalProgram.path. use ExternalProgram.full_path() instead

Signed-off-by: Simon Ser &lt;contact@emersion.fr&gt;
</content>
</entry>
<entry>
<title>Use epoll-shim to emulate epoll(7) on FreeBSD</title>
<updated>2021-09-10T11:35:54Z</updated>
<author>
<name>Alex Richardson</name>
<email>Alexander.Richardson@cl.cam.ac.uk</email>
</author>
<published>2021-03-15T22:18:14Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=c65f852fc8b2742e4944f58f9bd0f1e0b44b983a'/>
<id>urn:sha1:c65f852fc8b2742e4944f58f9bd0f1e0b44b983a</id>
<content type='text'>
FreeBSD does not provide epoll(7) and instead requires an external library,
epoll-shim, that implements epoll() using kqueue(2)

Co-authored-by: Jan Beich &lt;jbeich@FreeBSD.org&gt;
Signed-off-by: Alex Richardson &lt;Alexander.Richardson@cl.cam.ac.uk&gt;
</content>
</entry>
<entry>
<title>meson: only require cpp for tests</title>
<updated>2021-04-16T09:04:56Z</updated>
<author>
<name>James Hilliard</name>
<email>james.hilliard1@gmail.com</email>
</author>
<published>2021-04-16T08:32:38Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=4c2105312379b62dc84f6eaaf26e2ab293d51b92'/>
<id>urn:sha1:4c2105312379b62dc84f6eaaf26e2ab293d51b92</id>
<content type='text'>
Signed-off-by: James Hilliard &lt;james.hilliard1@gmail.com&gt;
</content>
</entry>
<entry>
<title>meson: link with -lrt if needed for clock_gettime</title>
<updated>2020-12-23T14:37:58Z</updated>
<author>
<name>Loïc Yhuel</name>
<email>loic.yhuel@softathome.com</email>
</author>
<published>2020-04-02T16:25:54Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=74182eb605bf0e45b777cb8b942f5263877c7e72'/>
<id>urn:sha1:74182eb605bf0e45b777cb8b942f5263877c7e72</id>
<content type='text'>
This is already done in autotools, and fixes the build with glibc &lt; 2.17.

Signed-off-by: Loïc Yhuel &lt;loic.yhuel@softathome.com&gt;
</content>
</entry>
<entry>
<title>meson: Add option to control building wayland-scanner</title>
<updated>2020-03-13T17:25:24Z</updated>
<author>
<name>Matt Turner</name>
<email>mattst88@gmail.com</email>
</author>
<published>2020-03-05T20:04:36Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=618663c791092bb82dc0a153a4a2fe97582a54bc'/>
<id>urn:sha1:618663c791092bb82dc0a153a4a2fe97582a54bc</id>
<content type='text'>
Wayland requires a binary, wayland-scanner, to be run during the build
process. For any configuration other than native builds (including
cross compiling and even 32-bit x86 builds on an x86-64 build machine)
Wayland's build process builds and uses its own wayland-scanner.

For any builds using a cross file, wayland-scanner is built for the host
machine and therefore cannot be executed during the build of the Wayland
libraries. Instead builds using a cross file must execute the build
machine's wayland-scanner (typically /usr/bin/wayland-scanner).

As such, to build Wayland's libraries for a non-native ABI a package
manager must build and install /usr/bin/wayland-scanner first. But then
the build for the native ABI then rebuilds wayland-scanner itself and
doesn't use the system's, and worse, wants to install its own, which
conflicts with the /usr/bin/wayland-scanner already installed!

So, add the -Dscanner=... option to control whether to install
wayland-scanner.

Signed-off-by: Matt Turner &lt;mattst88@gmail.com&gt;
</content>
</entry>
<entry>
<title>meson/tests: add missing dependencies on protocol headers</title>
<updated>2020-02-15T02:55:00Z</updated>
<author>
<name>Jan Beich</name>
<email>jbeich@FreeBSD.org</email>
</author>
<published>2020-02-15T02:03:45Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=0fc00fff3015edb70b865f126dc8f4c258fe2f56'/>
<id>urn:sha1:0fc00fff3015edb70b865f126dc8f4c258fe2f56</id>
<content type='text'>
In file included from ../tests/connection-test.c:43:
In file included from ../tests/test-compositor.h:30:
../src/wayland-client.h:40:10: fatal error: 'wayland-client-protocol.h' file not found
 #include "wayland-client-protocol.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../tests/display-test.c:45:
In file included from ../src/wayland-server.h:104:
src/wayland-server-protocol.h:4454:2: error: unterminated /* comment
        /**
        ^
In file included from ../tests/cpp-compile-test.cpp:2:
In file included from src/wayland-server-protocol.h:8:
In file included from ../src/wayland-server.h:104:
src/wayland-server-protocol.h:3:2: error: unterminated conditional directive
 #ifndef WAYLAND_SERVER_PROTOCOL_H
  ^
../tests/headers-protocol-test.c:33:2: error: including wayland-server-protocol.h did not include wayland-server.h!
 #error including wayland-server-protocol.h did not include wayland-server.h!
  ^
In file included from ../tests/headers-protocol-test.c:26:
In file included from src/wayland-client-protocol.h:8:
In file included from ../src/wayland-client.h:40:
src/wayland-client-protocol.h:1358:2: error: unterminated conditional directive
 #ifndef WL_SHM_FORMAT_ENUM
  ^
In file included from ../tests/protocol-logger-test.c:34:
In file included from ../src/wayland-client.h:40:
src/wayland-client-protocol.h:2613:1: error: unterminated /* comment
/**
^
../tests/resources-test.c:49:36: error: use of undeclared identifier 'wl_seat_interface'
        res = wl_resource_create(client, &amp;wl_seat_interface, 4, 0);
                                          ^
</content>
</entry>
<entry>
<title>meson: use strict wayland-scanner mode</title>
<updated>2020-01-15T13:26:20Z</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2020-01-13T17:56:35Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=1f8fe8b966b59cd8af22c6a4a3b81996ff057c22'/>
<id>urn:sha1:1f8fe8b966b59cd8af22c6a4a3b81996ff057c22</id>
<content type='text'>
Otherwise an invalid protocol will print warnings to stdout but won't
make the build fail.

Signed-off-by: Simon Ser &lt;contact@emersion.fr&gt;
</content>
</entry>
<entry>
<title>Add Meson build</title>
<updated>2020-01-10T22:44:38Z</updated>
<author>
<name>Emmanuele Bassi</name>
<email>ebassi@gnome.org</email>
</author>
<published>2018-04-23T13:29:16Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=60acba6e0f13741a66f414cb9ac2e44e6048403b'/>
<id>urn:sha1:60acba6e0f13741a66f414cb9ac2e44e6048403b</id>
<content type='text'>
Meson is a next generation build system, simpler than Autotools and also faster
and more portable. Most importantly, it will make integrating ASan easier in
CI.

The goal is to maintain feature parity of the Meson build with the
Autotools build, until such time when we can drop the latter.

Add a script which generates the desired Doxygen configuration for our various
output formats and executes it using that configuration. This is not something
Meson can or should do.

Fixes: https://gitlab.freedesktop.org/wayland/wayland/issues/80

[daniels: Changed to bump version, use GitLab issues URL, remove header
          checks not used in any code, remove pre-pkg-config Expat
	  support, added missing include paths to wayland-egl and
	  cpp-compile-test, added GitLab CI.
	  Bumped version, removed unnecessary pkg-config paths.]

[daniels: Properly install into mandir/man3 via some gross
          paramaterisation, generate real stamp files.]

Pekka:
- squashed patches
- removed MAKEFLAGS from meson CI
- remove unused PACKAGE* defines
- fix up scanner dependency handling
- instead of host_scanner option, build wayland-scanner twice when cross-compiling
- changed .pc files to match more closely the autotools versions
- reorder doxygen man sources to reduce diff to autotools
- fix pkgconfig.generate syntax warnings (new in Meson)
- bump meson version to 0.47 for configure_file(copy) and run_command(check)
- move doc tool checks into doc/meson.build, needed in more places
- make all doc tools mandatory if building docs
- check dot and doxygen versions
- add build files under doc/publican
- reindent to match Weston Meson style

Simon:
- Remove install arg from configure_file
- Don't build wayland-scanner twice during cross-build
- Fix naming of the threads dependency
- Store tests in dict
- Add missing HAVE_* decls for functions
- Remove unused cc_native variable
- Make doxygen targets a dict
- Make dot_gv a dict
- Use dicts in man_pages
- Make decls use dicts
- Make generated_headers use dicts
- Align Meson version number with autotool's

Signed-off-by: Pekka Paalanen &lt;pekka.paalanen@collabora.com&gt;
Signed-off-by: Simon Ser &lt;contact@emersion.fr&gt;
</content>
</entry>
</feed>
