mirror of
https://gitlab.freedesktop.org/wayland/wayland-protocols.git
synced 2025-12-20 02:20:12 +01:00
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>
This commit is contained in:
parent
9730142a7f
commit
ec65e4366b
2 changed files with 2 additions and 0 deletions
|
|
@ -160,6 +160,7 @@ wayland_protocols_srcdir = meson.current_source_dir()
|
|||
|
||||
pkgconfig_configuration = configuration_data()
|
||||
pkgconfig_configuration.set('prefix', get_option('prefix'))
|
||||
pkgconfig_configuration.set('includedir', '${prefix}/@0@'.format(get_option('includedir')))
|
||||
pkgconfig_configuration.set('datarootdir', '${prefix}/@0@'.format(get_option('datadir')))
|
||||
pkgconfig_configuration.set('abs_top_srcdir', wayland_protocols_srcdir)
|
||||
pkgconfig_configuration.set('PACKAGE', 'wayland-protocols')
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
prefix=@prefix@
|
||||
includedir=@includedir@
|
||||
datarootdir=@datarootdir@
|
||||
pkgdatadir=${pc_sysrootdir}${datarootdir}/@PACKAGE@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue