Re: [Vala] Predefined preprocessor directives, e.g. VALAC_VERSION?



Am Montag, den 21.12.2009, 14:39 -0800 schrieb Darren Warner:
I've just been looking at that. The following seems to work:

(in configure.ac)
AM_PROG_VALAC([0.7.6])
VALAC_VERSION=$am__vala_version
AC_SUBST(VALAC_VERSION)

(in Makefile.am)
AM_VALAFLAGS=\
      --define="VALAC_VERSION= VALAC_VERSION@"

I don't like using $am__vala_version, but I don't think AM_PROG_VALAC 
emits anything else. Is there a better way of doing this?

Yes, try

VALAC_VERSION="`$PKG_CONFIG --modversion vala-1.0`"

:M:





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