[gnome-shell-extensions] build system: factor out setting schema generation
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] build system: factor out setting schema generation
- Date: Fri, 10 Feb 2012 14:22:40 +0000 (UTC)
commit 9ebfd1f49579601731c149653707480f0d6520e4
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Wed Feb 8 15:05:44 2012 +0100
build system: factor out setting schema generation
Introduce a common settings.mk file, which is included in extensions
that need GSettings, to ensure that conventions are respected, and
necessary fixes can be applied from one place.
extensions/alternate-tab/Makefile.am | 12 +-----------
extensions/auto-move-windows/Makefile.am | 11 +----------
extensions/dock/Makefile.am | 11 +----------
extensions/native-window-placement/Makefile.am | 11 +----------
extensions/user-theme/Makefile.am | 11 +----------
settings.mk | 10 ++++++++++
6 files changed, 15 insertions(+), 51 deletions(-)
---
diff --git a/extensions/alternate-tab/Makefile.am b/extensions/alternate-tab/Makefile.am
index bade7cd..b93aade 100644
--- a/extensions/alternate-tab/Makefile.am
+++ b/extensions/alternate-tab/Makefile.am
@@ -1,14 +1,4 @@
EXTENSION_ID = alternate-tab
include ../../extension.mk
-
-gschemas_in = $(gschemabase).alternate-tab.gschema.xml.in
-
- INTLTOOL_XML_NOMERGE_RULE@
-
-gsettings_SCHEMAS = $(gschemas_in:.xml.in=.xml)
-
- GSETTINGS_RULES@
-
-CLEANFILES += $(gschemas_in:.xml.in=.valid) $(gsettings_SCHEMAS)
-EXTRA_DIST += $(gschemas_in)
+include ../../settings.mk
diff --git a/extensions/auto-move-windows/Makefile.am b/extensions/auto-move-windows/Makefile.am
index be6e7bc..6908846 100644
--- a/extensions/auto-move-windows/Makefile.am
+++ b/extensions/auto-move-windows/Makefile.am
@@ -1,14 +1,5 @@
EXTENSION_ID = auto-move-windows
include ../../extension.mk
+include ../../settings.mk
-gschemas_in = $(gschemabase).auto-move-windows.gschema.xml.in
-
- INTLTOOL_XML_NOMERGE_RULE@
-
-gsettings_SCHEMAS = $(gschemas_in:.xml.in=.xml)
-
- GSETTINGS_RULES@
-
-CLEANFILES += $(gschemas_in:.xml.in=.valid) $(gsettings_SCHEMAS)
-EXTRA_DIST += $(gschemas_in)
diff --git a/extensions/dock/Makefile.am b/extensions/dock/Makefile.am
index 827f81c..3025b64 100644
--- a/extensions/dock/Makefile.am
+++ b/extensions/dock/Makefile.am
@@ -1,14 +1,5 @@
EXTENSION_ID = dock
include ../../extension.mk
+include ../../settings.mk
-gschemas_in = $(gschemabase).dock.gschema.xml.in
-
- INTLTOOL_XML_NOMERGE_RULE@
-
-gsettings_SCHEMAS = $(gschemas_in:.xml.in=.xml)
-
- GSETTINGS_RULES@
-
-CLEANFILES += $(gschemas_in:.xml.in=.valid) $(gsettings_SCHEMAS)
-EXTRA_DIST += $(gschemas_in)
diff --git a/extensions/native-window-placement/Makefile.am b/extensions/native-window-placement/Makefile.am
index 0d6c4bc..93694a3 100644
--- a/extensions/native-window-placement/Makefile.am
+++ b/extensions/native-window-placement/Makefile.am
@@ -1,14 +1,5 @@
EXTENSION_ID = native-window-placement
include ../../extension.mk
+include ../../settings.mk
-gschemas_in = $(gschemabase).native-window-placement.gschema.xml.in
-
- INTLTOOL_XML_NOMERGE_RULE@
-
-gsettings_SCHEMAS = $(gschemas_in:.xml.in=.xml)
-
- GSETTINGS_RULES@
-
-CLEANFILES += $(gschemas_in:.xml.in=.valid) $(gsettings_SCHEMAS)
-EXTRA_DIST += $(gschemas_in)
diff --git a/extensions/user-theme/Makefile.am b/extensions/user-theme/Makefile.am
index 300701a..5124912 100644
--- a/extensions/user-theme/Makefile.am
+++ b/extensions/user-theme/Makefile.am
@@ -1,14 +1,5 @@
EXTENSION_ID = user-theme
include ../../extension.mk
+include ../../settings.mk
-gschemas_in = $(gschemabase).user-theme.gschema.xml.in
-
- INTLTOOL_XML_NOMERGE_RULE@
-
-gsettings_SCHEMAS = $(gschemas_in:.xml.in=.xml)
-
- GSETTINGS_RULES@
-
-CLEANFILES += $(gschemas_in:.xml.in=.valid) $(gsettings_SCHEMAS)
-EXTRA_DIST += $(gschemas_in)
diff --git a/settings.mk b/settings.mk
new file mode 100644
index 0000000..8fc01fd
--- /dev/null
+++ b/settings.mk
@@ -0,0 +1,10 @@
+gschemas_in = $(gschemaname).gschema.xml.in
+
+ INTLTOOL_XML_NOMERGE_RULE@
+
+gsettings_SCHEMAS = $(gschemas_in:.xml.in=.xml)
+
+ GSETTINGS_RULES@
+
+CLEANFILES += $(gschemas_in:.xml.in=.valid) $(gsettings_SCHEMAS)
+EXTRA_DIST += $(gschemas_in)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]