Merge lp:~saviq/unity8/cmake-plugin-cleanup into lp:unity8

Proposed by Michał Sawicz
Status: Merged
Approved by: Nick Dedekind
Approved revision: 877
Merged at revision: 906
Proposed branch: lp:~saviq/unity8/cmake-plugin-cleanup
Merge into: lp:unity8
Diff against target: 1027 lines (+243/-288)
56 files modified
cmake/modules/QmlPlugins.cmake (+124/-49)
plugins/AccountsService/CMakeLists.txt (+1/-4)
plugins/AccountsService/qmldir (+1/-1)
plugins/CMakeLists.txt (+13/-0)
plugins/Dash/CMakeLists.txt (+1/-6)
plugins/Dash/qmldir (+1/-1)
plugins/HudClient/CMakeLists.txt (+1/-6)
plugins/HudClient/qmldir (+1/-1)
plugins/LightDM/CMakeLists.txt (+1/-6)
plugins/LightDM/qmldir (+1/-1)
plugins/Powerd/CMakeLists.txt (+1/-3)
plugins/Powerd/qmldir (+1/-1)
plugins/SessionBroadcast/CMakeLists.txt (+1/-4)
plugins/SessionBroadcast/qmldir (+1/-1)
plugins/Ubuntu/DownloadDaemonListener/CMakeLists.txt (+1/-6)
plugins/Ubuntu/DownloadDaemonListener/qmldir (+1/-1)
plugins/Ubuntu/Gestures/CMakeLists.txt (+1/-6)
plugins/Ubuntu/Gestures/qmldir (+1/-1)
plugins/Unity/Indicators/CMakeLists.txt (+4/-7)
plugins/Unity/Indicators/qml/CMakeLists.txt (+0/-5)
plugins/Unity/Indicators/qml/qmldir (+1/-1)
plugins/Unity/Launcher/CMakeLists.txt (+1/-3)
plugins/Unity/Launcher/qmldir (+1/-1)
plugins/Utils/CMakeLists.txt (+1/-3)
plugins/Utils/qmldir (+1/-1)
tests/mocks/AccountsService/CMakeLists.txt (+1/-12)
tests/mocks/AccountsService/qmldir (+1/-0)
tests/mocks/CMakeLists.txt (+30/-0)
tests/mocks/GSettings.1.0/CMakeLists.txt (+1/-4)
tests/mocks/GSettings.1.0/qmldir (+1/-0)
tests/mocks/HudClient/CMakeLists.txt (+1/-4)
tests/mocks/HudClient/qmldir (+2/-0)
tests/mocks/LightDM/CMakeLists.txt (+5/-12)
tests/mocks/LightDM/qmldir (+1/-0)
tests/mocks/Powerd/CMakeLists.txt (+1/-12)
tests/mocks/Powerd/qmldir (+1/-0)
tests/mocks/QMenuModel/CMakeLists.txt (+2/-12)
tests/mocks/QMenuModel/qmldir (+1/-0)
tests/mocks/QtMultimedia/CMakeLists.txt (+1/-12)
tests/mocks/QtMultimedia/qmldir (+1/-0)
tests/mocks/Ubuntu/DownloadDaemonListener/CMakeLists.txt (+1/-9)
tests/mocks/Ubuntu/DownloadDaemonListener/qmldir (+1/-0)
tests/mocks/Ubuntu/Thumbnailer/CMakeLists.txt (+1/-7)
tests/mocks/Ubuntu/Thumbnailer/qmldir (+2/-0)
tests/mocks/Unity/Application/CMakeLists.txt (+10/-36)
tests/mocks/Unity/Application/qmldir (+2/-0)
tests/mocks/Unity/CMakeLists.txt (+1/-12)
tests/mocks/Unity/Indicators/CMakeLists.txt (+1/-14)
tests/mocks/Unity/Indicators/qmldir (+1/-0)
tests/mocks/Unity/Launcher/CMakeLists.txt (+1/-5)
tests/mocks/Unity/Launcher/qmldir (+1/-0)
tests/mocks/Unity/Notifications/CMakeLists.txt (+1/-11)
tests/mocks/Unity/Notifications/qmldir (+1/-0)
tests/mocks/Unity/qmldir (+1/-0)
tests/utils/modules/Unity/Test/CMakeLists.txt (+4/-7)
tests/utils/modules/Unity/Test/qmldir (+2/-0)
To merge this branch: bzr merge lp:~saviq/unity8/cmake-plugin-cleanup
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Nick Dedekind (community) Approve
Albert Astals Cid (community) Needs Fixing
Review via email: mp+218171@code.launchpad.net

Commit message

Refactor export_qmlfiles and export_qmlplugins to be more generic and clean up installed mocks.

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
No.

 * Did you perform an exploratory manual test run of your code change and any related functionality?
Yes.

 * Did you make sure that your branch does not contain spurious tags?
Yes.

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

 * If you changed the UI, has there been a design review?
N/A

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

Text conflict in plugins/Dash/CMakeLists.txt
Text conflict in plugins/Dash/qmldir

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Nick Dedekind (nick-dedekind) wrote :

I'm getting a "Need to use QMirServerApplication" message when running locally on desktop, and unity8 continuously restarts.

Revision history for this message
Nick Dedekind (nick-dedekind) :
review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Michał Sawicz (saviq) wrote :

Fixed.

Revision history for this message
Nick Dedekind (nick-dedekind) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Yes. works on local desktop install & phone package install

 * Did CI run pass? If not, please explain why.
Unrelated failure

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michał Sawicz (saviq) wrote :

