Merge lp:~alan-griffiths/miral/identify-code-using-libmirserver-directly into lp:miral

Proposed by Alan Griffiths
Status: Merged
Approved by: Gerry Boland
Approved revision: 419
Merged at revision: 416
Proposed branch: lp:~alan-griffiths/miral/identify-code-using-libmirserver-directly
Merge into: lp:miral
Prerequisite: lp:~alan-griffiths/miral/encapsulate-PromptSessionListener
Diff against target: 160 lines (+46/-25)
4 files modified
miral-qt/CMakeLists.txt (+3/-0)
miral-qt/src/modules/Unity/Application/CMakeLists.txt (+9/-1)
miral-qt/src/modules/Unity/Screens/CMakeLists.txt (+4/-1)
miral-qt/src/platforms/mirserver/CMakeLists.txt (+30/-23)
To merge this branch: bzr merge lp:~alan-griffiths/miral/identify-code-using-libmirserver-directly
Reviewer Review Type Date Requested Status
Gerry Boland (community) Approve
Review via email: mp+309080@code.launchpad.net

Commit message

[miral-qt] Identify direct dependencies on mirserver-dev

To post a comment you must log in.
Revision history for this message
Gerry Boland (gerboland) wrote :

+string(REPLACE ";" " " FIXME_MIRSERVER_CXXFLAGS "${MIRSERVER_CFLAGS}")
this line confused me, it just does a syntax switch for the set_source_files_properties call?

Rest looks ok, I look forward to eradicating these one by one. And I hope the features exported will be of use to other shells

review: Approve
Revision history for this message
Gerry Boland (gerboland) wrote :

