Re: libchamplain vala binding, libchamplainAPI and other things


I managed to make a emerillion plugin written partially in vala
working today and I quickly hacked up a gpx viewer. There is only one
C file responsible to communicate with ethos and emerillion and pass
values to vala written core.

The attached file includes the sources for gpx-viewer plugin,
gpx-parser, champlain.vapi.

Additionally to this includes the changes in

The last thing that needs to be added into is:

I don't know what the right way is to add support for vala but this is
what was working for me.

gpx-viewer is only quickly created hack to show it can be done (in
vala) and not nearly completed. If interest I will work on this plugin
(and others) to make it usable but for a week I have other things I
need to do (study for exam).


Attachment: gpx-viewer.tar.gz
Description: GNU Zip compressed data

diff --git a/plugins/ b/plugins/
index f07b880..9d98f5d 100755
--- a/plugins/
+++ b/plugins/
@@ -61,6 +61,23 @@ map_position_libmap_position_la_SOURCES = \
 map_position_libmap_position_la_LIBADD = \
+# GpxViewer plugin
+plugins_LTLIBRARIES += \
+	gpx-viewer/
+plugins_in_files += \
+	gpx-viewer/
+gpx_viewer_libgpx_viewer_la_SOURCES = \
+	gpx-viewer/gpx-parser.vala \
+	gpx-viewer/gpx-viewer-main.vala \
+	gpx-viewer/gpx-viewer.c
+gpx_viewer_libgpx_viewer_la_VALAFLAGS = --vapidir=gpx-viewer --pkg gtk+-2.0 --pkg libxml-2.0 --pkg champlain-0.4 -H gpx-viewer/gpx-parser.h
+gpx_viewer_libgpx_viewer_la_LIBADD = \
 # Search plugin
 plugins_LTLIBRARIES += \

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