summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2012-01-05 14:33:35 +0000
committerNeil Roberts <neil@linux.intel.com>2012-03-01 11:41:50 +0000
commit2c9ec271e2a42d52e00da7a3c98af4da5fa532ac (patch)
tree029b29f5f1f2454ec2f2aa4c23612d1b2ebd2697
parentb0fc4c1dff80b0ec761f3037b77676fa8119543f (diff)
downloadclutter-2c9ec271e2a42d52e00da7a3c98af4da5fa532ac.tar.gz
wayland: install wayland compositor headers + pkgconfig file
If wayland compositor support has been enabled then we make sure to install the corresponding public headers and a clutter-wayland-compositor.pc pkgconfig file. Reviewed-by: Neil Roberts <neil@linux.intel.com> Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
-rw-r--r--clutter/Makefile.am11
1 files changed, 10 insertions, 1 deletions
diff --git a/clutter/Makefile.am b/clutter/Makefile.am
index 76b873656..b7aeb76ec 100644
--- a/clutter/Makefile.am
+++ b/clutter/Makefile.am
@@ -623,11 +623,20 @@ pc_files += clutter-wayland-$(CLUTTER_API_VERSION).pc
endif # SUPPORT_WAYLAND
if SUPPORT_WAYLAND_COMPOSITOR
-backend_source_h += \
+wayland_compositor_source_h = \
$(srcdir)/wayland/clutter-wayland-compositor.h \
$(srcdir)/wayland/clutter-wayland-surface.h
+backend_source_h += $(wayland_compositor_source_h)
backend_source_c += \
$(srcdir)/wayland/clutter-wayland-surface.c
+
+wayland_compositor_includedir = $(clutter_includedir)/wayland
+wayland_compositor_include_HEADERS = $(wayland_compositor_source_h)
+
+clutter-wayland-compositor-$(CLUTTER_API_VERSION).pc: clutter-$(CLUTTER_API_VERSION).pc
+ $(QUIET_GEN)cp -f $< $(@F)
+
+pc_files += clutter-wayland-compositor-$(CLUTTER_API_VERSION).pc
endif
if SUPPORT_EGL