Merge lp:~nick-dedekind/ubuntu-settings-components/menu.plugin into lp:~registry/ubuntu-settings-components/trunk
- menu.plugin
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Michał Sawicz |
Approved revision: | 70 |
Merged at revision: | 73 |
Proposed branch: | lp:~nick-dedekind/ubuntu-settings-components/menu.plugin |
Merge into: | lp:~registry/ubuntu-settings-components/trunk |
Diff against target: |
470 lines (+284/-36) 18 files modified
CMakeLists.txt (+2/-20) Ubuntu/CMakeLists.txt (+1/-0) Ubuntu/Settings/CMakeLists.txt (+9/-0) Ubuntu/Settings/Components/CMakeLists.txt (+3/-0) Ubuntu/Settings/Components/artwork/CMakeLists.txt (+2/-0) Ubuntu/Settings/Menus/CMakeLists.txt (+30/-0) Ubuntu/Settings/Menus/artwork/CMakeLists.txt (+2/-0) Ubuntu/Settings/Menus/plugin.cpp (+21/-0) Ubuntu/Settings/Menus/plugin.h (+30/-0) Ubuntu/Settings/Menus/pluginglobal.h (+23/-0) Ubuntu/Settings/Menus/qmldir (+3/-0) cmake/modules/QmlPlugins.cmake (+143/-0) debian/changelog (+7/-0) debian/control (+5/-13) debian/qtdeclarative5-ubuntu-settings-components-assets.install (+0/-1) debian/qtdeclarative5-ubuntu-settings-components.install (+0/-1) debian/rules (+2/-0) tests/qmltests/CMakeLists.txt (+1/-1) |
To merge this branch: | bzr merge lp:~nick-dedekind/ubuntu-settings-components/menu.plugin |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michał Sawicz (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Ubuntu Unity PS integration team | packaging | Pending | |
Registry Administrators | Pending | ||
Review via email: mp+224616@code.launchpad.net |
Commit message
Added plugin module for Ubuntu.
Description of the change
Added plugin module for Ubuntu.
Removed Architecture independent package.
The C++ plugin is empty now, but will be used by a branch with a prerequisite.
PS Jenkins bot (ps-jenkins) wrote : | # |
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:63
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:64
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:65
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:66
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Nick Dedekind (nick-dedekind) wrote : | # |
> See inline
Done.
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:68
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 71. By Nick Dedekind
-
updated packaging
Preview Diff
1 | === modified file 'CMakeLists.txt' | |||
2 | --- CMakeLists.txt 2013-10-04 10:52:27 +0000 | |||
3 | +++ CMakeLists.txt 2014-07-07 15:47:31 +0000 | |||
4 | @@ -14,15 +14,12 @@ | |||
5 | 14 | set(OUR_QT_QUICK_LIB ${Qt5Quick_LIBRARIES}) | 14 | set(OUR_QT_QUICK_LIB ${Qt5Quick_LIBRARIES}) |
6 | 15 | 15 | ||
7 | 16 | get_target_property(QMAKE_EXECUTABLE Qt5::qmake LOCATION) | 16 | get_target_property(QMAKE_EXECUTABLE Qt5::qmake LOCATION) |
9 | 17 | exec_program(${QMAKE_EXECUTABLE} ARGS "-query QT_INSTALL_QML" OUTPUT_VARIABLE QT_IMPORTS_DIR) | 17 | exec_program(${QMAKE_EXECUTABLE} ARGS "-query QT_INSTALL_QML" OUTPUT_VARIABLE QT_IMPORTS_DIR OUTPUT_STRIP_TRAILING_WHITESPACE) |
10 | 18 | file(TO_CMAKE_PATH "${QT_IMPORTS_DIR}" QT_IMPORTS_DIR) | 18 | file(TO_CMAKE_PATH "${QT_IMPORTS_DIR}" QT_IMPORTS_DIR) |
11 | 19 | 19 | ||
12 | 20 | set(OUR_QT_QUICK_INCLUDE ${Qt5Quick_INCLUDE_DIRS}) | 20 | set(OUR_QT_QUICK_INCLUDE ${Qt5Quick_INCLUDE_DIRS}) |
13 | 21 | LIST(APPEND QT_PKGCONFIG_DEPENDENCIES "Qt5Quick") | 21 | LIST(APPEND QT_PKGCONFIG_DEPENDENCIES "Qt5Quick") |
14 | 22 | 22 | ||
15 | 23 | set(UBUNTU_QML_DIR ${QT_IMPORTS_DIR}/Ubuntu) | ||
16 | 24 | set(SETTINGS_COMPONENTS_DIR ${CMAKE_INSTALL_DATADIR}/ubuntu-settings-components) | ||
17 | 25 | |||
18 | 26 | find_package(Qt5Core REQUIRED) | 23 | find_package(Qt5Core REQUIRED) |
19 | 27 | find_package(Qt5Quick REQUIRED) | 24 | find_package(Qt5Quick REQUIRED) |
20 | 28 | find_package(Qt5Widgets REQUIRED) | 25 | find_package(Qt5Widgets REQUIRED) |
21 | @@ -72,23 +69,8 @@ | |||
22 | 72 | endif() | 69 | endif() |
23 | 73 | endif() | 70 | endif() |
24 | 74 | 71 | ||
25 | 75 | # Install subdirectories | ||
26 | 76 | set(QML_DIRS | ||
27 | 77 | Ubuntu/Settings | ||
28 | 78 | ) | ||
29 | 79 | |||
30 | 80 | # Install arch-independent assets under /usr/share | ||
31 | 81 | install(DIRECTORY ${QML_DIRS} | ||
32 | 82 | DESTINATION ${SETTINGS_COMPONENTS_DIR} | ||
33 | 83 | ) | ||
34 | 84 | |||
35 | 85 | install(CODE "EXECUTE_PROCESS(COMMAND | ||
36 | 86 | mkdir -p \$ENV{DESTDIR}${UBUNTU_QML_DIR})") | ||
37 | 87 | install(CODE "EXECUTE_PROCESS(COMMAND | ||
38 | 88 | ln -sf ${CMAKE_INSTALL_PREFIX}/${SETTINGS_COMPONENTS_DIR}/Settings | ||
39 | 89 | \$ENV{DESTDIR}${UBUNTU_QML_DIR}/Settings)") | ||
40 | 90 | |||
41 | 91 | # Tests | 72 | # Tests |
42 | 92 | enable_testing() | 73 | enable_testing() |
43 | 93 | 74 | ||
44 | 75 | add_subdirectory(Ubuntu) | ||
45 | 94 | add_subdirectory(tests) | 76 | add_subdirectory(tests) |
46 | 95 | 77 | ||
47 | === added file 'Ubuntu/CMakeLists.txt' | |||
48 | --- Ubuntu/CMakeLists.txt 1970-01-01 00:00:00 +0000 | |||
49 | +++ Ubuntu/CMakeLists.txt 2014-07-07 15:47:31 +0000 | |||
50 | @@ -0,0 +1,1 @@ | |||
51 | 1 | add_subdirectory(Settings) | ||
52 | 0 | 2 | ||
53 | === added file 'Ubuntu/Settings/CMakeLists.txt' | |||
54 | --- Ubuntu/Settings/CMakeLists.txt 1970-01-01 00:00:00 +0000 | |||
55 | +++ Ubuntu/Settings/CMakeLists.txt 2014-07-07 15:47:31 +0000 | |||
56 | @@ -0,0 +1,9 @@ | |||
57 | 1 | include(QmlPlugins) | ||
58 | 2 | |||
59 | 3 | macro(add_usc_plugin PLUGIN VERSION PATH) | ||
60 | 4 | export_qmlfiles(${PLUGIN} ${PATH} DESTINATION ${QT_IMPORTS_DIR} ${ARGN}) | ||
61 | 5 | export_qmlplugin(${PLUGIN} ${VERSION} ${PATH} DESTINATION ${QT_IMPORTS_DIR} ${ARGN}) | ||
62 | 6 | endmacro() | ||
63 | 7 | |||
64 | 8 | add_subdirectory(Components) | ||
65 | 9 | add_subdirectory(Menus) | ||
66 | 0 | 10 | ||
67 | === added file 'Ubuntu/Settings/Components/CMakeLists.txt' | |||
68 | --- Ubuntu/Settings/Components/CMakeLists.txt 1970-01-01 00:00:00 +0000 | |||
69 | +++ Ubuntu/Settings/Components/CMakeLists.txt 2014-07-07 15:47:31 +0000 | |||
70 | @@ -0,0 +1,3 @@ | |||
71 | 1 | add_subdirectory(artwork) | ||
72 | 2 | |||
73 | 3 | add_usc_plugin(Ubuntu.Settings.Components 0.1 Ubuntu/Settings/Components) | ||
74 | 0 | 4 | ||
75 | === added file 'Ubuntu/Settings/Components/artwork/CMakeLists.txt' | |||
76 | --- Ubuntu/Settings/Components/artwork/CMakeLists.txt 1970-01-01 00:00:00 +0000 | |||
77 | +++ Ubuntu/Settings/Components/artwork/CMakeLists.txt 2014-07-07 15:47:31 +0000 | |||
78 | @@ -0,0 +1,2 @@ | |||
79 | 1 | # export the artwork files. | ||
80 | 2 | export_qmlfiles(Ubuntu.Settings.Components.Art Ubuntu/Settings/Components/artwork DESTINATION ${QT_IMPORTS_DIR}) | ||
81 | 0 | 3 | ||
82 | === added file 'Ubuntu/Settings/Menus/CMakeLists.txt' | |||
83 | --- Ubuntu/Settings/Menus/CMakeLists.txt 1970-01-01 00:00:00 +0000 | |||
84 | +++ Ubuntu/Settings/Menus/CMakeLists.txt 2014-07-07 15:47:31 +0000 | |||
85 | @@ -0,0 +1,30 @@ | |||
86 | 1 | project(UbuntuSettingsMenusQml) | ||
87 | 2 | |||
88 | 3 | add_subdirectory(artwork) | ||
89 | 4 | |||
90 | 5 | find_package(Qt5Core REQUIRED) | ||
91 | 6 | |||
92 | 7 | include_directories( | ||
93 | 8 | ${CMAKE_CURRENT_SOURCE_DIR} | ||
94 | 9 | ${CMAKE_CURRENT_BINARY_DIR} | ||
95 | 10 | ) | ||
96 | 11 | |||
97 | 12 | set(UbuntuSettingsMenusQml_SOURCES | ||
98 | 13 | plugin.cpp | ||
99 | 14 | ) | ||
100 | 15 | add_definitions(-DUBUNTUSETTINGSCOMPONENTS_LIBRARY) | ||
101 | 16 | |||
102 | 17 | add_library(UbuntuSettingsMenusQml MODULE | ||
103 | 18 | ${UbuntuSettingsMenusQml_SOURCES} | ||
104 | 19 | ) | ||
105 | 20 | |||
106 | 21 | target_link_libraries(UbuntuSettingsMenusQml | ||
107 | 22 | ${GLIB_LIBRARIES} | ||
108 | 23 | ${GIO_LIBRARIES} | ||
109 | 24 | ${QMENUMODEL_LDFLAGS} | ||
110 | 25 | ${LIBUPSTART_LIBRARIES} | ||
111 | 26 | ) | ||
112 | 27 | |||
113 | 28 | qt5_use_modules(UbuntuSettingsMenusQml Core Qml Quick) | ||
114 | 29 | |||
115 | 30 | add_usc_plugin(Ubuntu.Settings.Menus 0.1 Ubuntu/Settings/Menus TARGETS UbuntuSettingsMenusQml) | ||
116 | 0 | 31 | ||
117 | === added file 'Ubuntu/Settings/Menus/artwork/CMakeLists.txt' | |||
118 | --- Ubuntu/Settings/Menus/artwork/CMakeLists.txt 1970-01-01 00:00:00 +0000 | |||
119 | +++ Ubuntu/Settings/Menus/artwork/CMakeLists.txt 2014-07-07 15:47:31 +0000 | |||
120 | @@ -0,0 +1,2 @@ | |||
121 | 1 | # export the artwork files. | ||
122 | 2 | export_qmlfiles(Ubuntu.Settings.Menus.Art Ubuntu/Settings/Menus/artwork DESTINATION ${QT_IMPORTS_DIR}) | ||
123 | 0 | 3 | ||
124 | === added file 'Ubuntu/Settings/Menus/plugin.cpp' | |||
125 | --- Ubuntu/Settings/Menus/plugin.cpp 1970-01-01 00:00:00 +0000 | |||
126 | +++ Ubuntu/Settings/Menus/plugin.cpp 2014-07-07 15:47:31 +0000 | |||
127 | @@ -0,0 +1,21 @@ | |||
128 | 1 | /* | ||
129 | 2 | * Copyright (C) 2014 Canonical, Ltd. | ||
130 | 3 | * | ||
131 | 4 | * This program is free software; you can redistribute it and/or modify | ||
132 | 5 | * it under the terms of the GNU Lesser General Public License as published by | ||
133 | 6 | * the Free Software Foundation; version 3. | ||
134 | 7 | * | ||
135 | 8 | * This program is distributed in the hope that it will be useful, | ||
136 | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
137 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
138 | 11 | * GNU Lesser General Public License for more details. | ||
139 | 12 | * | ||
140 | 13 | * You should have received a copy of the GNU Lesser General Public License | ||
141 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
142 | 15 | */ | ||
143 | 16 | |||
144 | 17 | #include "plugin.h" | ||
145 | 18 | |||
146 | 19 | void UbuntuSettingsComponentsPlugin::registerTypes(const char *uri) | ||
147 | 20 | { | ||
148 | 21 | } | ||
149 | 0 | 22 | ||
150 | === added file 'Ubuntu/Settings/Menus/plugin.h' | |||
151 | --- Ubuntu/Settings/Menus/plugin.h 1970-01-01 00:00:00 +0000 | |||
152 | +++ Ubuntu/Settings/Menus/plugin.h 2014-07-07 15:47:31 +0000 | |||
153 | @@ -0,0 +1,30 @@ | |||
154 | 1 | /* | ||
155 | 2 | * Copyright (C) 2014 Canonical, Ltd. | ||
156 | 3 | * | ||
157 | 4 | * This program is free software; you can redistribute it and/or modify | ||
158 | 5 | * it under the terms of the GNU Lesser General Public License as published by | ||
159 | 6 | * the Free Software Foundation; version 3. | ||
160 | 7 | * | ||
161 | 8 | * This program is distributed in the hope that it will be useful, | ||
162 | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
163 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
164 | 11 | * GNU Lesser General Public License for more details. | ||
165 | 12 | * | ||
166 | 13 | * You should have received a copy of the GNU Lesser General Public License | ||
167 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
168 | 15 | */ | ||
169 | 16 | |||
170 | 17 | #ifndef UBUNTUSETTINGSCOMPOENNTS_PLUGIN_H | ||
171 | 18 | #define UBUNTUSETTINGSCOMPOENNTS_PLUGIN_H | ||
172 | 19 | |||
173 | 20 | #include <QtQml/QQmlExtensionPlugin> | ||
174 | 21 | |||
175 | 22 | class UbuntuSettingsComponentsPlugin : public QQmlExtensionPlugin | ||
176 | 23 | { | ||
177 | 24 | Q_OBJECT | ||
178 | 25 | Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") | ||
179 | 26 | public: | ||
180 | 27 | void registerTypes(const char *uri); | ||
181 | 28 | }; | ||
182 | 29 | |||
183 | 30 | #endif // UBUNTUSETTINGSCOMPOENNTS_PLUGIN_H | ||
184 | 0 | 31 | ||
185 | === added file 'Ubuntu/Settings/Menus/pluginglobal.h' | |||
186 | --- Ubuntu/Settings/Menus/pluginglobal.h 1970-01-01 00:00:00 +0000 | |||
187 | +++ Ubuntu/Settings/Menus/pluginglobal.h 2014-07-07 15:47:31 +0000 | |||
188 | @@ -0,0 +1,23 @@ | |||
189 | 1 | /* | ||
190 | 2 | * Copyright (C) 2014 Canonical, Ltd. | ||
191 | 3 | * | ||
192 | 4 | * This program is free software; you can redistribute it and/or modify | ||
193 | 5 | * it under the terms of the GNU Lesser General Public License as published by | ||
194 | 6 | * the Free Software Foundation; version 3. | ||
195 | 7 | * | ||
196 | 8 | * This program is distributed in the hope that it will be useful, | ||
197 | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
198 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
199 | 11 | * GNU Lesser General Public License for more details. | ||
200 | 12 | * | ||
201 | 13 | * You should have received a copy of the GNU Lesser General Public License | ||
202 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
203 | 15 | */ | ||
204 | 16 | |||
205 | 17 | #include <QtCore/QtGlobal> | ||
206 | 18 | |||
207 | 19 | #if defined(UBUNTUSETTINGSCOMPONENTS_LIBRARY) | ||
208 | 20 | # define UBUNTUSETTINGSCOMPONENTS_EXPORT Q_DECL_EXPORT | ||
209 | 21 | #else | ||
210 | 22 | # define UBUNTUSETTINGSCOMPONENTS_EXPORT Q_DECL_IMPORT | ||
211 | 23 | #endif | ||
212 | 0 | 24 | ||
213 | === modified file 'Ubuntu/Settings/Menus/qmldir' | |||
214 | --- Ubuntu/Settings/Menus/qmldir 2014-05-27 14:43:07 +0000 | |||
215 | +++ Ubuntu/Settings/Menus/qmldir 2014-07-07 15:47:31 +0000 | |||
216 | @@ -1,4 +1,6 @@ | |||
217 | 1 | module Ubuntu.Settings.Menus | 1 | module Ubuntu.Settings.Menus |
218 | 2 | plugin UbuntuSettingsMenusQml | ||
219 | 3 | typeinfo plugin.qmltypes | ||
220 | 2 | 4 | ||
221 | 3 | AccessPointMenu 0.1 AccessPointMenu.qml | 5 | AccessPointMenu 0.1 AccessPointMenu.qml |
222 | 4 | ButtonMenu 0.1 ButtonMenu.qml | 6 | ButtonMenu 0.1 ButtonMenu.qml |
223 | @@ -19,6 +21,7 @@ | |||
224 | 19 | SwitchMenu 0.1 SwitchMenu.qml | 21 | SwitchMenu 0.1 SwitchMenu.qml |
225 | 20 | TextMessageMenu 0.1 TextMessageMenu.qml | 22 | TextMessageMenu 0.1 TextMessageMenu.qml |
226 | 21 | TimeZoneMenu 0.1 TimeZoneMenu.qml | 23 | TimeZoneMenu 0.1 TimeZoneMenu.qml |
227 | 24 | TransferMenu 0.1 TransferMenu.qml | ||
228 | 22 | UserSessionMenu 0.1 UserSessionMenu.qml | 25 | UserSessionMenu 0.1 UserSessionMenu.qml |
229 | 23 | 26 | ||
230 | 24 | internal HeroMessageMenu HeroMessageMenu.qml | 27 | internal HeroMessageMenu HeroMessageMenu.qml |
231 | 25 | 28 | ||
232 | === added file 'cmake/modules/QmlPlugins.cmake' | |||
233 | --- cmake/modules/QmlPlugins.cmake 1970-01-01 00:00:00 +0000 | |||
234 | +++ cmake/modules/QmlPlugins.cmake 2014-07-07 15:47:31 +0000 | |||
235 | @@ -0,0 +1,143 @@ | |||
236 | 1 | # If you need to override the qmlplugindump binary, create the qmlplugin executable | ||
237 | 2 | # target before loading this plugin. | ||
238 | 3 | |||
239 | 4 | if(NOT TARGET qmlplugindump) | ||
240 | 5 | find_program(qmlplugindump_exe qmlplugindump) | ||
241 | 6 | |||
242 | 7 | if(NOT qmlplugindump_exe) | ||
243 | 8 | msg(FATAL_ERROR "Could not locate qmlplugindump.") | ||
244 | 9 | endif() | ||
245 | 10 | |||
246 | 11 | add_executable(qmlplugindump IMPORTED) | ||
247 | 12 | set_target_properties(qmlplugindump PROPERTIES IMPORTED_LOCATION ${qmlplugindump_exe}) | ||
248 | 13 | endif() | ||
249 | 14 | |||
250 | 15 | |||
251 | 16 | # Creates a target for copying resource files into build dir and optionally installing them. | ||
252 | 17 | # | ||
253 | 18 | # Files will be copied into ${BINARY_DIR}/${path} or ${CMAKE_CURRENT_BINARY_DIR} and installed | ||
254 | 19 | # into ${DESTINATION}/${path}. | ||
255 | 20 | # | ||
256 | 21 | # Resource file names are matched against {*.{qml,js,jpg,png,sci,svg},qmldir}. | ||
257 | 22 | # | ||
258 | 23 | # export_qmlfiles(plugin path | ||
259 | 24 | # [SEARCH_PATH path] # Path to search for resources in (defaults to ${CMAKE_CURRENT_SOURCE_DIR}) | ||
260 | 25 | # [BINARY_DIR path] | ||
261 | 26 | # [DESTINATION path] | ||
262 | 27 | # [TARGET_PREFIX string] # Will be prefixed to the target name | ||
263 | 28 | # ) | ||
264 | 29 | # | ||
265 | 30 | # Created target: | ||
266 | 31 | # - ${TARGET_PREFIX}${plugin}-qmlfiles - Copies resources into the binary dir. | ||
267 | 32 | |||
268 | 33 | macro(export_qmlfiles PLUGIN PATH) | ||
269 | 34 | set(single SEARCH_PATH BINARY_DIR DESTINATION TARGET_PREFIX) | ||
270 | 35 | cmake_parse_arguments(QMLFILES "" "${single}" "" ${ARGN}) | ||
271 | 36 | |||
272 | 37 | if(NOT QMLFILES_SEARCH_PATH) | ||
273 | 38 | set(QMLFILES_SEARCH_PATH ${CMAKE_CURRENT_SOURCE_DIR}) | ||
274 | 39 | endif() | ||
275 | 40 | |||
276 | 41 | if(QMLFILES_BINARY_DIR) | ||
277 | 42 | set(qmlfiles_dir ${QMLFILES_BINARY_DIR}/${PATH}) | ||
278 | 43 | else() | ||
279 | 44 | set(qmlfiles_dir ${CMAKE_CURRENT_BINARY_DIR}) | ||
280 | 45 | endif() | ||
281 | 46 | |||
282 | 47 | file(GLOB QMLFILES | ||
283 | 48 | ${QMLFILES_SEARCH_PATH}/*.qml | ||
284 | 49 | ${QMLFILES_SEARCH_PATH}/*.js | ||
285 | 50 | ${QMLFILES_SEARCH_PATH}/*.jpg | ||
286 | 51 | ${QMLFILES_SEARCH_PATH}/*.png | ||
287 | 52 | ${QMLFILES_SEARCH_PATH}/*.sci | ||
288 | 53 | ${QMLFILES_SEARCH_PATH}/*.svg | ||
289 | 54 | ${QMLFILES_SEARCH_PATH}/qmldir | ||
290 | 55 | ) | ||
291 | 56 | |||
292 | 57 | execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${qmlfiles_dir}) | ||
293 | 58 | |||
294 | 59 | # copy the files | ||
295 | 60 | add_custom_target(${QMLFILES_TARGET_PREFIX}${PLUGIN}-qmlfiles ALL | ||
296 | 61 | COMMAND cp ${QMLFILES} ${qmlfiles_dir} | ||
297 | 62 | DEPENDS ${QMLFILES} | ||
298 | 63 | SOURCES ${QMLFILES} | ||
299 | 64 | ) | ||
300 | 65 | |||
301 | 66 | if(QMLFILES_DESTINATION) | ||
302 | 67 | # install the qmlfiles file. | ||
303 | 68 | install(FILES ${QMLFILES} | ||
304 | 69 | DESTINATION ${QMLFILES_DESTINATION}/${PATH} | ||
305 | 70 | ) | ||
306 | 71 | endif() | ||
307 | 72 | endmacro(export_qmlfiles) | ||
308 | 73 | |||
309 | 74 | |||
310 | 75 | # Creates a target for generating the typeinfo file for a QML plugin and optionally installs it | ||
311 | 76 | # and additional targets. | ||
312 | 77 | # | ||
313 | 78 | # Files will be copied into ${BINARY_DIR}/${path} or ${CMAKE_CURRENT_BINARY_DIR} and installed | ||
314 | 79 | # into ${DESTINATION}/${path}. If you don't pass BINARY_DIR, it's assumed that current source | ||
315 | 80 | # path ends with ${path}. | ||
316 | 81 | # | ||
317 | 82 | # The generated file will be named after the last segment of the plugin name, e.g. Foo.qmltypes. | ||
318 | 83 | # | ||
319 | 84 | # export_qmlplugin(plugin version path | ||
320 | 85 | # [BINARY_DIR path] | ||
321 | 86 | # [DESTINATION path] | ||
322 | 87 | # [TARGET_PREFIX string] # Will be prefixed to the target name | ||
323 | 88 | # [ENVIRONMENT string] # Will be added to qmlplugindump's env | ||
324 | 89 | # [TARGETS target1 [target2 ...]] # Targets to depend on and install (e.g. the plugin shared object) | ||
325 | 90 | # ) | ||
326 | 91 | # | ||
327 | 92 | # Created target: | ||
328 | 93 | # - ${TARGET_PREFIX}${plugin}-qmltypes - Generates the qmltypes file in the binary dir. | ||
329 | 94 | |||
330 | 95 | macro(export_qmlplugin PLUGIN VERSION PATH) | ||
331 | 96 | set(single BINARY_DIR DESTINATION TARGET_PREFIX ENVIRONMENT) | ||
332 | 97 | set(multi TARGETS) | ||
333 | 98 | cmake_parse_arguments(QMLPLUGIN "" "${single}" "${multi}" ${ARGN}) | ||
334 | 99 | |||
335 | 100 | get_target_property(qmlplugindump_executable qmlplugindump LOCATION) | ||
336 | 101 | |||
337 | 102 | if(QMLPLUGIN_BINARY_DIR) | ||
338 | 103 | set(qmlplugin_dir ${QMLPLUGIN_BINARY_DIR}/${PATH}) | ||
339 | 104 | else() | ||
340 | 105 | # Find import path to point qmlplugindump at | ||
341 | 106 | string(REGEX REPLACE "${PATH}$" "" QMLPLUGIN_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}") | ||
342 | 107 | set(qmlplugin_dir ${CMAKE_CURRENT_BINARY_DIR}) | ||
343 | 108 | endif() | ||
344 | 109 | |||
345 | 110 | # Find the last segment of the plugin name to use as qmltypes basename | ||
346 | 111 | string(REGEX MATCH "[^.]+$" plugin_suffix ${PLUGIN}) | ||
347 | 112 | set(target_prefix ${QMLPLUGIN_TARGET_PREFIX}${PLUGIN}) | ||
348 | 113 | set(qmltypes_path ${qmlplugin_dir}/${plugin_suffix}.qmltypes) | ||
349 | 114 | |||
350 | 115 | # Only generate typeinfo if not cross compiling | ||
351 | 116 | if(NOT CMAKE_CROSSCOMPILING) | ||
352 | 117 | add_custom_target(${target_prefix}-qmltypes ALL | ||
353 | 118 | COMMAND env ${QMLPLUGIN_ENVIRONMENT} ${qmlplugindump_executable} -notrelocatable | ||
354 | 119 | ${PLUGIN} ${VERSION} ${QMLPLUGIN_BINARY_DIR} > ${qmltypes_path} | ||
355 | 120 | ) | ||
356 | 121 | add_dependencies(${target_prefix}-qmltypes ${target_prefix}-qmlfiles ${QMLPLUGIN_TARGETS}) | ||
357 | 122 | |||
358 | 123 | if (QMLPLUGIN_DESTINATION) | ||
359 | 124 | # Install the typeinfo file | ||
360 | 125 | install(FILES ${qmltypes_path} | ||
361 | 126 | DESTINATION ${QMLPLUGIN_DESTINATION}/${PATH} | ||
362 | 127 | ) | ||
363 | 128 | endif() | ||
364 | 129 | endif() | ||
365 | 130 | |||
366 | 131 | set_target_properties(${QMLPLUGIN_TARGETS} PROPERTIES | ||
367 | 132 | ARCHIVE_OUTPUT_DIRECTORY ${qmlplugin_dir} | ||
368 | 133 | LIBRARY_OUTPUT_DIRECTORY ${qmlplugin_dir} | ||
369 | 134 | RUNTIME_OUTPUT_DIRECTORY ${qmlplugin_dir} | ||
370 | 135 | ) | ||
371 | 136 | |||
372 | 137 | if (QMLPLUGIN_DESTINATION) | ||
373 | 138 | # Install additional targets | ||
374 | 139 | install(TARGETS ${QMLPLUGIN_TARGETS} | ||
375 | 140 | DESTINATION ${QMLPLUGIN_DESTINATION}/${PATH} | ||
376 | 141 | ) | ||
377 | 142 | endif() | ||
378 | 143 | endmacro() | ||
379 | 0 | 144 | ||
380 | === modified file 'debian/changelog' | |||
381 | --- debian/changelog 2014-07-03 14:00:55 +0000 | |||
382 | +++ debian/changelog 2014-07-07 15:47:31 +0000 | |||
383 | @@ -1,3 +1,10 @@ | |||
384 | 1 | ubuntu-settings-components (0.3-0ubuntu1) UNRELEASED; urgency=medium | ||
385 | 2 | |||
386 | 3 | [ Nick Dedekind ] | ||
387 | 4 | * Added plugin module for Ubuntu.Settings.Menus | ||
388 | 5 | |||
389 | 6 | -- Nicholas Dedekind <nicholas.dedekind@gmail.com> Mon, 07 Jul 2014 16:43:16 +0100 | ||
390 | 7 | |||
391 | 1 | ubuntu-settings-components (0.2+14.10.20140701.2-0ubuntu2) utopic; urgency=medium | 8 | ubuntu-settings-components (0.2+14.10.20140701.2-0ubuntu2) utopic; urgency=medium |
392 | 2 | 9 | ||
393 | 3 | * debian/control: | 10 | * debian/control: |
394 | 4 | 11 | ||
395 | === modified file 'debian/control' | |||
396 | --- debian/control 2014-07-03 14:00:55 +0000 | |||
397 | +++ debian/control 2014-07-07 15:47:31 +0000 | |||
398 | @@ -5,9 +5,9 @@ | |||
399 | 5 | Build-Depends: cmake, | 5 | Build-Depends: cmake, |
400 | 6 | debhelper (>= 9), | 6 | debhelper (>= 9), |
401 | 7 | pkg-config, | 7 | pkg-config, |
402 | 8 | qml-module-qtquick-layouts, | ||
403 | 8 | qt5-default, | 9 | qt5-default, |
404 | 9 | qtbase5-private-dev, | 10 | qtbase5-private-dev, |
405 | 10 | qml-module-qtquick-layouts, | ||
406 | 11 | qtdeclarative5-dev, | 11 | qtdeclarative5-dev, |
407 | 12 | qtdeclarative5-dev-tools, | 12 | qtdeclarative5-dev-tools, |
408 | 13 | qtdeclarative5-qtquick2-plugin, | 13 | qtdeclarative5-qtquick2-plugin, |
409 | @@ -26,19 +26,11 @@ | |||
410 | 26 | Multi-Arch: same | 26 | Multi-Arch: same |
411 | 27 | Pre-Depends: dpkg (>= 1.15.6~) | 27 | Pre-Depends: dpkg (>= 1.15.6~) |
412 | 28 | Depends: qml-module-qtquick-layouts, | 28 | Depends: qml-module-qtquick-layouts, |
413 | 29 | qtdeclarative5-ubuntu-settings-components-assets (= ${source:Version}), | ||
414 | 30 | qtdeclarative5-ubuntu-ui-toolkit-plugin (>= 0.1.48) | qtdeclarative5-ubuntu-ui-toolkit-plugin-gles (>= 0.1.48), | 29 | qtdeclarative5-ubuntu-ui-toolkit-plugin (>= 0.1.48) | qtdeclarative5-ubuntu-ui-toolkit-plugin-gles (>= 0.1.48), |
415 | 31 | suru-icon-theme, | 30 | suru-icon-theme, |
416 | 32 | ${misc:Depends}, | 31 | ${misc:Depends}, |
417 | 33 | ${shlibs:Depends}, | 32 | ${shlibs:Depends}, |
429 | 34 | Description: Ubuntu Settings Components | 33 | Breaks: qtdeclarative5-ubuntu-settings-components-assets (<< 0.3), |
430 | 35 | This package provides a link from /usr/lib to /usr/share, so QML can | 34 | Replaces: qtdeclarative5-ubuntu-settings-components-assets (<< 0.3), |
431 | 36 | find its assets. | 35 | Description: Ubuntu Settings Components |
432 | 37 | 36 | Ubuntu settings components for Unity | |
422 | 38 | Package: qtdeclarative5-ubuntu-settings-components-assets | ||
423 | 39 | Architecture: all | ||
424 | 40 | Multi-Arch: foreign | ||
425 | 41 | Depends: ${misc:Depends}, | ||
426 | 42 | ${shlibs:Depends}, | ||
427 | 43 | Description: Ubuntu Settings Components | ||
428 | 44 | Architecture-independent QML and images files for Ubuntu Settings. | ||
433 | 45 | \ No newline at end of file | 37 | \ No newline at end of file |
434 | 46 | 38 | ||
435 | === removed file 'debian/qtdeclarative5-ubuntu-settings-components-assets.install' | |||
436 | --- debian/qtdeclarative5-ubuntu-settings-components-assets.install 2013-08-09 16:15:15 +0000 | |||
437 | +++ debian/qtdeclarative5-ubuntu-settings-components-assets.install 1970-01-01 00:00:00 +0000 | |||
438 | @@ -1,1 +0,0 @@ | |||
439 | 1 | usr/share/ | ||
440 | 2 | 0 | ||
441 | === removed file 'debian/qtdeclarative5-ubuntu-settings-components.install' | |||
442 | --- debian/qtdeclarative5-ubuntu-settings-components.install 2013-08-09 16:15:15 +0000 | |||
443 | +++ debian/qtdeclarative5-ubuntu-settings-components.install 1970-01-01 00:00:00 +0000 | |||
444 | @@ -1,1 +0,0 @@ | |||
445 | 1 | usr/lib/ | ||
446 | 2 | 0 | ||
447 | === modified file 'debian/rules' | |||
448 | --- debian/rules 2013-10-04 16:26:57 +0000 | |||
449 | +++ debian/rules 2014-07-07 15:47:31 +0000 | |||
450 | @@ -1,6 +1,8 @@ | |||
451 | 1 | #!/usr/bin/make -f | 1 | #!/usr/bin/make -f |
452 | 2 | # -*- makefile -*- | 2 | # -*- makefile -*- |
453 | 3 | 3 | ||
454 | 4 | # Uncomment this to turn on verbose mode. | ||
455 | 5 | #export DH_VERBOSE=1 | ||
456 | 4 | export DPKG_GENSYMBOLS_CHECK_LEVEL=4 | 6 | export DPKG_GENSYMBOLS_CHECK_LEVEL=4 |
457 | 5 | 7 | ||
458 | 6 | %: | 8 | %: |
459 | 7 | 9 | ||
460 | === modified file 'tests/qmltests/CMakeLists.txt' | |||
461 | --- tests/qmltests/CMakeLists.txt 2014-06-30 15:36:05 +0000 | |||
462 | +++ tests/qmltests/CMakeLists.txt 2014-07-07 15:47:31 +0000 | |||
463 | @@ -6,7 +6,7 @@ | |||
464 | 6 | set(qmltest_DEFAULT_PROPERTIES "") | 6 | set(qmltest_DEFAULT_PROPERTIES "") |
465 | 7 | 7 | ||
466 | 8 | set(qmltest_DEFAULT_IMPORT_PATHS | 8 | set(qmltest_DEFAULT_IMPORT_PATHS |
468 | 9 | ${CMAKE_SOURCE_DIR} | 9 | ${CMAKE_BINARY_DIR} |
469 | 10 | ${CMAKE_BINARY_DIR}/tests/utils/modules | 10 | ${CMAKE_BINARY_DIR}/tests/utils/modules |
470 | 11 | ) | 11 | ) |
471 | 12 | 12 |
FAILED: Continuous integration, rev:62 jenkins. qa.ubuntu. com/job/ ubuntu- settings- components- ci/45/ jenkins. qa.ubuntu. com/job/ ubuntu- settings- components- qmltests- utopic/ 4/console jenkins. qa.ubuntu. com/job/ ubuntu- settings- components- utopic- amd64-ci/ 7/console jenkins. qa.ubuntu. com/job/ ubuntu- settings- components- utopic- armhf-ci/ 7/console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/ubuntu- settings- components- ci/45/rebuild
http://