gir-repository r205 - in trunk: . gir



Author: johan
Date: Mon Nov 10 19:45:11 2008
New Revision: 205
URL: http://svn.gnome.org/viewvc/gir-repository?rev=205&view=rev

Log:
2008-11-10  Johan Dahlin  <jdahlin async com br>

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



Modified:
   trunk/ChangeLog
   trunk/configure.ac
   trunk/gir/   (props changed)
   trunk/gir/Makefile.am

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Mon Nov 10 19:45:11 2008
@@ -203,6 +203,11 @@
                   have_avahi=true, have_avahi=false)
 AM_CONDITIONAL(BUILD_AVAHI, $have_avahi)
 
+dnl unique
+PKG_CHECK_MODULES(UNIQUE, unique-1.0 >= 1.0.0,
+                  have_unique=true, have_unique=false)
+AM_CONDITIONAL(BUILD_UNIQUE, $have_unique)
+
 AC_CONFIG_FILES([Makefile
                  gir/Makefile
                  gir-repository-1.0.pc])

Modified: trunk/gir/Makefile.am
==============================================================================
--- trunk/gir/Makefile.am	(original)
+++ trunk/gir/Makefile.am	Mon Nov 10 19:45:11 2008
@@ -677,6 +677,22 @@
 BUILT_GIRSOURCES += Babl-0.0.gir
 endif BUILD_BABL
 
+if BUILD_UNIQUE
+UNIQUE_INCLUDEDIR=`pkg-config --variable=includedir unique-1.0`/unique-1.0/unique
+UNIQUE_LIBDIR=`pkg-config --variable=libdir unique-1.0`
+Unique-1.0.gir: Gtk-2.0.gir $(G_IR_SCANNER)
+	$(G_IR_SCANNER) -v --namespace Unique --nsversion=1.0 \
+	     --add-include-path=$(srcdir) --add-include-path=. \
+             --include=Gtk-2.0 \
+	     --library=unique-1.0 \
+	     $(NOCLOSURE) \
+             --output $@ \
+             --pkg unique-1.0 \
+	     -I$(UNIQUE_INCLUDEDIR) \
+             $(UNIQUE_INCLUDEDIR)/*.h
+BUILT_GIRSOURCES += Unique-1.0.gir
+endif BUILD_UNIQUE
+
 girdir = $(GIRDIR)
 dist_gir_DATA = $(CUSTOM_GIRSOURCES)
 gir_DATA = $(BUILT_GIRSOURCES)



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