Re: [Vala] M4 Macros for vala+valadoc when automake integration is unavailable
- From: Yu Feng <rainwoodman gmail com>
- To: Ali Sabil <ali sabil gmail com>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] M4 Macros for vala+valadoc when automake integration is unavailable
- Date: Mon, 27 Apr 2009 10:43:07 -0400
On Sun, 2009-04-26 at 10:09 +0200, Ali Sabil wrote:
That looks great. But you probably want to check how I autotooled
libcore. The implementation I have is based on the vala-support
script by Mathias Hasselmann, and doesn't have the limitation you
Good! I am looking to move to your solution. Does the script work with
 bzr branch lp:libcore
On Sun, Apr 26, 2009 at 5:34 AM, Yu Feng <rainwoodman gmail com> wrote:
I would like to share these m4 macros for vala/valadoc with you. They
helped me to keep the 'Makefile.am's neat and clean. The approach is
copied from intltool, by substituting rules with @XXXX@ substitutions in
vala.m4 provides helpers for invoking valac. This file is modified from
Mathias's original vala.m4.
valadoc.m4 provides helpers for invoking valadoc and adds a
--enable-valadoc parameter to the configure script.
Drop them into a toplevel sub-directory in your project
Add three lines to configure.ac
AC_SUBST(ACLOCAL_AMFLAGS, "-I autotools")
# also modify aclocal in autogen.sh if applicable
More information are in the m4 files. An example for using both together
is given in valadoc.m4.
The limitation is that only one 'ultimate' target(ie, one .la file) per
source code directory can be built with the rules.
Vala-list mailing list
Vala-list gnome org
] [Thread Prev