Merge lp:~dobey/indicator-sound/fix-gsettings into lp:indicator-sound

Proposed by dobey
Status: Merged
Approved by: dobey
Approved revision: 546
Merged at revision: 547
Proposed branch: lp:~dobey/indicator-sound/fix-gsettings
Merge into: lp:indicator-sound
Diff against target: 46 lines (+0/-42)
1 file modified
cmake/UseGSettings.cmake (+0/-42)
To merge this branch: bzr merge lp:~dobey/indicator-sound/fix-gsettings
Reviewer Review Type Date Requested Status
Pete Woods (community) Approve
unity-api-1-bot continuous-integration Needs Fixing
Review via email: mp+316637@code.launchpad.net

Commit message

Remove the local gsettings cmake module which we don't need/use.

To post a comment you must log in.
Revision history for this message
unity-api-1-bot (unity-api-1-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Pete Woods (pete-woods) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed file 'cmake/UseGSettings.cmake'
2--- cmake/UseGSettings.cmake 2013-08-16 04:33:21 +0000
3+++ cmake/UseGSettings.cmake 1970-01-01 00:00:00 +0000
4@@ -1,42 +0,0 @@
5-# GSettings.cmake, CMake macros written for Marlin, feel free to re-use them.
6-
7-option (GSETTINGS_LOCALINSTALL "Install GSettings Schemas locally instead of to the GLib prefix" OFF)
8-
9-option (GSETTINGS_COMPILE "Compile GSettings Schemas after installation" OFF)
10-
11-if(GSETTINGS_LOCALINSTALL)
12- message(STATUS "GSettings schemas will be installed locally.")
13-endif()
14-
15-if(GSETTINGS_COMPILE)
16- message(STATUS "GSettings shemas will be compiled.")
17-endif()
18-
19-macro(add_schema SCHEMA_NAME)
20-
21- set(PKG_CONFIG_EXECUTABLE pkg-config)
22- # Have an option to not install the schema into where GLib is
23- if (GSETTINGS_LOCALINSTALL)
24- SET (GSETTINGS_DIR "${CMAKE_INSTALL_PREFIX}/share/glib-2.0/schemas/")
25- else (GSETTINGS_LOCALINSTALL)
26- execute_process (COMMAND ${PKG_CONFIG_EXECUTABLE} glib-2.0 --variable prefix OUTPUT_VARIABLE _glib_prefix OUTPUT_STRIP_TRAILING_WHITESPACE)
27- SET (GSETTINGS_DIR "${_glib_prefix}/share/glib-2.0/schemas/")
28- endif (GSETTINGS_LOCALINSTALL)
29-
30- # Run the validator and error if it fails
31- execute_process (COMMAND ${PKG_CONFIG_EXECUTABLE} gio-2.0 --variable glib_compile_schemas OUTPUT_VARIABLE _glib_comple_schemas OUTPUT_STRIP_TRAILING_WHITESPACE)
32- execute_process (COMMAND ${_glib_comple_schemas} --dry-run --schema-file=${CMAKE_CURRENT_SOURCE_DIR}/${SCHEMA_NAME} ERROR_VARIABLE _schemas_invalid OUTPUT_STRIP_TRAILING_WHITESPACE)
33-
34- if (_schemas_invalid)
35- message (SEND_ERROR "Schema validation error: ${_schemas_invalid}")
36- endif (_schemas_invalid)
37-
38- # Actually install and recomple schemas
39- message (STATUS "GSettings schemas will be installed into ${GSETTINGS_DIR}")
40- install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/${SCHEMA_NAME} DESTINATION ${GSETTINGS_DIR} OPTIONAL)
41-
42- if (GSETTINGS_COMPILE)
43- install (CODE "message (STATUS \"Compiling GSettings schemas\")")
44- install (CODE "execute_process (COMMAND ${_glib_comple_schemas} ${GSETTINGS_DIR})")
45- endif ()
46-endmacro()

Subscribers

People subscribed via source and target branches