[gnome-todo] build: Fix gresource build problems when builddir != srcdir



commit c73d7649ae3d34af39c2011c102aabe6affa87b7
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Tue Jun 14 11:26:04 2016 +0800

    build: Fix gresource build problems when builddir != srcdir
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767632

 src/Makefile.am |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 428226d..4786131 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -126,11 +126,11 @@ nobase_gnome_todo_include_HEADERS = \
 #
 # Resources
 #
-resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(top_srcdir)/data --generate-dependencies 
$(top_srcdir)/data/todo.gresource.xml)
+resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(top_srcdir)/data 
--sourcedir=$(top_builddir)/data --generate-dependencies $(top_srcdir)/data/todo.gresource.xml)
 gtd-resources.c: $(top_srcdir)/data/todo.gresource.xml $(resource_files)
-       $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/data --generate-source 
--c-name todo $(top_srcdir)/data/todo.gresource.xml
+       $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/data 
--sourcedir=$(top_builddir)/data --generate-source --c-name todo $(top_srcdir)/data/todo.gresource.xml
 gtd-resources.h: $(top_srcdir)/data/todo.gresource.xml $(resource_files)
-       $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/data --generate-header 
--c-name todo $(top_srcdir)/data/todo.gresource.xml
+       $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/data 
--sourcedir=$(top_builddir)/data --generate-header --c-name todo $(top_srcdir)/data/todo.gresource.xml
 
 #
 # Enums


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