\o/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== renamed file 'cmake/modules/Plugins.cmake' => 'cmake/modules/QmlPlugins.cmake'
--- cmake/modules/Plugins.cmake 2014-01-29 18:16:53 +0000
+++ cmake/modules/QmlPlugins.cmake 2014-05-15 15:00:34 +0000
@@ -1,68 +1,143 @@
1find_program(qmlplugindump_exe qmlplugindump)1# If you need to override the qmlplugindump binary, create the qmlplugin executable
22# target before loading this plugin.
3if(NOT qmlplugindump_exe)3
4 msg(FATAL_ERROR "Could not locate qmlplugindump.")4if(NOT TARGET qmlplugindump)
5 find_program(qmlplugindump_exe qmlplugindump)
6
7 if(NOT qmlplugindump_exe)
8 msg(FATAL_ERROR "Could not locate qmlplugindump.")
9 endif()
10
11 add_executable(qmlplugindump IMPORTED)
12 set_target_properties(qmlplugindump PROPERTIES IMPORTED_LOCATION ${qmlplugindump_exe})
5endif()13endif()
614
7# Creates target for copying and installing qmlfiles15
8#16# Creates a target for copying resource files into build dir and optionally installing them.
9# export_qmlfiles(plugin sub_path)17#
10#18# Files will be copied into ${BINARY_DIR}/${path} or ${CMAKE_CURRENT_BINARY_DIR} and installed
11#19# into ${DESTINATION}/${path}.
12# Target to be created:20#
13# - plugin-qmlfiles - Copies the qml files (*.qml, *.js, qmldir) into the shadow build folder.21# Resource file names are matched against {*.{qml,js,jpg,png,sci,svg},qmldir}.
1422#
15macro(export_qmlfiles PLUGIN PLUGIN_SUBPATH)23# export_qmlfiles(plugin path
24# [SEARCH_PATH path] # Path to search for resources in (defaults to ${CMAKE_CURRENT_SOURCE_DIR})
25# [BINARY_DIR path]
26# [DESTINATION path]
27# [TARGET_PREFIX string] # Will be prefixed to the target name
28# )
29#
30# Created target:
31# - ${TARGET_PREFIX}${plugin}-qmlfiles - Copies resources into the binary dir.
32
33macro(export_qmlfiles PLUGIN PATH)
34 set(single SEARCH_PATH BINARY_DIR DESTINATION TARGET_PREFIX)
35 cmake_parse_arguments(QMLFILES "" "${single}" "" ${ARGN})
36
37 if(NOT QMLFILES_SEARCH_PATH)
38 set(QMLFILES_SEARCH_PATH ${CMAKE_CURRENT_SOURCE_DIR})
39 endif()
40
41 if(QMLFILES_BINARY_DIR)
42 set(qmlfiles_dir ${QMLFILES_BINARY_DIR}/${PATH})
43 else()
44 set(qmlfiles_dir ${CMAKE_CURRENT_BINARY_DIR})
45 endif()
1646
17 file(GLOB QMLFILES47 file(GLOB QMLFILES
18 *.qml48 ${QMLFILES_SEARCH_PATH}/*.qml
19 *.js49 ${QMLFILES_SEARCH_PATH}/*.js
20 qmldir50 ${QMLFILES_SEARCH_PATH}/*.jpg
51 ${QMLFILES_SEARCH_PATH}/*.png
52 ${QMLFILES_SEARCH_PATH}/*.sci
53 ${QMLFILES_SEARCH_PATH}/*.svg
54 ${QMLFILES_SEARCH_PATH}/qmldir
21 )55 )
2256
23 # copy the qmldir file57 execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${qmlfiles_dir})
24 add_custom_target(${PLUGIN}-qmlfiles ALL58
25 COMMAND cp ${QMLFILES} ${CMAKE_BINARY_DIR}/plugins/${PLUGIN_SUBPATH}59 # copy the files
60 add_custom_target(${QMLFILES_TARGET_PREFIX}${PLUGIN}-qmlfiles ALL
61 COMMAND cp ${QMLFILES} ${qmlfiles_dir}
26 DEPENDS ${QMLFILES}62 DEPENDS ${QMLFILES}
27 SOURCES ${QMLFILES}63 SOURCES ${QMLFILES}
28 )64 )
2965
30 # install the qmlfiles file.66 if(QMLFILES_DESTINATION)
31 install(FILES ${QMLFILES}67 # install the qmlfiles file.
32 DESTINATION ${SHELL_INSTALL_QML}/${PLUGIN_SUBPATH}68 install(FILES ${QMLFILES}
33 )69 DESTINATION ${QMLFILES_DESTINATION}/${PATH}
70 )
71 endif()
34endmacro(export_qmlfiles)72endmacro(export_qmlfiles)
3573
3674
37# Creates target for generating the qmltypes file for a plugin and installs plugin files75# Creates a target for generating the typeinfo file for a QML plugin and optionally installs it
38#76# and additional targets.
39# export_qmlplugin(plugin version sub_path [TARGETS target1 [target2 ...]])77#
40#78# Files will be copied into ${BINARY_DIR}/${path} or ${CMAKE_CURRENT_BINARY_DIR} and installed
41# TARGETS additional install targets (eg the plugin shared object)79# into ${DESTINATION}/${path}. If you don't pass BINARY_DIR, it's assumed that current source
42#80# path ends with ${path}.
43# Target to be created:81#
44# - plugin-qmltypes - Generates the qmltypes file in the shadow build folder.82# The generated file will be named after the last segment of the plugin name, e.g. Foo.qmltypes.
4583#
46macro(export_qmlplugin PLUGIN VERSION PLUGIN_SUBPATH)84# export_qmlplugin(plugin version path
47 set(multi_value_keywords TARGETS)85# [BINARY_DIR path]
48 cmake_parse_arguments(qmlplugin "" "" "${multi_value_keywords}" ${ARGN})86# [DESTINATION path]
4987# [TARGET_PREFIX string] # Will be prefixed to the target name
50 # Only try to generate .qmltypes if not cross compiling88# [ENVIRONMENT string] # Will be added to qmlplugindump's env
89# [TARGETS target1 [target2 ...]] # Targets to depend on and install (e.g. the plugin shared object)
90# )
91#
92# Created target:
93# - ${TARGET_PREFIX}${plugin}-qmltypes - Generates the qmltypes file in the binary dir.
94
95macro(export_qmlplugin PLUGIN VERSION PATH)
96 set(single BINARY_DIR DESTINATION TARGET_PREFIX ENVIRONMENT)
97 set(multi TARGETS)
98 cmake_parse_arguments(QMLPLUGIN "" "${single}" "${multi}" ${ARGN})
99
100 get_target_property(qmlplugindump_executable qmlplugindump LOCATION)
101
102 if(QMLPLUGIN_BINARY_DIR)
103 set(qmlplugin_dir ${QMLPLUGIN_BINARY_DIR}/${PATH})
104 else()
105 # Find import path to point qmlplugindump at
106 string(REGEX REPLACE "${PATH}$" "" QMLPLUGIN_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}")
107 set(qmlplugin_dir ${CMAKE_CURRENT_BINARY_DIR})
108 endif()
109
110 # Find the last segment of the plugin name to use as qmltypes basename
111 string(REGEX MATCH "[^.]+$" plugin_suffix ${PLUGIN})
112 set(target_prefix ${QMLPLUGIN_TARGET_PREFIX}${PLUGIN})
113 set(qmltypes_path ${qmlplugin_dir}/${plugin_suffix}.qmltypes)
114
115 # Only generate typeinfo if not cross compiling
51 if(NOT CMAKE_CROSSCOMPILING)116 if(NOT CMAKE_CROSSCOMPILING)
52 # create the plugin.qmltypes file117 add_custom_target(${target_prefix}-qmltypes ALL
53 add_custom_target(${PLUGIN}-qmltypes ALL118 COMMAND env ${QMLPLUGIN_ENVIRONMENT} ${qmlplugindump_executable} -notrelocatable
54 COMMAND ${qmlplugindump_exe} -notrelocatable ${PLUGIN} ${VERSION} ${CMAKE_BINARY_DIR}/plugins > ${CMAKE_BINARY_DIR}/plugins/${PLUGIN_SUBPATH}/plugin.qmltypes119 ${PLUGIN} ${VERSION} ${QMLPLUGIN_BINARY_DIR} > ${qmltypes_path}
55 )120 )
56 add_dependencies(${PLUGIN}-qmltypes ${PLUGIN}-qmlfiles ${qmlplugin_TARGETS})121 add_dependencies(${target_prefix}-qmltypes ${target_prefix}-qmlfiles ${QMLPLUGIN_TARGETS})
57122
58 # install the qmltypes file.123 if (QMLPLUGIN_DESTINATION)
59 install(FILES ${CMAKE_BINARY_DIR}/plugins/${PLUGIN_SUBPATH}/plugin.qmltypes124 # Install the typeinfo file
60 DESTINATION ${SHELL_INSTALL_QML}/${PLUGIN_SUBPATH}125 install(FILES ${qmltypes_path}
61 )126 DESTINATION ${QMLPLUGIN_DESTINATION}/${PATH}
127 )
128 endif()
62 endif()129 endif()
63130
64 # install the additional targets131 set_target_properties(${QMLPLUGIN_TARGETS} PROPERTIES
65 install(TARGETS ${qmlplugin_TARGETS}132 ARCHIVE_OUTPUT_DIRECTORY ${qmlplugin_dir}
66 DESTINATION ${SHELL_INSTALL_QML}/${PLUGIN_SUBPATH}133 LIBRARY_OUTPUT_DIRECTORY ${qmlplugin_dir}
134 RUNTIME_OUTPUT_DIRECTORY ${qmlplugin_dir}
67 )135 )
68endmacro(export_qmlplugin)136
137 if (QMLPLUGIN_DESTINATION)
138 # Install additional targets
139 install(TARGETS ${QMLPLUGIN_TARGETS}
140 DESTINATION ${QMLPLUGIN_DESTINATION}/${PATH}
141 )
142 endif()
143endmacro()
69144
=== modified file 'plugins/AccountsService/CMakeLists.txt'
--- plugins/AccountsService/CMakeLists.txt 2013-09-05 18:09:41 +0000
+++ plugins/AccountsService/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -1,5 +1,3 @@
1include(Plugins)
2
3add_definitions(-DSM_BUSNAME=systemBus)1add_definitions(-DSM_BUSNAME=systemBus)
42
5add_library(AccountsService-qml MODULE3add_library(AccountsService-qml MODULE
@@ -10,8 +8,7 @@
108
11qt5_use_modules(AccountsService-qml DBus Qml)9qt5_use_modules(AccountsService-qml DBus Qml)
1210
13export_qmlfiles(AccountsService AccountsService)11add_unity8_plugin(AccountsService 0.1 AccountsService TARGETS AccountsService-qml)
14export_qmlplugin(AccountsService 0.1 AccountsService TARGETS AccountsService-qml)
1512
16set(POLKIT_LIB_DIR "${CMAKE_INSTALL_LOCALSTATEDIR}/lib/polkit-1")13set(POLKIT_LIB_DIR "${CMAKE_INSTALL_LOCALSTATEDIR}/lib/polkit-1")
17set(POLKIT_DATA_DIR "${CMAKE_INSTALL_PREFIX}/share/polkit-1")14set(POLKIT_DATA_DIR "${CMAKE_INSTALL_PREFIX}/share/polkit-1")
1815
=== modified file 'plugins/AccountsService/qmldir'
--- plugins/AccountsService/qmldir 2013-07-24 18:29:21 +0000
+++ plugins/AccountsService/qmldir 2014-05-15 15:00:34 +0000
@@ -1,3 +1,3 @@
1module AccountsService1module AccountsService
2plugin AccountsService-qml2plugin AccountsService-qml
3typeinfo plugin.qmltypes3typeinfo AccountsService.qmltypes
44
=== modified file 'plugins/CMakeLists.txt'
--- plugins/CMakeLists.txt 2014-04-30 10:06:33 +0000
+++ plugins/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -1,3 +1,16 @@
1include(QmlPlugins)
2
3# Set up and install a plugin for unity8.
4#
5# add_unity8_plugin(plugin version path
6# [...] # See export_qmlfiles and export_qmlplugin documentation for more options
7# )
8
9macro(add_unity8_plugin PLUGIN VERSION PATH)
10 export_qmlfiles(${PLUGIN} ${PATH} DESTINATION ${SHELL_INSTALL_QML} ${ARGN})
11 export_qmlplugin(${PLUGIN} ${VERSION} ${PATH} DESTINATION ${SHELL_INSTALL_QML} ${ARGN})
12endmacro()
13
1add_subdirectory(AccountsService)14add_subdirectory(AccountsService)
2add_subdirectory(HudClient)15add_subdirectory(HudClient)
3add_subdirectory(LightDM)16add_subdirectory(LightDM)
417
=== modified file 'plugins/Dash/CMakeLists.txt'
--- plugins/Dash/CMakeLists.txt 2014-04-30 10:06:33 +0000
+++ plugins/Dash/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -1,6 +1,3 @@
1# export_qmlplugin macro
2include(Plugins)
3
4# There's no cmake var for v8 include path :-/1# There's no cmake var for v8 include path :-/
5# so create one2# so create one
6LIST(GET Qt5Core_INCLUDE_DIRS 0 QtCoreDir0)3LIST(GET Qt5Core_INCLUDE_DIRS 0 QtCoreDir0)
@@ -41,6 +38,4 @@
4138
42qt5_use_modules(Dash-qml Qml Quick)39qt5_use_modules(Dash-qml Qml Quick)
4340
44# export the qmldir qmltypes and plugin files41add_unity8_plugin(Dash 0.1 Dash TARGETS Dash-qml)
45export_qmlfiles(Dash Dash)
46export_qmlplugin(Dash 0.1 Dash TARGETS Dash-qml)
4742
=== modified file 'plugins/Dash/qmldir'
--- plugins/Dash/qmldir 2014-04-30 10:06:33 +0000
+++ plugins/Dash/qmldir 2014-05-15 15:00:34 +0000
@@ -1,4 +1,4 @@
1module Dash1module Dash
2plugin Dash-qml2plugin Dash-qml
3typeinfo plugin.qmltypes3typeinfo Dash.qmltypes
4singleton CardCreatorCache 0.1 CardCreatorCache.qml4singleton CardCreatorCache 0.1 CardCreatorCache.qml
55
=== modified file 'plugins/HudClient/CMakeLists.txt'
--- plugins/HudClient/CMakeLists.txt 2013-07-08 15:12:28 +0000
+++ plugins/HudClient/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -1,6 +1,3 @@
1# export_qmlplugin macro
2include(Plugins)
3
4find_package(Qt5Core REQUIRED)1find_package(Qt5Core REQUIRED)
5find_package(Qt5Quick REQUIRED)2find_package(Qt5Quick REQUIRED)
6pkg_search_module(DEE dee-1.0 REQUIRED)3pkg_search_module(DEE dee-1.0 REQUIRED)
@@ -38,6 +35,4 @@
3835
39qt5_use_modules(HudClientQml Qml)36qt5_use_modules(HudClientQml Qml)
4037
41# export the qmldir qmltypes and plugin files38add_unity8_plugin(HudClient 0.1 HudClient TARGETS HudClientQml)
42export_qmlfiles(HudClient HudClient)
43export_qmlplugin(HudClient 0.1 HudClient TARGETS HudClientQml)
4439
=== modified file 'plugins/HudClient/qmldir'
--- plugins/HudClient/qmldir 2013-08-22 12:38:53 +0000
+++ plugins/HudClient/qmldir 2014-05-15 15:00:34 +0000
@@ -1,3 +1,3 @@
1module HudClient1module HudClient
2plugin HudClientQml2plugin HudClientQml
3typeinfo plugin.qmltypes3typeinfo HudClient.qmltypes
44
=== modified file 'plugins/LightDM/CMakeLists.txt'
--- plugins/LightDM/CMakeLists.txt 2013-12-17 14:56:25 +0000
+++ plugins/LightDM/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -1,6 +1,3 @@
1# export_qmlplugin macro
2include(Plugins)
3
4# Dependencies1# Dependencies
5include(FindPkgConfig)2include(FindPkgConfig)
6pkg_check_modules(LIBUSERMETRICSOUTPUT REQUIRED libusermetricsoutput-1)3pkg_check_modules(LIBUSERMETRICSOUTPUT REQUIRED libusermetricsoutput-1)
@@ -37,6 +34,4 @@
3734
38qt5_use_modules(LightDM-qml DBus Gui Qml)35qt5_use_modules(LightDM-qml DBus Gui Qml)
3936
40# export the qmldir qmltypes and plugin files37add_unity8_plugin(LightDM 0.1 LightDM TARGETS LightDM-qml)
41export_qmlfiles(LightDM LightDM)
42export_qmlplugin(LightDM 0.1 LightDM TARGETS LightDM-qml)
4338
=== modified file 'plugins/LightDM/qmldir'
--- plugins/LightDM/qmldir 2013-07-04 09:32:44 +0000
+++ plugins/LightDM/qmldir 2014-05-15 15:00:34 +0000
@@ -1,3 +1,3 @@
1module LightDM1module LightDM
2plugin LightDM-qml2plugin LightDM-qml
3typeinfo plugin.qmltypes3typeinfo LightDM.qmltypes
44
=== modified file 'plugins/Powerd/CMakeLists.txt'
--- plugins/Powerd/CMakeLists.txt 2014-03-26 17:54:40 +0000
+++ plugins/Powerd/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -1,4 +1,3 @@
1include(Plugins)
2include(FindPkgConfig)1include(FindPkgConfig)
32
4pkg_search_module(GIO REQUIRED gio-2.0)3pkg_search_module(GIO REQUIRED gio-2.0)
@@ -17,5 +16,4 @@
17qt5_use_modules(Powerd-qml DBus Qml)16qt5_use_modules(Powerd-qml DBus Qml)
18target_link_libraries(Powerd-qml ${GIO_LDFLAGS})17target_link_libraries(Powerd-qml ${GIO_LDFLAGS})
1918
20export_qmlfiles(Powerd Powerd)19add_unity8_plugin(Powerd 0.1 Powerd TARGETS Powerd-qml)
21export_qmlplugin(Powerd 0.1 Powerd TARGETS Powerd-qml)
2220
=== modified file 'plugins/Powerd/qmldir'
--- plugins/Powerd/qmldir 2013-08-02 16:18:28 +0000
+++ plugins/Powerd/qmldir 2014-05-15 15:00:34 +0000
@@ -1,3 +1,3 @@
1module Powerd1module Powerd
2plugin Powerd-qml2plugin Powerd-qml
3typeinfo plugin.qmltypes3typeinfo Powerd.qmltypes
44
=== modified file 'plugins/SessionBroadcast/CMakeLists.txt'
--- plugins/SessionBroadcast/CMakeLists.txt 2013-09-12 17:58:21 +0000
+++ plugins/SessionBroadcast/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -1,5 +1,3 @@
1include(Plugins)
2
3add_definitions(-DSM_BUSNAME=systemBus)1add_definitions(-DSM_BUSNAME=systemBus)
42
5add_library(SessionBroadcast-qml MODULE3add_library(SessionBroadcast-qml MODULE
@@ -9,5 +7,4 @@
97
10qt5_use_modules(SessionBroadcast-qml DBus Qml)8qt5_use_modules(SessionBroadcast-qml DBus Qml)
119
12export_qmlfiles(SessionBroadcast SessionBroadcast)10add_unity8_plugin(SessionBroadcast 0.1 SessionBroadcast TARGETS SessionBroadcast-qml)
13export_qmlplugin(SessionBroadcast 0.1 SessionBroadcast TARGETS SessionBroadcast-qml)
1411
=== modified file 'plugins/SessionBroadcast/qmldir'
--- plugins/SessionBroadcast/qmldir 2013-09-12 17:58:21 +0000
+++ plugins/SessionBroadcast/qmldir 2014-05-15 15:00:34 +0000
@@ -1,3 +1,3 @@
1module SessionBroadcast1module SessionBroadcast
2plugin SessionBroadcast-qml2plugin SessionBroadcast-qml
3typeinfo plugin.qmltypes3typeinfo SessionBroadcast.qmltypes
44
=== modified file 'plugins/Ubuntu/DownloadDaemonListener/CMakeLists.txt'
--- plugins/Ubuntu/DownloadDaemonListener/CMakeLists.txt 2013-08-13 08:49:52 +0000
+++ plugins/Ubuntu/DownloadDaemonListener/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -1,6 +1,3 @@
1# export_qmlplugin macro
2include(Plugins)
3
4include_directories(1include_directories(
5 ${CMAKE_CURRENT_SOURCE_DIR}2 ${CMAKE_CURRENT_SOURCE_DIR}
6 ${CMAKE_CURRENT_BINARY_DIR}3 ${CMAKE_CURRENT_BINARY_DIR}
@@ -17,6 +14,4 @@
1714
18qt5_use_modules(DownloadDaemonListener Qml Quick DBus Core)15qt5_use_modules(DownloadDaemonListener Qml Quick DBus Core)
1916
20# export the qmldir qmltypes and plugin files17add_unity8_plugin(Ubuntu.DownloadDaemonListener 0.1 Ubuntu/DownloadDaemonListener TARGETS DownloadDaemonListener)
21export_qmlfiles(Ubuntu.DownloadDaemonListener Ubuntu/DownloadDaemonListener)
22export_qmlplugin(Ubuntu.DownloadDaemonListener 0.1 Ubuntu/DownloadDaemonListener TARGETS DownloadDaemonListener)
2318
=== modified file 'plugins/Ubuntu/DownloadDaemonListener/qmldir'
--- plugins/Ubuntu/DownloadDaemonListener/qmldir 2013-07-24 14:18:23 +0000
+++ plugins/Ubuntu/DownloadDaemonListener/qmldir 2014-05-15 15:00:34 +0000
@@ -1,3 +1,3 @@
1module Ubuntu.DownloadDaemonListener1module Ubuntu.DownloadDaemonListener
2plugin DownloadDaemonListener2plugin DownloadDaemonListener
3typeinfo plugins.qmltypes3typeinfo DownloadDaemonListener.qmltypes
44
=== modified file 'plugins/Ubuntu/Gestures/CMakeLists.txt'
--- plugins/Ubuntu/Gestures/CMakeLists.txt 2013-11-22 13:43:40 +0000
+++ plugins/Ubuntu/Gestures/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -1,6 +1,3 @@
1# export_qmlplugin macro
2include(Plugins)
3
4set(UbuntuGestureQml_SOURCES1set(UbuntuGestureQml_SOURCES
5 plugin.cpp2 plugin.cpp
6 AxisVelocityCalculator.cpp3 AxisVelocityCalculator.cpp
@@ -19,6 +16,4 @@
19# So that Foo.cpp can #include "Foo.moc"16# So that Foo.cpp can #include "Foo.moc"
20include_directories(${CMAKE_CURRENT_BINARY_DIR})17include_directories(${CMAKE_CURRENT_BINARY_DIR})
2118
22# export the qmldir qmltypes and plugin files19add_unity8_plugin(Ubuntu.Gestures 0.1 Ubuntu/Gestures TARGETS UbuntuGestureQml)
23export_qmlfiles(Ubuntu.Gestures Ubuntu/Gestures)
24export_qmlplugin(Ubuntu.Gestures 0.1 Ubuntu/Gestures TARGETS UbuntuGestureQml)
2520
=== modified file 'plugins/Ubuntu/Gestures/qmldir'
--- plugins/Ubuntu/Gestures/qmldir 2013-07-04 09:32:44 +0000
+++ plugins/Ubuntu/Gestures/qmldir 2014-05-15 15:00:34 +0000
@@ -1,3 +1,3 @@
1module Ubuntu.Gestures1module Ubuntu.Gestures
2plugin UbuntuGestureQml2plugin UbuntuGestureQml
3typeinfo plugin.qmltypes3typeinfo Gestures.qmltypes
44
=== modified file 'plugins/Unity/Indicators/CMakeLists.txt'
--- plugins/Unity/Indicators/CMakeLists.txt 2014-04-09 14:51:09 +0000
+++ plugins/Unity/Indicators/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -1,6 +1,3 @@
1# export_qmlplugin macro
2include(Plugins)
3
4project(IndicatorsQml)1project(IndicatorsQml)
52
6pkg_check_modules(GLIB REQUIRED glib-2.0>=2.32)3pkg_check_modules(GLIB REQUIRED glib-2.0>=2.32)
@@ -10,8 +7,6 @@
10find_package(Qt5Core REQUIRED)7find_package(Qt5Core REQUIRED)
11find_package(Qt5Quick REQUIRED)8find_package(Qt5Quick REQUIRED)
129
13add_subdirectory(qml)
14
15include_directories(10include_directories(
16 ${CMAKE_CURRENT_SOURCE_DIR}11 ${CMAKE_CURRENT_SOURCE_DIR}
17 ${CMAKE_CURRENT_BINARY_DIR}12 ${CMAKE_CURRENT_BINARY_DIR}
@@ -56,5 +51,7 @@
5651
57qt5_use_modules(IndicatorsQml Core Qml Quick)52qt5_use_modules(IndicatorsQml Core Qml Quick)
5853
59# export the qmltypes and plugin files54add_unity8_plugin(Unity.Indicators 0.1 Unity/Indicators
60export_qmlplugin(Unity.Indicators 0.1 Unity/Indicators TARGETS IndicatorsQml)55 SEARCH_PATH qml
56 TARGETS IndicatorsQml
57)
6158
=== removed file 'plugins/Unity/Indicators/qml/CMakeLists.txt'
--- plugins/Unity/Indicators/qml/CMakeLists.txt 2013-07-08 15:12:28 +0000
+++ plugins/Unity/Indicators/qml/CMakeLists.txt 1970-01-01 00:00:00 +0000
@@ -1,5 +0,0 @@
1# export_qmlplugin macro
2include(Plugins)
3
4# export the qmldir, *.qml files.
5export_qmlfiles(Unity.Indicators Unity/Indicators)
60
=== modified file 'plugins/Unity/Indicators/qml/qmldir'
--- plugins/Unity/Indicators/qml/qmldir 2013-12-18 09:44:19 +0000
+++ plugins/Unity/Indicators/qml/qmldir 2014-05-15 15:00:34 +0000
@@ -1,6 +1,6 @@
1module Unity.Indicators1module Unity.Indicators
2plugin IndicatorsQml2plugin IndicatorsQml
3typeinfo plugin.qmltypes3typeinfo Indicators.qmltypes
44
5CachedUnityMenuModel 0.1 CachedUnityMenuModel.qml5CachedUnityMenuModel 0.1 CachedUnityMenuModel.qml
6IndicatorBase 0.1 IndicatorBase.qml6IndicatorBase 0.1 IndicatorBase.qml
77
=== modified file 'plugins/Unity/Launcher/CMakeLists.txt'
--- plugins/Unity/Launcher/CMakeLists.txt 2013-09-12 12:29:56 +0000
+++ plugins/Unity/Launcher/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -32,6 +32,4 @@
3232
33qt5_use_modules(UnityLauncher-qml DBus Qml)33qt5_use_modules(UnityLauncher-qml DBus Qml)
3434
35# export the qmldir and qmltypes files35add_unity8_plugin(Unity.Launcher 0.1 Unity/Launcher TARGETS UnityLauncher-qml)
36export_qmlfiles(Unity.Launcher Unity/Launcher)
37export_qmlplugin(Unity.Launcher 0.1 Unity/Launcher TARGETS UnityLauncher-qml)
3836
=== modified file 'plugins/Unity/Launcher/qmldir'
--- plugins/Unity/Launcher/qmldir 2013-07-16 08:32:38 +0000
+++ plugins/Unity/Launcher/qmldir 2014-05-15 15:00:34 +0000
@@ -1,3 +1,3 @@
1module Unity.Launcher1module Unity.Launcher
2plugin UnityLauncher-qml2plugin UnityLauncher-qml
3typeinfo plugin.qmltypes3typeinfo Launcher.qmltypes
44
=== modified file 'plugins/Utils/CMakeLists.txt'
--- plugins/Utils/CMakeLists.txt 2014-05-07 08:27:59 +0000
+++ plugins/Utils/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -33,6 +33,4 @@
3333
34qt5_use_modules(Utils-qml Qml Quick DBus Network XmlPatterns Gui Concurrent)34qt5_use_modules(Utils-qml Qml Quick DBus Network XmlPatterns Gui Concurrent)
3535
36# export the qmldir qmltypes and plugin files36add_unity8_plugin(Utils 0.1 Utils TARGETS Utils-qml)
37export_qmlfiles(Utils Utils)
38export_qmlplugin(Utils 0.1 Utils TARGETS Utils-qml)
3937
=== modified file 'plugins/Utils/qmldir'
--- plugins/Utils/qmldir 2013-07-04 09:32:44 +0000
+++ plugins/Utils/qmldir 2014-05-15 15:00:34 +0000
@@ -1,3 +1,3 @@
1module Utils1module Utils
2plugin Utils-qml2plugin Utils-qml
3typeinfo plugin.qmltypes3typeinfo Utils.qmltypes
44
=== modified file 'tests/mocks/AccountsService/CMakeLists.txt'
--- tests/mocks/AccountsService/CMakeLists.txt 2013-11-25 17:26:15 +0000
+++ tests/mocks/AccountsService/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -7,15 +7,4 @@
77
8qt5_use_modules(MockAccountsService-qml DBus Qml)8qt5_use_modules(MockAccountsService-qml DBus Qml)
99
10# copy files into build directory for shadow builds10add_unity8_mock(AccountsService 0.1 AccountsService TARGETS MockAccountsService-qml)
11file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"
12 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
13 )
14
15install(TARGETS MockAccountsService-qml
16 DESTINATION ${SHELL_INSTALL_QML}/mocks/AccountsService
17 )
18
19install(FILES qmldir
20 DESTINATION ${SHELL_INSTALL_QML}/mocks/AccountsService
21 )
2211
=== modified file 'tests/mocks/AccountsService/qmldir'
--- tests/mocks/AccountsService/qmldir 2013-08-12 19:08:02 +0000
+++ tests/mocks/AccountsService/qmldir 2014-05-15 15:00:34 +0000
@@ -1,2 +1,3 @@
1module AccountsService1module AccountsService
2plugin MockAccountsService-qml2plugin MockAccountsService-qml
3typeinfo AccountsService.qmltypes
34
=== modified file 'tests/mocks/CMakeLists.txt'
--- tests/mocks/CMakeLists.txt 2013-11-14 11:48:33 +0000
+++ tests/mocks/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -1,3 +1,33 @@
1include(QmlPlugins)
2
3# Set up and optionally install a mock plugin for unity8.
4#
5# add_unity8_mock(plugin version path
6# [PREFIX string] # Install the plugin to the specified prefix under unity8 private plugin directory
7# [...] # See export_qmlfiles and export_qmlplugin documentation for more options
8# )
9
10macro(add_unity8_mock PLUGIN VERSION PATH)
11 set(single PREFIX)
12 cmake_parse_arguments(MOCK "" "${single}" "" ${ARGN})
13
14 if(MOCK_PREFIX)
15 export_qmlfiles(${PLUGIN} ${PATH}
16 DESTINATION ${SHELL_INSTALL_QML}/${MOCK_PREFIX}
17 TARGET_PREFIX ${MOCK_PREFIX}-Mock
18 ${MOCK_UNPARSED_ARGUMENTS}
19 )
20 export_qmlplugin(${PLUGIN} ${VERSION} ${PATH}
21 DESTINATION ${SHELL_INSTALL_QML}/${MOCK_PREFIX}
22 TARGET_PREFIX ${MOCK_PREFIX}-Mock
23 ${MOCK_UNPARSED_ARGUMENTS}
24 )
25 else()
26 export_qmlfiles(${PLUGIN} ${PATH} TARGET_PREFIX Mock ${MOCK_UNPARSED_ARGUMENTS})
27 export_qmlplugin(${PLUGIN} ${VERSION} ${PATH} TARGET_PREFIX Mock ${MOCK_UNPARSED_ARGUMENTS})
28 endif()
29endmacro()
30
1add_subdirectory(AccountsService)31add_subdirectory(AccountsService)
2add_subdirectory(GSettings.1.0)32add_subdirectory(GSettings.1.0)
3add_subdirectory(HudClient)33add_subdirectory(HudClient)
434
=== modified file 'tests/mocks/GSettings.1.0/CMakeLists.txt'
--- tests/mocks/GSettings.1.0/CMakeLists.txt 2013-08-14 11:18:24 +0000
+++ tests/mocks/GSettings.1.0/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -17,7 +17,4 @@
1717
18qt5_use_modules(FakeGSettingsQml Qml)18qt5_use_modules(FakeGSettingsQml Qml)
1919
20# copy qmldir file into build directory for shadow builds20add_unity8_mock(GSettings 1.0 GSettings.1.0 TARGETS FakeGSettingsQml)
21file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"
22 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
23 )
2421
=== modified file 'tests/mocks/GSettings.1.0/qmldir'
--- tests/mocks/GSettings.1.0/qmldir 2013-08-12 13:05:38 +0000
+++ tests/mocks/GSettings.1.0/qmldir 2014-05-15 15:00:34 +0000
@@ -1,2 +1,3 @@
1module GSettings1module GSettings
2plugin FakeGSettingsQml2plugin FakeGSettingsQml
3typeinfo GSettings.qmltypes
34
=== modified file 'tests/mocks/HudClient/CMakeLists.txt'
--- tests/mocks/HudClient/CMakeLists.txt 2013-08-13 09:10:59 +0000
+++ tests/mocks/HudClient/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -35,7 +35,4 @@
3535
36qt5_use_modules(FakeHudClientQml Qml)36qt5_use_modules(FakeHudClientQml Qml)
3737
38# copy qmldir file into build directory for shadow builds38add_unity8_mock(HudClient 0.1 HudClient TARGETS FakeHudClientQml)
39file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"
40 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
41 )
4239
=== modified file 'tests/mocks/HudClient/qmldir'
--- tests/mocks/HudClient/qmldir 2013-06-05 22:03:08 +0000
+++ tests/mocks/HudClient/qmldir 2014-05-15 15:00:34 +0000
@@ -1,1 +1,3 @@
1module HudClient
1plugin FakeHudClientQml2plugin FakeHudClientQml
3typeinfo HudClient.qmltypes
24
=== modified file 'tests/mocks/LightDM/CMakeLists.txt'
--- tests/mocks/LightDM/CMakeLists.txt 2014-01-14 21:01:28 +0000
+++ tests/mocks/LightDM/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -43,15 +43,8 @@
4343
44qt5_use_modules(MockLightDM-qml DBus Gui Qml)44qt5_use_modules(MockLightDM-qml DBus Gui Qml)
4545
46# copy qmldir file into build directory for shadow builds46add_unity8_mock(LightDM 0.1 LightDM
47file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"47 PREFIX mocks
48 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}48 TARGETS MockLightDM-qml
49 )49 ENVIRONMENT "LD_LIBRARY_PATH=${CMAKE_CURRENT_BINARY_DIR}/full"
5050)
51install(TARGETS MockLightDM-qml
52 DESTINATION ${SHELL_INSTALL_QML}/mocks/LightDM
53 )
54
55install(FILES qmldir
56 DESTINATION ${SHELL_INSTALL_QML}/mocks/LightDM
57 )
5851
=== modified file 'tests/mocks/LightDM/qmldir'
--- tests/mocks/LightDM/qmldir 2013-06-05 22:03:08 +0000
+++ tests/mocks/LightDM/qmldir 2014-05-15 15:00:34 +0000
@@ -1,2 +1,3 @@
1module LightDM1module LightDM
2plugin MockLightDM-qml2plugin MockLightDM-qml
3typeinfo LightDM.qmltypes
34
=== modified file 'tests/mocks/Powerd/CMakeLists.txt'
--- tests/mocks/Powerd/CMakeLists.txt 2013-11-25 17:26:15 +0000
+++ tests/mocks/Powerd/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -7,15 +7,4 @@
77
8qt5_use_modules(MockPowerd-qml Qml)8qt5_use_modules(MockPowerd-qml Qml)
99
10# copy qmldir file into build directory for shadow builds10add_unity8_mock(Powerd 0.1 Powerd TARGETS MockPowerd-qml)
11file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"
12 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
13 )
14
15install(TARGETS MockPowerd-qml
16 DESTINATION ${SHELL_INSTALL_QML}/mocks/Powerd
17 )
18
19install(FILES qmldir
20 DESTINATION ${SHELL_INSTALL_QML}/mocks/Powerd
21 )
2211
=== modified file 'tests/mocks/Powerd/qmldir'
--- tests/mocks/Powerd/qmldir 2013-08-09 14:35:36 +0000
+++ tests/mocks/Powerd/qmldir 2014-05-15 15:00:34 +0000
@@ -1,2 +1,3 @@
1module Powerd1module Powerd
2plugin MockPowerd-qml2plugin MockPowerd-qml
3typeinfo Powerd.qmltypes
34
=== modified file 'tests/mocks/QMenuModel/CMakeLists.txt'
--- tests/mocks/QMenuModel/CMakeLists.txt 2013-10-11 17:16:52 +0000
+++ tests/mocks/QMenuModel/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -1,15 +1,3 @@
1file(GLOB QMLFILES
2 *.qml
3 *.js
4 qmldir
5)
6
7# copy files into build directory for shadow builds
8add_custom_target(QMenuModelQmlFiles ALL
9 COMMAND cp ${QMLFILES} ${CMAKE_CURRENT_BINARY_DIR}
10 DEPENDS ${QMLFILES}
11)
12
13include_directories(1include_directories(
14 ${Qt5Core_INCLUDE_DIRS}2 ${Qt5Core_INCLUDE_DIRS}
15 ${Qt5Quick_INCLUDE_DIRS}3 ${Qt5Quick_INCLUDE_DIRS}
@@ -32,3 +20,5 @@
32set_target_properties(QMenuModelQml PROPERTIES20set_target_properties(QMenuModelQml PROPERTIES
33 OUTPUT_NAME qmenumodel21 OUTPUT_NAME qmenumodel
34 VERSION 0)22 VERSION 0)
23
24add_unity8_mock(QMenuModel 0.1 QMenuModel TARGETS QMenuModelQml)
3525
=== modified file 'tests/mocks/QMenuModel/qmldir'
--- tests/mocks/QMenuModel/qmldir 2013-10-14 09:39:13 +0000
+++ tests/mocks/QMenuModel/qmldir 2014-05-15 15:00:34 +0000
@@ -1,5 +1,6 @@
1module QMenuModel1module QMenuModel
2plugin qmenumodel2plugin qmenumodel
3typeinfo QMenuModel.qmltypes
34
4QDBusActionGroup 0.1 QDBusActionGroup.qml5QDBusActionGroup 0.1 QDBusActionGroup.qml
5UnityMenuAction 0.1 UnityMenuAction.qml6UnityMenuAction 0.1 UnityMenuAction.qml
67
=== modified file 'tests/mocks/QtMultimedia/CMakeLists.txt'
--- tests/mocks/QtMultimedia/CMakeLists.txt 2013-11-27 11:27:19 +0000
+++ tests/mocks/QtMultimedia/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -5,15 +5,4 @@
55
6qt5_use_modules(QtMultimedia-qml Qml)6qt5_use_modules(QtMultimedia-qml Qml)
77
8# copy qmldir file into build directory for shadow builds8add_unity8_mock(QtMultimedia 5.0 QtMultimedia TARGETS QtMultimedia-qml)
9file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"
10 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
11 )
12
13install(TARGETS QtMultimedia-qml
14 DESTINATION ${SHELL_INSTALL_QML}/mocks/QtMultimedia
15 )
16
17install(FILES qmldir
18 DESTINATION ${SHELL_INSTALL_QML}/mocks/QtMultimedia
19 )
209
=== modified file 'tests/mocks/QtMultimedia/qmldir'
--- tests/mocks/QtMultimedia/qmldir 2013-11-14 11:48:33 +0000
+++ tests/mocks/QtMultimedia/qmldir 2014-05-15 15:00:34 +0000
@@ -1,2 +1,3 @@
1module QtMultimedia1module QtMultimedia
2plugin QtMultimedia-qml2plugin QtMultimedia-qml
3typeinfo QtMultimedia.qmltypes
34
=== modified file 'tests/mocks/Ubuntu/DownloadDaemonListener/CMakeLists.txt'
--- tests/mocks/Ubuntu/DownloadDaemonListener/CMakeLists.txt 2013-11-25 17:26:15 +0000
+++ tests/mocks/Ubuntu/DownloadDaemonListener/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -7,12 +7,4 @@
77
8qt5_use_modules(FakeUbuntuDownloadDaemonListenerQml Core Quick)8qt5_use_modules(FakeUbuntuDownloadDaemonListenerQml Core Quick)
99
10# copy files into build directory for shadow builds10add_unity8_mock(Ubuntu.DownloadDaemonListener 0.1 Ubuntu/DownloadDaemonListener TARGETS FakeUbuntuDownloadDaemonListenerQml)
11add_custom_target(UbuntuDownloadQmlDirFile ALL
12 COMMAND cp "${CMAKE_CURRENT_SOURCE_DIR}/qmldir" ${CMAKE_CURRENT_BINARY_DIR}
13 DEPENDS qmldir
14)
15
16install(TARGETS FakeUbuntuDownloadDaemonListenerQml
17 DESTINATION ${SHELL_INSTALL_QML}/mocks/Ubuntu/DownloadDaemonListener
18 )
1911
=== modified file 'tests/mocks/Ubuntu/DownloadDaemonListener/qmldir'
--- tests/mocks/Ubuntu/DownloadDaemonListener/qmldir 2013-08-05 14:52:55 +0000
+++ tests/mocks/Ubuntu/DownloadDaemonListener/qmldir 2014-05-15 15:00:34 +0000
@@ -1,2 +1,3 @@
1module Ubuntu.DownloadDaemonListener1module Ubuntu.DownloadDaemonListener
2plugin FakeUbuntuDownloadDaemonListenerQml2plugin FakeUbuntuDownloadDaemonListenerQml
3typeinfo DownloadDaemonListener.qmltypes
34
=== modified file 'tests/mocks/Ubuntu/Thumbnailer/CMakeLists.txt'
--- tests/mocks/Ubuntu/Thumbnailer/CMakeLists.txt 2014-04-01 15:18:40 +0000
+++ tests/mocks/Ubuntu/Thumbnailer/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -1,7 +1,1 @@
1# copy files into build directory for shadow builds1add_unity8_mock(Ubuntu.Thumbnailer 0.1 Ubuntu/Thumbnailer)
2add_custom_target(UbuntuThumbnailerQmlDirFile ALL
3 COMMAND cp "${CMAKE_CURRENT_SOURCE_DIR}/qmldir" ${CMAKE_CURRENT_BINARY_DIR}
4 DEPENDS qmldir
5)
6
7install(FILES qmldir DESTINATION ${SHELL_INSTALL_QML}/mocks/Ubuntu/Thumbnailer)
82
=== modified file 'tests/mocks/Ubuntu/Thumbnailer/qmldir'
--- tests/mocks/Ubuntu/Thumbnailer/qmldir 2014-04-01 15:25:26 +0000
+++ tests/mocks/Ubuntu/Thumbnailer/qmldir 2014-05-15 15:00:34 +0000
@@ -1,2 +1,4 @@
1module Ubuntu.Thumbnailer1module Ubuntu.Thumbnailer
2typeinfo Thumbnailer.qmltypes
3
2Dummy 0.1 Dummy.qml4Dummy 0.1 Dummy.qml
35
=== modified file 'tests/mocks/Unity/Application/CMakeLists.txt'
--- tests/mocks/Unity/Application/CMakeLists.txt 2014-04-02 11:19:54 +0000
+++ tests/mocks/Unity/Application/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -12,40 +12,14 @@
1212
13add_library(FakeUnityApplicationQml MODULE ${FakeUnityApplicationQml_SOURCES})13add_library(FakeUnityApplicationQml MODULE ${FakeUnityApplicationQml_SOURCES})
1414
15add_library(NonMirUnityApplicationQml MODULE ${FakeUnityApplicationQml_SOURCES})
16set_target_properties(NonMirUnityApplicationQml PROPERTIES OUTPUT_NAME FakeUnityApplicationQml)
17
15qt5_use_modules(FakeUnityApplicationQml Core Quick)18qt5_use_modules(FakeUnityApplicationQml Core Quick)
1619qt5_use_modules(NonMirUnityApplicationQml Core Quick)
17# copy files into build directory for shadow builds20
18add_custom_target(UnityAppQmlDirFile ALL21add_unity8_mock(Unity.Application 0.1 Unity/Application PREFIX mocks TARGETS FakeUnityApplicationQml)
19 COMMAND cp "${CMAKE_CURRENT_SOURCE_DIR}/qmldir" ${CMAKE_CURRENT_BINARY_DIR}22add_unity8_mock(Unity.Application 0.1 Unity/Application
20 DEPENDS qmldir23 PREFIX nonmirplugins
21)24 TARGETS NonMirUnityApplicationQml
22add_custom_target(InputFilterAreaQmlFile ALL25 BINARY_DIR ${CMAKE_BINARY_DIR}/nonmirplugins)
23 COMMAND cp "${CMAKE_CURRENT_SOURCE_DIR}/InputFilterArea.qml" ${CMAKE_CURRENT_BINARY_DIR}
24 DEPENDS InputFilterArea.qml
25)
26add_custom_target(OSKControllerQmlFile ALL
27 COMMAND cp "${CMAKE_CURRENT_SOURCE_DIR}/OSKController.qml" ${CMAKE_CURRENT_BINARY_DIR}
28 DEPENDS OSKController.qml
29)
30
31install(TARGETS FakeUnityApplicationQml
32 DESTINATION ${SHELL_INSTALL_QML}/mocks/Unity/Application
33 )
34
35install(FILES qmldir InputFilterArea.qml OSKController.qml
36 DESTINATION ${SHELL_INSTALL_QML}/mocks/Unity/Application
37 )
38
39# Duplicate the mock to nonmirplugins
40# In shadow builds we just link it, in real installs we also install it to the other path
41add_custom_target(OSKControllerQmlFile2 ALL
42 COMMAND mkdir -p ${CMAKE_BINARY_DIR}/nonmirplugins/Unity && rm -f ${CMAKE_BINARY_DIR}/nonmirplugins/Unity/Application && ln -s ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR}/nonmirplugins/Unity
43 DEPENDS qmldir
44)
45install(TARGETS FakeUnityApplicationQml
46 DESTINATION ${SHELL_INSTALL_QML}/nonmirplugins/Unity/Application
47 )
48
49install(FILES qmldir InputFilterArea.qml OSKController.qml
50 DESTINATION ${SHELL_INSTALL_QML}/nonmirplugins/Unity/Application
51 )
5226
=== modified file 'tests/mocks/Unity/Application/qmldir'
--- tests/mocks/Unity/Application/qmldir 2013-09-10 15:03:47 +0000
+++ tests/mocks/Unity/Application/qmldir 2014-05-15 15:00:34 +0000
@@ -1,4 +1,6 @@
1module Unity.Application1module Unity.Application
2plugin FakeUnityApplicationQml2plugin FakeUnityApplicationQml
3typeinfo Application.qmltypes
4
3InputFilterArea 0.1 InputFilterArea.qml5InputFilterArea 0.1 InputFilterArea.qml
4OSKController 0.1 OSKController.qml6OSKController 0.1 OSKController.qml
57
=== modified file 'tests/mocks/Unity/CMakeLists.txt'
--- tests/mocks/Unity/CMakeLists.txt 2014-02-25 15:43:42 +0000
+++ tests/mocks/Unity/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -39,15 +39,4 @@
3939
40qt5_use_modules(FakeUnityQml Qml)40qt5_use_modules(FakeUnityQml Qml)
4141
42# copy qmldir file into build directory for shadow builds42add_unity8_mock(Unity 0.2 Unity PREFIX scopefakes TARGETS FakeUnityQml)
43file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"
44 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
45 )
46
47install(TARGETS FakeUnityQml
48 DESTINATION ${SHELL_INSTALL_QML}/scopefakes/Unity
49 )
50
51install(FILES qmldir
52 DESTINATION ${SHELL_INSTALL_QML}/scopefakes/Unity
53 )
5443
=== modified file 'tests/mocks/Unity/Indicators/CMakeLists.txt'
--- tests/mocks/Unity/Indicators/CMakeLists.txt 2014-03-03 11:55:00 +0000
+++ tests/mocks/Unity/Indicators/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -37,17 +37,4 @@
3737
38qt5_use_modules(IndicatorsFakeQml Core Qml Quick)38qt5_use_modules(IndicatorsFakeQml Core Qml Quick)
3939
40file(GLOB IndicatorsFake_QMLFILES40add_unity8_mock(Unity.Indicators 0.1 Unity/Indicators TARGETS IndicatorsFakeQml)
41 *.qml
42 qml/FakeMenuPage.qml
43)
44
45# copy qmldir file into build directory for shadow builds
46file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"
47 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
48)
49
50# copy qmldir file into build directory for shadow builds
51file(COPY ${IndicatorsFake_QMLFILES}
52 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
53)
5441
=== renamed file 'tests/mocks/Unity/Indicators/qml/FakeMenuPage.qml' => 'tests/mocks/Unity/Indicators/FakeMenuPage.qml'
=== modified file 'tests/mocks/Unity/Indicators/qmldir'
--- tests/mocks/Unity/Indicators/qmldir 2013-12-13 11:18:03 +0000
+++ tests/mocks/Unity/Indicators/qmldir 2014-05-15 15:00:34 +0000
@@ -1,5 +1,6 @@
1module Unity.Indicators1module Unity.Indicators
2plugin IndicatorsFakeQml2plugin IndicatorsFakeQml
3typeinfo Indicators.qmltypes
34
4CachedUnityMenuModel 0.1 CachedUnityMenuModel.qml5CachedUnityMenuModel 0.1 CachedUnityMenuModel.qml
5IndicatorBase 0.1 IndicatorBase.qml6IndicatorBase 0.1 IndicatorBase.qml
67
=== modified file 'tests/mocks/Unity/Launcher/CMakeLists.txt'
--- tests/mocks/Unity/Launcher/CMakeLists.txt 2013-12-13 01:02:53 +0000
+++ tests/mocks/Unity/Launcher/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -20,8 +20,4 @@
2020
21qt5_use_modules(MockLauncherPlugin Core Quick)21qt5_use_modules(MockLauncherPlugin Core Quick)
2222
23# copy files into build directory for shadow builds23add_unity8_mock(Unity.Launcher 0.1 Unity/Launcher TARGETS MockLauncherPlugin)
24add_custom_target(LauncherPluginQmlDirFile ALL
25 COMMAND cp "${CMAKE_CURRENT_SOURCE_DIR}/qmldir" ${CMAKE_CURRENT_BINARY_DIR}
26 DEPENDS qmldir
27)
2824
=== modified file 'tests/mocks/Unity/Launcher/qmldir'
--- tests/mocks/Unity/Launcher/qmldir 2013-07-05 11:25:54 +0000
+++ tests/mocks/Unity/Launcher/qmldir 2014-05-15 15:00:34 +0000
@@ -1,2 +1,3 @@
1module Unity.Launcher1module Unity.Launcher
2plugin MockLauncherPlugin2plugin MockLauncherPlugin
3typeinfo Launcher.qmltypes
34
=== modified file 'tests/mocks/Unity/Notifications/CMakeLists.txt'
--- tests/mocks/Unity/Notifications/CMakeLists.txt 2013-07-26 11:10:55 +0000
+++ tests/mocks/Unity/Notifications/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -1,11 +1,1 @@
1file(GLOB QMLFILES1add_unity8_mock(Unity.Notifications 1.0 Unity/Notifications)
2 *.qml
3 *.js
4 qmldir
5)
6
7# copy files into build directory for shadow builds
8add_custom_target(NotificationsQmlFiles ALL
9 COMMAND cp ${QMLFILES} ${CMAKE_CURRENT_BINARY_DIR}
10 DEPENDS ${QMLFILES}
11)
122
=== modified file 'tests/mocks/Unity/Notifications/qmldir'
--- tests/mocks/Unity/Notifications/qmldir 2013-06-19 08:12:15 +0000
+++ tests/mocks/Unity/Notifications/qmldir 2014-05-15 15:00:34 +0000
@@ -1,2 +1,3 @@
1module Unity.Notifications1module Unity.Notifications
2Notification 1.0 notification.js2Notification 1.0 notification.js
3typeinfo Notifications.qmltypes
34
=== modified file 'tests/mocks/Unity/qmldir'
--- tests/mocks/Unity/qmldir 2013-06-05 22:03:08 +0000
+++ tests/mocks/Unity/qmldir 2014-05-15 15:00:34 +0000
@@ -1,2 +1,3 @@
1module Unity1module Unity
2plugin FakeUnityQml2plugin FakeUnityQml
3typeinfo Unity.qmltypes
34
=== modified file 'tests/utils/modules/Unity/Test/CMakeLists.txt'
--- tests/utils/modules/Unity/Test/CMakeLists.txt 2013-12-17 14:56:25 +0000
+++ tests/utils/modules/Unity/Test/CMakeLists.txt 2014-05-15 15:00:34 +0000
@@ -1,3 +1,5 @@
1include(QmlPlugins)
2
1add_definitions(-DQT_NO_KEYWORDS)3add_definitions(-DQT_NO_KEYWORDS)
24
3include_directories(5include_directories(
@@ -14,10 +16,5 @@
1416
15qt5_use_modules(UnityTestQml Core Quick Test)17qt5_use_modules(UnityTestQml Core Quick Test)
1618
17# copy qml files into build directory for shadow builds19export_qmlfiles(Unity.Test Unity/Test)
18file(GLOB QML_JS_FILES *.js *.qml qmldir)20export_qmlplugin(Unity.Test 0.1 Unity/Test TARGETS UnityTestQml)
19
20add_custom_target(UnityTestQmlJsFiles ALL
21 COMMAND cp ${QML_JS_FILES} ${CMAKE_CURRENT_BINARY_DIR}
22 DEPENDS ${QML_JS_FILES}
23)
2421
=== modified file 'tests/utils/modules/Unity/Test/qmldir'
--- tests/utils/modules/Unity/Test/qmldir 2013-06-05 22:03:08 +0000
+++ tests/utils/modules/Unity/Test/qmldir 2014-05-15 15:00:34 +0000
@@ -1,3 +1,5 @@
1module Unity.Test1module Unity.Test
2plugin UnityTestQml2plugin UnityTestQml
3typeinfo Test.qmltypes
4
3UnityTestCase 0.1 UnityTestCase.qml5UnityTestCase 0.1 UnityTestCase.qml

Subscribers

People subscribed via source and target branches