diff options
author | Jens Georg <mail@jensge.org> | 2012-02-23 14:02:44 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2012-08-18 18:01:21 +0200 |
commit | 6ea8f8848d245863deb6b40c8efea8f9fed37f83 (patch) | |
tree | 03a0aec69ece9594e119294f140188a0619b0982 /vala | |
parent | eb92ee178c4e08010e9b2c5042d190b278c81d03 (diff) | |
download | gssdp-6ea8f8848d245863deb6b40c8efea8f9fed37f83.tar.gz |
Create vapi file from introspection
The skipping of the error-domain in .metadata and the -custom.vala file
are necessary due to https://bugzilla.gnome.org/show_bug.cgi?id=670673.
They can be removed once that is fixed
https://bugzilla.gnome.org/show_bug.cgi?id=675355
Diffstat (limited to 'vala')
-rw-r--r-- | vala/GSSDP-1.0.metadata | 3 | ||||
-rw-r--r-- | vala/Makefile.am | 20 | ||||
-rw-r--r-- | vala/gssdp-1.0-custom.vala | 9 | ||||
-rw-r--r-- | vala/gssdp-1.0.deps | 1 |
4 files changed, 33 insertions, 0 deletions
diff --git a/vala/GSSDP-1.0.metadata b/vala/GSSDP-1.0.metadata new file mode 100644 index 0000000..d765a74 --- /dev/null +++ b/vala/GSSDP-1.0.metadata @@ -0,0 +1,3 @@ +GSSDP cheader_filename="libgssdp/gssdp.h" +error_quark skip +Error skip diff --git a/vala/Makefile.am b/vala/Makefile.am new file mode 100644 index 0000000..c089e52 --- /dev/null +++ b/vala/Makefile.am @@ -0,0 +1,20 @@ +if HAVE_INTROSPECTION +if HAVE_VAPIGEN +gssdp-1.0.vapi: gssdp-1.0.stamp + @true + +gssdp-1.0.stamp: $(top_builddir)/libgssdp/GSSDP-1.0.gir \ + $(srcdir)/GSSDP-1.0.metadata \ + $(srcdir)/gssdp-1.0-custom.vala + $(AM_V_GEN)$(VAPIGEN) --metadatadir=$(srcdir) \ + --library=gssdp-1.0 --pkg=gio-2.0 \ + $(top_builddir)/libgssdp/GSSDP-1.0.gir \ + $(srcdir)/gssdp-1.0-custom.vala && \ + echo timestmap > $(@F) + +vapidir = $(datadir)/vala/vapi +vapi_DATA = gssdp-1.0.vapi $(srcdir)/gssdp-1.0.deps +CLEANFILES = gssdp-1.0.vapi gssdp-1.0.stamp +EXTRA_DIST = GSSDP-1.0.metadata gssdp-1.0-custom.vala +endif +endif diff --git a/vala/gssdp-1.0-custom.vala b/vala/gssdp-1.0-custom.vala new file mode 100644 index 0000000..04cd619 --- /dev/null +++ b/vala/gssdp-1.0-custom.vala @@ -0,0 +1,9 @@ +// Work-around gnome bug 670673; remove once fixed +namespace GSSDP { +[CCode (cheader_filename = "libgssdp/gssdp.h", cprefix = "GSSDP_ERROR_")] + public errordomain Error { + NO_IP_ADDRESS, + FAILED; + public static GLib.Quark quark (); + } +} diff --git a/vala/gssdp-1.0.deps b/vala/gssdp-1.0.deps new file mode 100644 index 0000000..cd10dfd --- /dev/null +++ b/vala/gssdp-1.0.deps @@ -0,0 +1 @@ +gio-2.0 |