Tests fixed, thanks

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'miral-qt/CMakeLists.txt'
2--- miral-qt/CMakeLists.txt 2016-09-23 15:56:53 +0000
3+++ miral-qt/CMakeLists.txt 2016-10-27 07:31:06 +0000
4@@ -78,6 +78,9 @@
5 pkg_check_modules(MIRCLIENT mirclient>=0.22 REQUIRED)
6 pkg_check_modules(MIRRENDERERGLDEV mir-renderer-gl-dev>=0.22 REQUIRED)
7
8+# Reformat ${MIRSERVER_CFLAGS} to use with set_source_files_properties()
9+string(REPLACE ";" " " FIXME_MIRSERVER_CXXFLAGS "${MIRSERVER_CFLAGS}")
10+
11 pkg_check_modules(XKBCOMMON xkbcommon REQUIRED)
12 pkg_check_modules(GLIB glib-2.0 REQUIRED)
13 pkg_check_modules(PROCESS_CPP process-cpp REQUIRED)
14
15=== modified file 'miral-qt/src/modules/Unity/Application/CMakeLists.txt'
16--- miral-qt/src/modules/Unity/Application/CMakeLists.txt 2016-09-30 14:04:24 +0000
17+++ miral-qt/src/modules/Unity/Application/CMakeLists.txt 2016-10-27 07:31:06 +0000
18@@ -15,7 +15,6 @@
19 ${GLIB_INCLUDE_DIRS}
20 ${GIO_INCLUDE_DIRS}
21 ${GIO_UNIX_INCLUDE_DIRS}
22- ${MIRSERVER_INCLUDE_DIRS}
23 ${MIRRENDERERGLDEV_INCLUDE_DIRS}
24 ${PROCESS_CPP_INCLUDE_DIRS}
25 ${UBUNTU_PLATFORM_API_INCLUDE_DIRS}
26@@ -73,6 +72,15 @@
27 settings_interface.h
28 )
29
30+set_source_files_properties(application_manager.cpp PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${FIXME_MIRSERVER_CXXFLAGS}")
31+# SurfaceObserver unecessarily uses public inheritance from mir::scene::SurfaceObserver
32+set_source_files_properties(mirsurface.cpp PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${FIXME_MIRSERVER_CXXFLAGS}")
33+set_source_files_properties(mirbuffersgtexture.cpp PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${FIXME_MIRSERVER_CXXFLAGS}")
34+set_source_files_properties(session.cpp PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${FIXME_MIRSERVER_CXXFLAGS}")
35+set_source_files_properties(sessionmanager.cpp PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${FIXME_MIRSERVER_CXXFLAGS}")
36+set_source_files_properties(toplevelwindowmodel.cpp PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${FIXME_MIRSERVER_CXXFLAGS}")
37+set_source_files_properties(windowmodel.cpp PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${FIXME_MIRSERVER_CXXFLAGS}")
38+
39 add_library(unityapplicationplugin SHARED
40 ${QMLMIRPLUGIN_SRC}
41 )
42
43=== modified file 'miral-qt/src/modules/Unity/Screens/CMakeLists.txt'
44--- miral-qt/src/modules/Unity/Screens/CMakeLists.txt 2016-09-15 21:11:15 +0000
45+++ miral-qt/src/modules/Unity/Screens/CMakeLists.txt 2016-10-27 07:31:06 +0000
46@@ -6,7 +6,6 @@
47 SYSTEM
48 ${Qt5Gui_PRIVATE_INCLUDE_DIRS}
49 ${Qt5Quick_INCLUDE_DIRS}
50- ${MIRSERVER_INCLUDE_DIRS}
51 )
52
53 set(SCREENSPLUGIN_SRC
54@@ -15,6 +14,10 @@
55 qquickscreenwindow.cpp
56 )
57
58+# screens.h references mir/graphics/display_configuration.h
59+set_source_files_properties(screens.cpp PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${FIXME_MIRSERVER_CXXFLAGS}")
60+set_source_files_properties(qquickscreenwindow.cpp PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${FIXME_MIRSERVER_CXXFLAGS}")
61+
62 add_library(unityscreensplugin SHARED
63 ${SCREENSPLUGIN_SRC}
64 )
65
66=== modified file 'miral-qt/src/platforms/mirserver/CMakeLists.txt'
67--- miral-qt/src/platforms/mirserver/CMakeLists.txt 2016-10-06 11:57:16 +0000
68+++ miral-qt/src/platforms/mirserver/CMakeLists.txt 2016-10-27 07:31:06 +0000
69@@ -30,7 +30,6 @@
70 include_directories(
71 SYSTEM
72 ${MIRCOMMON_INCLUDE_DIRS}
73- ${MIRSERVER_INCLUDE_DIRS}
74 ${MIRRENDERERGLDEV_INCLUDE_DIRS}
75
76 ${URL_DISPATCHER_INCLUDE_DIRS}
77@@ -52,53 +51,61 @@
78 # Needed to compile tracepoints in C99 mode.
79 add_definitions(-DBYTE_ORDER=__BYTE_ORDER)
80
81-set(MIRSERVER_QPA_PLUGIN_SRC
82- ${MIRAL_QT_SOURCE_DIR}/src/common/debughelpers.cpp
83+# These files will compile without mirserver-dev
84+add_library(qpa-mirserver-nomirserver OBJECT
85 ${MIRAL_QT_SOURCE_DIR}/src/common/timestamp.cpp
86- cursor.cpp
87- eventbuilder.cpp
88 logging.cpp
89+ plugin.cpp
90+ shelluuid.cpp
91+ ubuntutheme.cpp
92+ clipboard.cpp
93+ openglcontextfactory.cpp openglcontextfactory.h
94 mircursorimages.cpp
95 mirdisplayconfigurationpolicy.cpp
96 mirsingleton.cpp
97- qteventfeeder.cpp
98- plugin.cpp
99- qmirserver.cpp
100- qmirserver_p.cpp
101 sessionauthorizer.cpp
102- shelluuid.cpp
103- surfaceobserver.cpp
104 promptsessionlistener.cpp
105 mirserverstatuslistener.cpp
106- screen.cpp
107- screenwindow.cpp
108 screenscontroller.cpp
109- screensmodel.cpp
110- mirserverintegration.cpp
111- miropenglcontext.cpp
112 nativeinterface.cpp
113- offscreensurface.cpp
114 qtcompositor.cpp
115 services.cpp
116- ubuntutheme.cpp
117- clipboard.cpp
118 windowcontroller.cpp
119 windowmanagementpolicy.cpp
120- tracepoints.c
121 mirserverhooks.cpp mirserverhooks.h
122- openglcontextfactory.cpp openglcontextfactory.h
123- promptsessionmanager.cpp promptsessionmanager.h promptsession.h
124 setqtcompositor.cpp setqtcompositor.h
125 # We need to run moc on these headers
126 ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/Mir.h
127- ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/MirMousePointerInterface.h
128 ${MIRAL_QT_SOURCE_DIR}/src/common/appnotifier.h
129 ${MIRAL_QT_SOURCE_DIR}/src/common/windowcontrollerinterface.h
130 ${MIRAL_QT_SOURCE_DIR}/src/common/windowmodelnotifier.h
131 )
132
133+include_directories(SYSTEM ${MIRSERVER_INCLUDE_DIRS})
134+
135+set(MIRSERVER_QPA_PLUGIN_SRC
136+ ${MIRAL_QT_SOURCE_DIR}/src/common/debughelpers.cpp
137+ cursor.cpp
138+ eventbuilder.cpp
139+ qteventfeeder.cpp
140+ qmirserver.cpp
141+ qmirserver_p.cpp
142+ surfaceobserver.cpp
143+ screen.cpp
144+ screenwindow.cpp
145+ screensmodel.cpp
146+ mirserverintegration.cpp
147+ miropenglcontext.cpp
148+ offscreensurface.cpp
149+ tracepoints.c
150+ promptsessionmanager.cpp promptsessionmanager.h promptsession.h
151+# We need to run moc on these headers
152+ ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/MirMousePointerInterface.h
153+)
154+
155 add_library(qpa-mirserver SHARED
156 ${MIRSERVER_QPA_PLUGIN_SRC}
157+ $<TARGET_OBJECTS:qpa-mirserver-nomirserver>
158 )
159
160 target_link_libraries(

Subscribers

People subscribed via source and target branches