[gnome-initial-setup] Automatically generate the gresource dependencies
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] Automatically generate the gresource dependencies
- Date: Fri, 25 Jan 2013 05:37:10 +0000 (UTC)
commit c41cf89a7eb7df16699ed5d97f7b31ecc2f98729
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Jan 24 18:36:49 2013 -0500
Automatically generate the gresource dependencies
.gitignore | 3 ++-
gnome-initial-setup/Makefile.am | 20 +++++---------------
2 files changed, 7 insertions(+), 16 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 507fcbc..a042751 100644
--- a/.gitignore
+++ b/.gitignore
@@ -43,7 +43,8 @@ gnome-initial-setup-*.tar.gz
gnome-initial-setup-*.tar.bz2
gnome-initial-setup-*.tar.xz
-gnome-initial-setup/setup_resources.c
+gnome-initial-setup/gis-resources.c
+gnome-initial-setup/gis-resources.h
gnome-initial-setup/gnome-initial-setup
gnome-initial-setup/gnome-initial-setup-copy-worker
diff --git a/gnome-initial-setup/Makefile.am b/gnome-initial-setup/Makefile.am
index 81d1f4a..27ccaf7 100644
--- a/gnome-initial-setup/Makefile.am
+++ b/gnome-initial-setup/Makefile.am
@@ -13,22 +13,12 @@ libexec_PROGRAMS = gnome-initial-setup gnome-initial-setup-copy-worker
BUILT_SOURCES =
-UI_FILES = \
- pages/welcome/welcome-image.png \
- pages/welcome/gis-welcome-page.ui \
- pages/language/gis-language-page.ui \
- pages/keyboard/gis-keyboard-page.ui \
- pages/keyboard/gnome-region-panel-input-chooser.ui \
- pages/eulas/gis-eula-page.ui \
- pages/network/gis-network-page.ui \
- pages/account/gis-account-page.ui \
- pages/location/gis-location-page.ui \
- pages/goa/gis-goa-page.ui \
- pages/summary/gis-summary-page.ui
-
-setup_resources.c: setup.gresource.xml $(UI_FILES)
+resource_files = $(shell glib-compile-resources --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/setup.gresource.xml)
+gis-resources.c: setup.gresource.xml $(resource_files)
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source $<
-BUILT_SOURCES += setup_resources.c
+gis-resources.h: setup.gresource.xml $(resource_files)
+ $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-header $<
+BUILT_SOURCES += gis-resources.c gis-resources.h
gnome_initial_setup_SOURCES = \
gnome-initial-setup.c gnome-initial-setup.h \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]