diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-10-21 21:18:54 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-10-21 21:18:54 +0200 |
commit | fd3eb1cca71b46ba5fc30f75ea22fd71df376ef0 (patch) | |
tree | f1d1370929f1a24ec5ef3af40c0d7155806c78bd /cmake | |
parent | 11d6a5f834c725d6dad54224f4f06397e7546a1f (diff) | |
parent | 633a426ebb462e9fe0bafa01ac876b6132db0a8e (diff) | |
download | ayatana-indicator-notifications-fd3eb1cca71b46ba5fc30f75ea22fd71df376ef0.tar.gz ayatana-indicator-notifications-fd3eb1cca71b46ba5fc30f75ea22fd71df376ef0.tar.bz2 ayatana-indicator-notifications-fd3eb1cca71b46ba5fc30f75ea22fd71df376ef0.zip |
Merge branch 'tari01-pr/use-native-cmake-gsettings-module'
Attributes GH PR #21: https://github.com/AyatanaIndicators/ayatana-indicator-notifications/pull/21
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/UseGSettings.cmake | 23 |
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() - |