Merge lp:~aacid/unity8/fix_ninja_build into lp:unity8

Proposed by Albert Astals Cid on 2015-07-10
Status: Merged
Approved by: Michael Zanetti on 2015-07-10
Approved revision: 1851
Merged at revision: 1861
Proposed branch: lp:~aacid/unity8/fix_ninja_build
Merge into: lp:unity8
Diff against target: 23 lines (+6/-0)
1 file modified
tests/plugins/LightDM/CMakeLists.txt (+6/-0)
To merge this branch: bzr merge lp:~aacid/unity8/fix_ninja_build
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing on 2015-07-10
Michael Zanetti (community) Approve on 2015-07-10
Pete Woods (community) 2015-07-10 Approve on 2015-07-10
Review via email: mp+264383@code.launchpad.net

Commit Message

Fix build with ninja

Description of the Change

 * Are there any related MPs required for this MP to build/function as expected?
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.
Michael Zanetti (mzanetti) wrote :

Please add some comments above those lines that those are to fix ninja or the next one to refactor the LightDM plugis will drop them again.

lp:~aacid/unity8/fix_ninja_build updated on 2015-07-10
1851. By Albert Astals Cid on 2015-07-10

Comment++

Pete Woods (pete-woods) wrote :

Builds for me now :)

review: Approve
Michael Zanetti (mzanetti) wrote :

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

Pete did, Jenkins builds it too.

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

as much as it can..

 * Did you make sure that the branch does not contain spurious tags?

yes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/plugins/LightDM/CMakeLists.txt'
2--- tests/plugins/LightDM/CMakeLists.txt 2015-06-17 12:14:27 +0000
3+++ tests/plugins/LightDM/CMakeLists.txt 2015-07-10 08:56:19 +0000
4@@ -9,6 +9,9 @@
5 dbus.cpp
6 ${CMAKE_SOURCE_DIR}/plugins/LightDM/Greeter.cpp
7 )
8+# This add_dependencies is needed since we're linking with with -L and -l below
9+# make seems to work but ninja breaks without it
10+add_dependencies(GreeterDBusTestExec MockLightDM)
11 qt5_use_modules(GreeterDBusTestExec Core DBus Quick Test)
12 target_link_libraries(GreeterDBusTestExec
13 -L${CMAKE_BINARY_DIR}/tests/mocks/LightDM/liblightdm
14@@ -44,6 +47,9 @@
15 ${CMAKE_SOURCE_DIR}/plugins/LightDM/UsersModel.cpp
16 ${CMAKE_SOURCE_DIR}/plugins/Utils/unitysortfilterproxymodelqml.cpp
17 )
18+# This add_dependencies is needed since we're linking with with -L and -l below
19+# make seems to work but ninja breaks without it
20+add_dependencies(GreeterUsersModelTestExec MockLightDM)
21 qt5_use_modules(GreeterUsersModelTestExec Core Test)
22 target_link_libraries(GreeterUsersModelTestExec
23 -L${CMAKE_BINARY_DIR}/tests/mocks/LightDM/liblightdm

Subscribers

People subscribed via source and target branches