Re: [Vala] How to access valac version during runtime?



Thank you!

m.

2012/9/6 Eric Gregory <eric yorba org>:
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]