[latexila] CMake option: COMPILE_SCHEMA, for GSettings



commit 0da9db3e64d511bd688c90e5848c8f62a94189e7
Author: SÃbastien Wilmet <swilmet src gnome org>
Date:   Sun Aug 14 00:13:24 2011 +0200

    CMake option: COMPILE_SCHEMA, for GSettings
    
    This option is enabled by default. For normal users it's fine. But for
    packages, it's generally better to run glib-compile-schemas externally
    (or avoiding compiling the schemas two times).

 CMakeLists.txt      |    1 +
 INSTALL             |   23 ++++++++++++++++++++++-
 data/CMakeLists.txt |    5 ++++-
 3 files changed, 27 insertions(+), 2 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fc13c6c..e22f2ca 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,6 +12,7 @@ set (DATA_DIR "${CMAKE_INSTALL_PREFIX}/share/latexila"
 set (BUILD_VALA ON CACHE BOOL "Generate the C code from Vala files")
 set (WITH_GNOME OFF CACHE BOOL
 	"Use gsettings-desktop-schemas for a better integration with GNOME")
+set (COMPILE_SCHEMA ON CACHE BOOL "Compile the GSettings schema")
 
 # Native Language Support
 set (GETTEXT_PACKAGE "latexila")
diff --git a/INSTALL b/INSTALL
index 07d5bca..f04fe3c 100644
--- a/INSTALL
+++ b/INSTALL
@@ -42,17 +42,38 @@ $ xargs rm < install_manifest.txt
 Configuration
 =============
 
-* Change the install directory (by default /usr/local/)
+* Change the install directory
+
+	Default value: /usr/local/
+
 	Run cmake with this option:
 	-DCMAKE_INSTALL_PREFIX=/path/to/install/directory/
 
+
 * Generate the C code from the Vala files
+
+	Default value: OFF if tarball or 'releases-*' branch. ON otherwise.
+
 	Run cmake with this option:
 	-DBUILD_VALA=ON
 
+
 * Better integration with GNOME, depends on gsettings-desktop-schemas
+
+	Default value: OFF
+
 	Run cmake with this option:
 	-DWITH_GNOME=ON
 
 	The only use of this is for knowing the system fixed width font (most
 	probably "Monospace 10").
+
+
+* GSettings schema compilation (with glib-compile-schemas)
+
+	Default value: ON
+
+	To disable this option, run cmake with:
+	-DCOMPILE_SCHEMA=OFF
+
+	Useful for packages.
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index 75fff25..92ce7a2 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -1,6 +1,9 @@
 install (FILES "org.gnome.latexila.gschema.xml"
 	DESTINATION "share/glib-2.0/schemas")
-install (SCRIPT "compile-schemas.cmake")
+
+if (COMPILE_SCHEMA)
+	install (SCRIPT "compile-schemas.cmake")
+endif ()
 
 install (FILES "latexhelp.html" DESTINATION ${DATA_DIR})
 install (FILES "completion.xml" DESTINATION ${DATA_DIR})



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