[PATCH weston] build: install Weston protocol XML files #89966

Dawid Gajownik gajownik at gmail.com
Tue Aug 4 20:03:50 PDT 2015


Protocol XML files are required by external applications. This patch
installs necessary files and makes them discoverable via pkg-config.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=89966

Signed-off-by: Dawid Gajownik <gajownik at gmail.com>
---
 Makefile.am      | 2 +-
 src/weston.pc.in | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 76ab546..9ce7ea9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1297,7 +1297,7 @@ BUILT_SOURCES +=				\
 	protocol/text-protocol.c		\
 	protocol/text-client-protocol.h
 
-EXTRA_DIST +=					\
+dist_pkgdata_DATA =				\
 	protocol/desktop-shell.xml		\
 	protocol/screenshooter.xml		\
 	protocol/text.xml			\
diff --git a/src/weston.pc.in b/src/weston.pc.in
index 828cb1f..ff3e243 100644
--- a/src/weston.pc.in
+++ b/src/weston.pc.in
@@ -4,6 +4,8 @@ libdir=@libdir@
 includedir=@includedir@
 libexecdir=@libexecdir@
 pkglibexecdir=${libexecdir}/@PACKAGE@
+datarootdir=@datarootdir@
+pkgdatadir=@datadir@/@PACKAGE@
 
 Name: Weston Plugin API
 Description: Header files for Weston plugin development
-- 
2.4.3



More information about the wayland-devel mailing list