add gconf schemas
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Sun, 2 May 2010 19:01:57 +0000 (21:01 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Sun, 2 May 2010 19:01:57 +0000 (21:01 +0200)
.gitignore
Makefile.am
configure.ac
data/Makefile.am [new file with mode: 0644]
data/azimuth.schemas.in [new file with mode: 0644]

index 8f01d72..90455c7 100644 (file)
@@ -39,6 +39,8 @@ status
 src/azimuth
 src/cpazimuth.desktop
 
+data/azimuth.schemas
+
 debian/azimuth.postinst.debhelper
 debian/azimuth.postrm.debhelper
 debian/azimuth.substvars
index af437a6..9768a98 100644 (file)
@@ -1 +1 @@
-SUBDIRS = src
+SUBDIRS = src data
index d51c6c4..79bc1e9 100644 (file)
@@ -32,6 +32,8 @@ AC_SUBST(HILDON_CFLAGS)
 PKG_CHECK_MODULES(GCONF, gconf-2.0 >= 2.6)
 AC_SUBST(GCONF_LIBS)
 AC_SUBST(GCONF_CFLAGS)
+AM_GCONF_SOURCE_2
+AC_PATH_PROG(GCONFTOOL, gconftool-2)
 
 PKG_CHECK_MODULES(DBUSGLIB, dbus-glib-1 >= 0.23.4)
 AC_SUBST(DBUSGLIB_LIBS)
@@ -101,4 +103,6 @@ AC_OUTPUT([
        Makefile
        src/Makefile
        src/cpazimuth.desktop
+       data/Makefile
+       data/azimuth.schemas
 ])
diff --git a/data/Makefile.am b/data/Makefile.am
new file mode 100644 (file)
index 0000000..32551f0
--- /dev/null
@@ -0,0 +1,21 @@
+schemasdir      = $(GCONF_SCHEMA_FILE_DIR)
+schemas_in_files = azimuth.schemas.in
+schemas_DATA    = $(schemas_in_files:.schemas.in=.schemas)
+
+if GCONF_SCHEMAS_INSTALL
+install-data-local:
+       if test -z "$(DESTDIR)" ; then \
+         for p in $(schemas_DATA) ; do \
+           GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $$p ; \
+         done \
+       fi
+else
+install-data-local:
+endif
+
+EXTRA_DIST = \
+  $(schemas_in_files) \
+  $(schemas_DATA)
+
+DISTCLEANFILES = \
+  $(schemas_DATA)
diff --git a/data/azimuth.schemas.in b/data/azimuth.schemas.in
new file mode 100644 (file)
index 0000000..8b471cf
--- /dev/null
@@ -0,0 +1,20 @@
+<gconfschemafile>
+  <schemalist>
+
+    <schema>
+      <key>/schemas/apps/azimuth/enabled</key>
+      <applyto>/apps/azimuth/enabled</applyto>
+      <owner>azimuth</owner>
+      <type>bool</type>
+      <default>false</default>
+      <locale name="C">
+        <short>Enable publishing offline contacts</short>
+        <long>
+        Publish position when GPS is running.
+        </long>
+      </locale>
+    </schema>
+
+
+  </schemalist>
+</gconfschemafile>