and use Config.VERSION when creating the Osso context.
autoheader
automake-1.10 --copy --add-missing --foreign
./configure --enable-maintainer-mode
+./autovapi.sh
--- /dev/null
+#!/bin/sh
+#
+# Generate config.vapi from config.h
+#
+(
+echo '// config.vapi. Generated from config.h by autovapi.sh.'
+echo '[CCode (cheader_filename = "config.h")]'
+echo 'namespace Config {'
+sed -ne 's/#define \(HAVE_[A-Z_]*\) \([0-9]*\)$/\t\[CCode (cname = \"\1\"\)]\n\tconst bool \1;/p' -e 's/#define \([A-Z_]*\) \([0-9]*\)$/\t\[CCode (cname = \"\1\"\)]\n\tconst int \1;/p' -e 's/#define \([A-Z_]*\) \(\".*\"\)$/\t\[CCode (cname = \"\1\"\)]\n\tconst string \1;/p' < config.h
+echo '}'
+) > vapi/config.vapi
Gtk.init (ref args);
Gdk.threads_init ();
- var osso_context = new Osso.Context ("org.maemo.cinaest", "0.0.1", true, null);
+ var osso_context = new Osso.Context ("org.maemo.cinaest", Config.VERSION, true, null);
if (osso_context == null) {
return Osso.Status.ERROR;
}