Commit 41bbcfb9 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

Post-release version bump --version support always include config.h to

2006-10-25  Jürg Billeter  <j@bitron.ch>

	* configure.ac: Post-release version bump
	* compiler/valacompiler.vala: --version support
	* compiler/Makefile.am: always include config.h to keep compatibility
	* vapi/config.vala: add binding for config.h
	* vapi/Makefile.am: update

svn path=/trunk/; revision=149
parent 1983f9f3
2006-10-25 Jürg Billeter <j@bitron.ch>
* configure.ac: Post-release version bump
* compiler/valacompiler.vala: --version support
* compiler/Makefile.am: always include config.h to keep compatibility
* vapi/config.vala: add binding for config.h
* vapi/Makefile.am: update
2006-10-25 Jürg Billeter <j@bitron.ch>
* vala/valasourcefile.vala: support dependencies on constants
......
......@@ -18,9 +18,11 @@ valac_SOURCES = \
$(NULL)
valac.vala.stamp: $(filter %.vala,$(valac_SOURCES))
$(VALAC) --vapidir $(srcdir)/../vapi --vapidir ../ccode --pkg ccode --vapidir ../vala --pkg vala $^
$(VALAC) --vapidir $(srcdir)/../vapi --vapidir ../ccode --pkg ccode --vapidir ../vala --pkg vala --pkg config $^
touch $@
valac_CPPFLAGS = -include config.h
valac_LDADD = \
$(GLIB_LIBS) \
../vala/libvala.la \
......
......@@ -224,6 +224,11 @@ class Vala.Compiler {
return 1;
}
if (version) {
stdout.printf ("Vala %s\n", Config.PACKAGE_VERSION);
return 0;
}
if (sources == null) {
stderr.printf ("No source file specified.\n");
return 1;
......
AC_INIT([vala], [0.0.4], [j@bitron.ch], [vala])
AC_INIT([vala], [0.0.5], [j@bitron.ch], [vala])
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE([dist-bzip2])
......
......@@ -17,3 +17,7 @@ dist_vapi_DATA = \
pango.vala \
vala-1.0.vala \
$(NULL)
dist_noinst_DATA = \
config.vala \
$(NULL)
/* config.vala
*
* Copyright (C) 2006 Jürg Billeter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Author:
* Jürg Billeter <j@bitron.ch>
*/
[CCode (cprefix = "", cheader_filename = "config.h")]
namespace Config {
public const string PACKAGE_VERSION;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment