[gtk+/gdk-backend: 30/91] Add per-target pc files back



commit be1e05b4d073763361a21124004f66c5cee55f56
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Dec 10 14:44:50 2010 -0500

    Add per-target pc files back
    
    Dropping those will be an unnecessary pain.

 Makefile.am |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 68002d7..c95b0e6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -54,9 +54,21 @@ MAINTAINERCLEANFILES = \
 	$(srcdir)/ChangeLog \
 	`find "$(srcdir)" -type f -name Makefile.in -print`
 
+
+## Copy .pc files to target-specific names
+gtk+-x11-3.0.pc gtk+-win32-3.0.pc gtk+-quartz-3.0.pc: gtk+-3.0.pc
+	rm -f $@ && \
+	cp gtk+-3.0.pc $@
+
+gtk+-*-3.0-uninstalled.pc: gtk+-3.0-uninstalled.pc
+	rm -f $@ && \
+	cp gtk+-3.0-uninstalled.pc $@
+
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = gtk+-3.0.pc gail-3.0.pc
 
+pkgconfig_DATA += $(patsubst %,gtk+-%-3.0.pc,@gdktarget@)
+
 if OS_UNIX
 pkgconfig_DATA += gtk+-unix-print-3.0.pc
 endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]