[emerillon] Add Vala bindings
- From: Łukasz Jernaś <ljernas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [emerillon] Add Vala bindings
- Date: Sun, 25 Apr 2010 16:50:57 +0000 (UTC)
commit b38a00d2f1733a06db07fcff269a24d78fe35a34
Author: Simon Wenner <simon wenner ch>
Date: Sat Apr 24 21:07:11 2010 +0200
Add Vala bindings
Disabled by default.
Signed-off-by: Å?ukasz JernaÅ? <deejay1 srem org>
Makefile.am | 2 +-
bindings/Makefile.am | 8 ++++++++
bindings/vala/Makefile.am | 11 +++++++++++
bindings/vala/emerillon.deps | 3 +++
bindings/vala/emerillon.vapi | 23 +++++++++++++++++++++++
configure.ac | 11 +++++++++++
6 files changed, 57 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 24d3ccc..c9a540d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = cut-paste emerillon data plugins po
+SUBDIRS = cut-paste emerillon data plugins po bindings
EXTRA_DIST = \
autogen.sh \
diff --git a/bindings/Makefile.am b/bindings/Makefile.am
new file mode 100644
index 0000000..c30b243
--- /dev/null
+++ b/bindings/Makefile.am
@@ -0,0 +1,8 @@
+SUBDIRS =
+
+if ENABLE_VALA
+ SUBDIRS+=vala
+endif
+
+DIST_SUBDIRS= vala
+
diff --git a/bindings/vala/Makefile.am b/bindings/vala/Makefile.am
new file mode 100644
index 0000000..7b210cd
--- /dev/null
+++ b/bindings/vala/Makefile.am
@@ -0,0 +1,11 @@
+vapidir = $(datadir)/vala/vapi
+
+dist_vapi_DATA = \
+ emerillon.vapi \
+ emerillon.deps \
+ $(NULL)
+
+EXTRA_DIST = \
+ emerillon.vapi \
+ emerillon.deps
+
diff --git a/bindings/vala/emerillon.deps b/bindings/vala/emerillon.deps
new file mode 100644
index 0000000..1f6c7f6
--- /dev/null
+++ b/bindings/vala/emerillon.deps
@@ -0,0 +1,3 @@
+gtk+-2.0
+champlain-0.4
+
diff --git a/bindings/vala/emerillon.vapi b/bindings/vala/emerillon.vapi
new file mode 100644
index 0000000..f0d9db7
--- /dev/null
+++ b/bindings/vala/emerillon.vapi
@@ -0,0 +1,23 @@
+/* emerillon.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "Emerillon", lower_case_cprefix = "emerillon_")]
+namespace Emerillon {
+ [CCode (cheader_filename = "emerillon/emerillon.h")]
+ public class Sidebar : Gtk.VBox {
+ public void add_page (string title, Gtk.Widget main_widget);
+ public int get_n_pages ();
+ public bool is_empty ();
+ public void remove_page (Gtk.Widget main_widget);
+ public void set_page (Gtk.Widget main_widget);
+ }
+ [CCode (cheader_filename = "emerillon/emerillon.h")]
+ public class Window : Gtk.Window {
+ public static unowned Emerillon.Window dup_default ();
+ public unowned Champlain.View get_map_view ();
+ public unowned Gtk.Widget get_sidebar ();
+ public unowned Gtk.Widget get_statusbar ();
+ public unowned Gtk.Widget get_toolbar ();
+ public unowned Gtk.UIManager get_ui_manager ();
+ }
+}
+
diff --git a/configure.ac b/configure.ac
index 0dd1a0a..a604a24 100644
--- a/configure.ac
+++ b/configure.ac
@@ -137,6 +137,15 @@ if test "x$enable_deprecations" = "xyes"; then
AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
fi
+#######################################
+# Vala bindings (disabled by default) #
+#######################################
+AC_ARG_ENABLE(vala,
+ AC_HELP_STRING([--enable-vala],[Install Vala bindings]),
+ enable_vala=$enableval, enable_vala=no )
+
+AM_CONDITIONAL(ENABLE_VALA, test "x$enable_vala" = "xyes")
+
################
# Output files #
################
@@ -148,6 +157,8 @@ data/Makefile
data/emerillon.pc
data/emerillon.desktop.in
plugins/Makefile
+bindings/Makefile
+bindings/vala/Makefile
po/Makefile.in
])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]