[gnome-boxes] No need for separate header for build constants



commit 0f0099f6ac18ba451175945f7edb2404a0e0cf19
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Oct 27 00:31:11 2011 +0300

    No need for separate header for build constants
    
    Just make use of AM_CPPFLAGS.

 src/Makefile.am |    6 +-----
 src/config.vapi |    1 -
 2 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index b6af7de..1b0c68a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,6 +3,7 @@ NULL =
 AM_CPPFLAGS =						\
 	-include config.h				\
 	-DGNOMELOCALEDIR=\""$(datadir)/locale"\"	\
+	-DDATADIR=\""$(datadir)"\"			\
 	$(DISABLE_DEPRECATED)				\
 	$(NULL)
 
@@ -45,14 +46,9 @@ gnome_boxes_SOURCES =				\
 	wizard.vala				\
 	$(NULL)
 
-BUILT_SOURCES = dirs.h
 gnome_boxes_LDADD = $(BOXES_LIBS)
 gnome_boxes_CFLAGS = $(BOXES_CFLAGS)
 
-DISTCLEANFILES = dirs.h
-dirs.h: Makefile
-	$(AM_V_GEN)echo '#define DATADIR "$(datadir)"' >$@
-
 MAINTAINERCLEANFILES =				\
 	$(gnome_boxes_SOURCES:.vala=.c)		\
 	*.stamp					\
diff --git a/src/config.vapi b/src/config.vapi
index c44431b..a4f1dc4 100644
--- a/src/config.vapi
+++ b/src/config.vapi
@@ -6,6 +6,5 @@ namespace Config {
         public const string PACKAGE_TARNAME;
         public const string GETTEXT_PACKAGE;
         public const string GNOMELOCALEDIR;
-        [CCode (cheader_filename = "dirs.h")]
         public const string DATADIR;
 }



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