Mir

Merge lp:~kdub/mir/fix-1480932 into lp:mir

Proposed by Kevin DuBois
Status: Merged
Approved by: Daniel van Vugt
Approved revision: no longer in the source branch.
Merged at revision: 2807
Proposed branch: lp:~kdub/mir/fix-1480932
Merge into: lp:mir
Diff against target: 47 lines (+11/-12)
1 file modified
tests/unit-tests/CMakeLists.txt (+11/-12)
To merge this branch: bzr merge lp:~kdub/mir/fix-1480932
Reviewer Review Type Date Requested Status
Daniel van Vugt Approve
PS Jenkins bot (community) continuous-integration Approve
Alan Griffiths Approve
Review via email: mp+266743@code.launchpad.net

Commit message

build system: fix up option for -DMIR_PLATFORM=android
fixes: lp: #1480932

Description of the change

build system: fix up option for -DMIR_PLATFORM=android
fixes: lp: #1480932

To post a comment you must log in.
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Looks sensible

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Looks like a change that if wrong, Jenkins would have mentioned.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/unit-tests/CMakeLists.txt'
2--- tests/unit-tests/CMakeLists.txt 2015-07-29 01:18:16 +0000
3+++ tests/unit-tests/CMakeLists.txt 2015-08-03 15:35:10 +0000
4@@ -125,33 +125,32 @@
5 ${GMOCK_MAIN_LIBRARY}
6 ${Boost_LIBRARIES}
7 ${UMOCKDEV_LIBRARIES}
8- # Mesa platform dependencies
9- ${DRM_LDFLAGS} ${DRM_LIBRARIES}
10- ${GBM_LDFLAGS} ${GBM_LIBRARIES}
11- # Android platform dependencies
12- ${LIBHARDWARE_LIBRARIES}
13- ${ANDROID_PROPERTIES_LIBRARIES}
14- # Shared platform dependencies
15 ${EGL_LDFLAGS} ${EGL_LIBRARIES}
16 ${GLESv2_LDFLAGS} ${GLESv2_LIBRARIES}
17 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
18- ${LIBHARDWARE_LDFLAGS} ${LIBHARDWARE_LIBRARIES}
19- ${DRM_LDFLAGS} ${DRM_LIBRARIES}
20 ${MIR_PLATFORM_REFERENCES}
21 ${MIR_COMMON_REFERENCES}
22 ${MIR_SERVER_REFERENCES}
23 ${XKBCOMMON_LIBRARIES}
24 )
25
26-target_link_libraries(mir_unit_tests
27- mirsharedmesaservercommon-static
28+if ((MIR_BUILD_PLATFORM_MESA_KMS) OR (MIR_BUILD_PLATFORM_MESA_X11))
29+target_link_libraries(mir_unit_tests
30+ ${GBM_LDFLAGS} ${GBM_LIBRARIES}
31+ mirsharedmesaservercommon-static)
32+endif()
33+
34+if (MIR_BUILD_PLATFORM_MESA_KMS)
35+target_link_libraries(mir_unit_tests
36 ${DRM_LDFLAGS} ${DRM_LIBRARIES}
37 )
38+endif()
39
40 if (MIR_BUILD_PLATFORM_ANDROID)
41 target_link_libraries(mir_unit_tests
42 mirsharedandroid-static
43- ${ANDROID_PROPERTIES_LDFLAGS}
44+ ${LIBHARDWARE_LDFLAGS} ${LIBHARDWARE_LIBRARIES}
45+ ${ANDROID_PROPERTIES_LDFLAGS} ${ANDROID_PROPERTIES_LIBRARIES}
46 )
47 endif()
48

Subscribers

People subscribed via source and target branches