automake: Vala Support
1
1 8.17 Vala Support
1 =================
1
1 Automake provides initial support for Vala
1 (<http://www.vala-project.org/>). This requires valac version 0.7.0 or
1 later, and currently requires the user to use GNU ‘make’.
1
1 foo_SOURCES = foo.vala bar.vala zardoc.c
1
1 Any ‘.vala’ file listed in a ‘_SOURCES’ variable will be compiled
1 into C code by the Vala compiler. The generated ‘.c’ files are
1 distributed. The end user does not need to have a Vala compiler
1 installed.
1
1 Automake ships with an Autoconf macro called ‘AM_PROG_VALAC’ that
1 will locate the Vala compiler and optionally check its version number.
1
1 -- Macro: AM_PROG_VALAC ([MINIMUM-VERSION], [ACTION-IF-FOUND],
1 [ACTION-IF-NOT-FOUND]) Search for a Vala compiler in ‘PATH’. If it
1 is found, the variable ‘VALAC’ is set to point to it (see below for
1 more details). This macro takes three optional arguments. The
1 first argument, if present, is the minimum version of the Vala
1 compiler required to compile this package. If a compiler is found
1 and satisfies MINIMUM-VERSION, then ACTION-IF-FOUND is run (this
1 defaults to do nothing). Otherwise, ACTION-IF-NOT-FOUND is run.
1 If ACTION-IF-NOT-FOUND is not specified, the default value is to
1 print a warning in case no compiler is found, or if a too-old
1 version of the compiler is found.
1
1 There are a few variables that are used when compiling Vala sources:
1
1 ‘VALAC’
1 Absolute path to the Vala compiler, or simply ‘valac’ if no
1 suitable compiler Vala could be found at configure runtime.
1
1 ‘VALAFLAGS’
1 Additional arguments for the Vala compiler.
1
1 ‘AM_VALAFLAGS’
1 The maintainer’s variant of ‘VALAFLAGS’.
1
1 lib_LTLIBRARIES = libfoo.la
1 libfoo_la_SOURCES = foo.vala
1
1 Renamed Objects::) to produce different C files from one Vala source
1 file.
1