Build gir/typelib for PolkitAgent-1.0
authorDavid Zeuthen <davidz@redhat.com>
Thu, 17 Feb 2011 20:25:39 +0000 (15:25 -0500)
committerDavid Zeuthen <davidz@redhat.com>
Thu, 17 Feb 2011 20:27:10 +0000 (15:27 -0500)
Signed-off-by: David Zeuthen <davidz@redhat.com>
src/polkitagent/Makefile.am
src/polkitagent/polkitagentlistener.c

index 96ffd7c8909006e961b8f96f964a9be919fe39cd..d93d871a83fbc7df8ddcd427d05a9bbecb9b15d4 100644 (file)
@@ -100,6 +100,39 @@ polkit_agent_helper_1_LDADD =                                              \
        $(top_builddir)/src/polkit/libpolkit-gobject-1.la               \
        $(NULL)
 
+if ENABLE_INTROSPECTION
+girdir = $(GIRDIR)
+gir_DATA = PolkitAgent-1.0.gir
+
+typelibsdir = $(GIRTYPELIBDIR)
+typelibs_DATA = PolkitAgent-1.0.typelib
+
+PolkitAgent-1.0.gir: libpolkit-agent-1.la $(G_IR_SCANNER) Makefile.am
+       $(G_IR_SCANNER) -v                                      \
+               --warn-all                                      \
+               --namespace PolkitAgent                         \
+               --nsversion=1.0                                 \
+               --include=Gio-2.0                               \
+               --include-uninstalled=$(top_builddir)/src/polkit/Polkit-1.0.gir \
+               --library=polkit-agent-1                        \
+               --output $@                                     \
+               --pkg=glib-2.0                                  \
+               --pkg=gobject-2.0                               \
+               --pkg=gio-2.0                                   \
+               --libtool=$(top_builddir)/libtool               \
+                -I$(top_srcdir)/src                            \
+               -D_POLKIT_COMPILATION                           \
+               -D_POLKIT_AGENT_COMPILATION                     \
+               $(libpolkit_agent_1_la_SOURCES)                 \
+               $(NULL)
+
+PolkitAgent-1.0.typelib: PolkitAgent-1.0.gir $(G_IR_COMPILER)
+       $(G_IR_COMPILER)                                        \
+               --includedir $(top_builddir)/src/polkit         \
+               $< -o $@
+
+endif # ENABLE_INTROSPECTION
+
 # polkit-agent-helper-1 need to be setuid root because it's used to
 # authenticate not only the invoking user, but possibly also root
 # and/or other users.
index 5e71ec14afbe64377e683dce4c41c5db966c123c..dbbfd631eea9f42a944939a71694311e0d14873d 100644 (file)
@@ -385,8 +385,9 @@ server_thread_func (gpointer user_data)
  *
  * Note that the calling thread is blocked until a reply is received.
  *
- * Returns: %NULL if @error is set, otherwise a registration handle
- * that can be used with polkit_agent_listener_unregister().
+ * Returns: (transfer full): %NULL if @error is set, otherwise a
+ * registration handle that can be used with
+ * polkit_agent_listener_unregister().
  */
 gpointer
 polkit_agent_listener_register (PolkitAgentListener      *listener,