Commit graph

5 commits

Author SHA1 Message Date
Simon Ser
ec65e4366b build: set includedir in pkg-config file
When wayland-protocols is installed to a custom prefix, we need to
point dependencies to that prefix' include dir.

Signed-off-by: Simon Ser <contact@emersion.fr>
2025-08-16 19:37:09 +02:00
Jonas Ådahl
1ad48a50a4 build: Fix wayland-protocols.pc when using autotools
"datadir" is not the same thing in meson and autotools.

In autoconf "datadir" is "${datarootdir}", which expands to
"${prefix}/share". @datarootdir@ expands to "${prefix}/share". There
seems to be no variable that expands to "share".

In meson "datadir" is "share".

So, avoid the "datadir" variable, just expand "datarootdir" it manually
instead. This unbreaks the recently broken autotools setup.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
2021-03-26 18:12:27 +01:00
Jonas Ådahl
79b9a42514 Add meson build system support
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
2021-03-26 15:50:36 +01:00
Tomek Bury
875130ee3c Use sysroot prefix for pkgdatadir variable
The pc_sysroot is automatically added to cflags and libs but not
to 'pkg-config --variable'

Reviewed-by: Daniel Stone <daniels@collabora.com>
2017-08-30 14:04:02 +01:00
Jonas Ådahl
f548e99266 Add autotools installation files
Currently installs unstable protocols under an unstable/ subdirectory
in $prefix/share/wayland-protocols/.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2015-10-09 13:12:37 +08:00