aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-12-08 13:06:06 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-12-08 13:06:06 +0100
commit0846900d37f203d6307117eba5a417cac609530e (patch)
tree59cb0fad6df46439c0c040c2dbeb37c6dce76796 /cmake
parent95ab717cd3ba19378e5b9874dc4c751418999829 (diff)
downloadayatana-indicator-datetime-0846900d37f203d6307117eba5a417cac609530e.tar.gz
ayatana-indicator-datetime-0846900d37f203d6307117eba5a417cac609530e.tar.bz2
ayatana-indicator-datetime-0846900d37f203d6307117eba5a417cac609530e.zip
cmake/UseGSettings.cmake: Drop file. Available via cmake-extras.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/UseGSettings.cmake23
1 files changed, 0 insertions, 23 deletions
diff --git a/cmake/UseGSettings.cmake b/cmake/UseGSettings.cmake
deleted file mode 100644
index 3b61523..0000000
--- a/cmake/UseGSettings.cmake
+++ /dev/null
@@ -1,23 +0,0 @@
-# GSettings.cmake, CMake macros written for Marlin, feel free to re-use them.
-
-macro(add_schema SCHEMA_NAME)
-
- set(PKG_CONFIG_EXECUTABLE pkg-config)
- set(GSETTINGS_DIR "${CMAKE_INSTALL_FULL_DATAROOTDIR}/glib-2.0/schemas")
-
- # Run the validator and error if it fails
- execute_process (COMMAND ${PKG_CONFIG_EXECUTABLE} gio-2.0 --variable glib_compile_schemas OUTPUT_VARIABLE _glib_compile_schemas OUTPUT_STRIP_TRAILING_WHITESPACE)
- execute_process (COMMAND ${_glib_compile_schemas} --dry-run --schema-file=${SCHEMA_NAME} ERROR_VARIABLE _schemas_invalid OUTPUT_STRIP_TRAILING_WHITESPACE)
-
- if (_schemas_invalid)
- message (SEND_ERROR "Schema validation error: ${_schemas_invalid}")
- endif (_schemas_invalid)
-
- # Actually install and recomple schemas
- message (STATUS "${GSETTINGS_DIR} is the GSettings install dir")
- install (FILES ${SCHEMA_NAME} DESTINATION ${GSETTINGS_DIR} OPTIONAL)
-
- install (CODE "message (STATUS \"Compiling GSettings schemas\")")
- install (CODE "execute_process (COMMAND ${_glib_compile_schemas} ${GSETTINGS_DIR})")
-endmacro()
-