gir-repository r175 - in trunk: . gir



Author: phsadleder
Date: Tue Oct 28 13:37:16 2008
New Revision: 175
URL: http://svn.gnome.org/viewvc/gir-repository?rev=175&view=rev

Log:
2008-10-28  Philipp Sadleder  <philipp sadleder de>

        * configure.ac:
        * gir/Makefile.am: Add Babl.


Modified:
   trunk/ChangeLog
   trunk/configure.ac
   trunk/gir/Makefile.am

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Tue Oct 28 13:37:16 2008
@@ -96,6 +96,11 @@
                   have_soup=true, have_soup=false)
 AM_CONDITIONAL(BUILD_SOUP, $have_soup)
 
+dnl babl
+PKG_CHECK_MODULES(BABL, babl,
+	 	  have_babl=true, have_babl=false)
+AM_CONDITIONAL(BUILD_BABL, $have_babl)
+
 dnl gnome-keyring
 PKG_CHECK_MODULES(GNOMEKEYRING, gnome-keyring-1,
                   have_gnomekeyring=true, have_gnomekeyring=false)

Modified: trunk/gir/Makefile.am
==============================================================================
--- trunk/gir/Makefile.am	(original)
+++ trunk/gir/Makefile.am	Tue Oct 28 13:37:16 2008
@@ -651,6 +651,22 @@
 CUSTOM_GIRSOURCES += AvahiCore-0.6.gir
 endif BUILD_AVAHI
 
+if BUILD_BABL
+BABL_INCLUDEDIR=`pkg-config --variable=includedir babl`/babl-0.0
+BABL_LIBDIR=`pkg-config --variable=libdir babl`
+Babl-0.0.gir: $(G_IR_SCANNER)
+	$(G_IR_SCANNER) -v --namespace Babl --nsversion=0.0 \
+            --add-include-path=$(srcdir) --add-include-path=. \
+	    --include=GObject-2.0 \
+            --library=babl-0.0 \
+            $(NOCLOSURE) \
+            --output $@ \
+            --pkg babl \
+            -I$(BABL_INCLUDEDIR) \
+            $(BABL_INCLUDEDIR)/babl/*.h
+BUILT_GIRSOURCES += Babl-0.0.gir
+endif BUILD_BABL
+
 girdir = $(GIRDIR)
 dist_gir_DATA = $(CUSTOM_GIRSOURCES) $(BUILT_GIRSOURCES)
 



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