[cheese/three-point-oh: 2/12] Cleaned up build to use autotools' native valac support
- From: Yuvaraj Pandian <yuvipanda src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/three-point-oh: 2/12] Cleaned up build to use autotools' native valac support
- Date: Thu, 27 May 2010 10:19:45 +0000 (UTC)
commit b94b0812190e617dbf0f7ca96226adf1f9e43220
Author: Yuvaraj Pandian T <yuvipanda gmail com>
Date: Thu May 27 15:23:26 2010 +0530
Cleaned up build to use autotools' native valac support
configure.ac | 2 ++
valasrc/Makefile.am | 14 ++------------
2 files changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8badc20..19c19a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,6 +7,8 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AM_CONFIG_HEADER(cheese-config.h)
AM_MAINTAINER_MODE
+AM_PROG_VALAC([0.8.0])
+
dnl make sure we keep ACLOCAL_FLAGS around for maintainer builds to work
AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
diff --git a/valasrc/Makefile.am b/valasrc/Makefile.am
index ac5280c..40a9a0f 100644
--- a/valasrc/Makefile.am
+++ b/valasrc/Makefile.am
@@ -1,4 +1,4 @@
-VALA_CFLAGS = \
+VALAFLAGS = \
--thread \
--vapidir vapi \
--pkg config \
@@ -15,20 +15,10 @@ AM_CPPFLAGS = \
$(CHEESE_CFLAGS) \
-include $(CONFIG_HEADER)
-BUILT_SOURCES = cheese.vala.stamp
-
bin_PROGRAMS = cheese
-cheese_VALASOURCES = \
- cheese.vala
-
cheese_SOURCES = \
- $(cheese_VALASOURCES:.vala=.c) \
- $(cheese_VALASOURCES:.vala=.h)
-
-cheese.vala.stamp: $(cheese_VALASOURCES)
- $(VALAC) -C $(VALA_CFLAGS) $^
- touch $@
+ cheese.vala
cheese_LDADD = \
$(CHEESE_LIBS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]