Merge lp:~pete-woods/unity-scope-click/cmake-extras-compatibility into lp:unity-scope-click

Proposed by Pete Woods
Status: Superseded
Proposed branch: lp:~pete-woods/unity-scope-click/cmake-extras-compatibility
Merge into: lp:unity-scope-click
Prerequisite: lp:~ci-train-bot/unity-scope-click/unity-scope-click-ubuntu-zesty-2281
Diff against target: 82 lines (+3/-45)
3 files modified
CMakeLists.txt (+2/-2)
cmake/UseGSettings.cmake (+0/-42)
debian/control (+1/-1)
To merge this branch: bzr merge lp:~pete-woods/unity-scope-click/cmake-extras-compatibility
Reviewer Review Type Date Requested Status
Michi Henning Pending
unity-api-1-bot continuous-integration Pending
Review via email: mp+312918@code.launchpad.net

This proposal supersedes a proposal from 2016-12-07.

This proposal has been superseded by a proposal from 2016-12-09.

Commit message

Compatibility with unversioned cmake-extras modules

Description of the change

Compatibility with unversioned cmake-extras modules

To post a comment you must log in.
Revision history for this message
unity-api-1-bot (unity-api-1-bot) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
Michi Henning (michihenning) wrote : Posted in a previous version of this proposal

Looks good.

review: Approve

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2016-12-09 15:02:16 +0000
3+++ CMakeLists.txt 2016-12-09 15:02:16 +0000
4@@ -19,7 +19,7 @@
5
6 find_program(INTLTOOL_MERGE intltool-merge)
7
8-include(UseGSettings)
9+find_package (GSettings)
10 find_package (GMock)
11 find_package (PkgConfig REQUIRED)
12
13@@ -57,7 +57,7 @@
14 add_subdirectory(po)
15 add_subdirectory(tools)
16
17-include(EnableCoverageReport)
18+find_package(CoverageReport)
19 ENABLE_COVERAGE_REPORT(TARGETS ${SCOPE_LIB_NAME} ${APPS_LIB_UNVERSIONED}
20 TESTS libclick-scope-tests apps-scope-tests init-departments
21 FILTER /usr/include ${CMAKE_BINARY_DIR}/*
22
23=== removed directory 'cmake'
24=== removed file 'cmake/UseGSettings.cmake'
25--- cmake/UseGSettings.cmake 2014-07-04 13:10:05 +0000
26+++ cmake/UseGSettings.cmake 1970-01-01 00:00:00 +0000
27@@ -1,42 +0,0 @@
28-# GSettings.cmake, CMake macros written for Marlin, feel free to re-use them.
29-
30-option (GSETTINGS_LOCALINSTALL "Install GSettings Schemas locally instead of to the GLib prefix" ${LOCAL_INSTALL})
31-
32-option (GSETTINGS_COMPILE "Compile GSettings Schemas after installation" ${GSETTINGS_LOCALINSTALL})
33-
34-if(GSETTINGS_LOCALINSTALL)
35- message(STATUS "GSettings schemas will be installed locally.")
36-endif()
37-
38-if(GSETTINGS_COMPILE)
39- message(STATUS "GSettings shemas will be compiled.")
40-endif()
41-
42-macro(add_schema SCHEMA_NAME)
43-
44- set(PKG_CONFIG_EXECUTABLE pkg-config)
45- # Have an option to not install the schema into where GLib is
46- if (GSETTINGS_LOCALINSTALL)
47- SET (GSETTINGS_DIR "${CMAKE_INSTALL_PREFIX}/share/glib-2.0/schemas/")
48- else (GSETTINGS_LOCALINSTALL)
49- execute_process (COMMAND ${PKG_CONFIG_EXECUTABLE} glib-2.0 --variable prefix OUTPUT_VARIABLE _glib_prefix OUTPUT_STRIP_TRAILING_WHITESPACE)
50- SET (GSETTINGS_DIR "${_glib_prefix}/share/glib-2.0/schemas/")
51- endif (GSETTINGS_LOCALINSTALL)
52-
53- # Run the validator and error if it fails
54- execute_process (COMMAND ${PKG_CONFIG_EXECUTABLE} gio-2.0 --variable glib_compile_schemas OUTPUT_VARIABLE _glib_comple_schemas OUTPUT_STRIP_TRAILING_WHITESPACE)
55- execute_process (COMMAND ${_glib_comple_schemas} --dry-run --schema-file=${CMAKE_CURRENT_SOURCE_DIR}/${SCHEMA_NAME} ERROR_VARIABLE _schemas_invalid OUTPUT_STRIP_TRAILING_WHITESPACE)
56-
57- if (_schemas_invalid)
58- message (SEND_ERROR "Schema validation error: ${_schemas_invalid}")
59- endif (_schemas_invalid)
60-
61- # Actually install and recomple schemas
62- message (STATUS "GSettings schemas will be installed into ${GSETTINGS_DIR}")
63- install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/${SCHEMA_NAME} DESTINATION ${GSETTINGS_DIR} OPTIONAL)
64-
65- if (GSETTINGS_COMPILE)
66- install (CODE "message (STATUS \"Compiling GSettings schemas\")")
67- install (CODE "execute_process (COMMAND ${_glib_comple_schemas} ${GSETTINGS_DIR})")
68- endif ()
69-endmacro()
70
71=== modified file 'debian/control'
72--- debian/control 2016-10-24 21:28:14 +0000
73+++ debian/control 2016-12-09 15:02:16 +0000
74@@ -2,7 +2,7 @@
75 Section: x11
76 Priority: optional
77 Build-Depends: cmake (>= 2.8.10),
78- cmake-extras,
79+ cmake-extras (>= 0.10),
80 dbus-x11,
81 debhelper (>= 9),
82 dh-python,

Subscribers

People subscribed via source and target branches

to all changes: