Hi, 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 makefile.am.diff includes the changes in plugins/Makefile.am. The last thing that needs to be added into configure.ac is: AM_PROG_VALAC([0.7.0]) 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). regards, Tomaž
Attachment:
gpx-viewer.tar.gz
Description: GNU Zip compressed data
diff --git a/plugins/Makefile.am b/plugins/Makefile.am index f07b880..9d98f5d 100755 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -61,6 +61,23 @@ map_position_libmap_position_la_SOURCES = \ map_position_libmap_position_la_LIBADD = \ $(EMERILLON_LIBS) +# GpxViewer plugin +plugins_LTLIBRARIES += \ + gpx-viewer/libgpx-viewer.la + +plugins_in_files += \ + gpx-viewer/gpx-viewer.emerillon-plugin.in + +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 = \ + $(EMERILLON_LIBS) + # Search plugin if ENABLE_SEARCH plugins_LTLIBRARIES += \