Re: [Vala] How to access valac version during runtime?
- From: Eric Gregory <eric yorba org>
- To: "marcin saepia net" <marcin saepia net>
- Cc: vala-list gnome org
- Subject: Re: [Vala] How to access valac version during runtime?
- Date: Wed, 5 Sep 2012 15:14:08 -0700
On Wed, Sep 5, 2012 at 3:03 PM, marcin saepia net <marcin saepia net> wrote:
If not, could you recommend any tested solution for adding it to
config.h during running ./configure?
We've been using -d for this purpose. As long as your needs aren't too
complex it's very straightforward -- in Vala, you just declare the symbol
as an extern in the global namespace.
For an example look at how we passed through "_VERSION", "_INSTALL_PREFIX",
etc. to Geary:
http://git.yorba.org/cgit.cgi/geary/tree/src/client/geary-application.vala
- Eric
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]