Merge lp://staging/~alan-griffiths/qtmir/untangle-libmirserver-from-QOBJECTs into lp://staging/qtmir

Proposed by Alan Griffiths
Status: Approved
Approved by: Gerry Boland
Approved revision: 641
Proposed branch: lp://staging/~alan-griffiths/qtmir/untangle-libmirserver-from-QOBJECTs
Merge into: lp://staging/qtmir
Diff against target: 448 lines (+132/-118)
10 files modified
src/platforms/mirserver/CMakeLists.txt (+54/-57)
src/platforms/mirserver/inputdeviceobserver.cpp (+0/-23)
src/platforms/mirserver/inputdeviceobserver.h (+5/-10)
src/platforms/mirserver/mirserverhooks.cpp (+34/-1)
src/platforms/mirserver/qtcompositor.cpp (+0/-18)
src/platforms/mirserver/qtcompositor.h (+1/-6)
src/platforms/mirserver/screenscontroller.cpp (+1/-0)
src/platforms/mirserver/screensmodel.cpp (+1/-0)
src/platforms/mirserver/screensmodel.h (+10/-2)
src/platforms/mirserver/setqtcompositor.cpp (+26/-1)
To merge this branch: bzr merge lp://staging/~alan-griffiths/qtmir/untangle-libmirserver-from-QOBJECTs
Reviewer Review Type Date Requested Status
Gerry Boland (community) Approve
Unity8 CI Bot (community) continuous-integration Approve
Review via email: mp+321568@code.staging.launchpad.net

Commit message

Another pass at separating out the libmirserver dependencies

To post a comment you must log in.
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:639
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/651/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4806
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4834
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4646
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4646/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4646
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4646/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4646
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4646/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4646
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4646/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4646
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4646/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4646
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4646/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/651/rebuild

review: Approve (continuous-integration)
640. By Alan Griffiths

windowmanagementpolicy.cpp doesn't use libmirserver

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:640
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/660/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4828
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4856
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4667
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4667/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4667
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4667/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4667
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4667/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4667
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4667/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4667
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4667/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4667
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4667/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/660/rebuild

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

May I propose this patch to neaten up the CMakeLists.txt file considerably:
http://pastebin.ubuntu.com/24312831/

=== modified file 'src/platforms/mirserver/screensmodel.h'
+ namespace graphics {
+ namespace detail { struct GraphicsConfCardIdTag; struct GraphicsConfOutputIdTag; }
+ typedef IntWrapper <detail::GraphicsConfCardIdTag> DisplayConfigurationCardId;
+ typedef IntWrapper <detail::GraphicsConfOutputIdTag> DisplayConfigurationOutputId;
+ class Display;
+ class DisplayConfigurationOutput;
+ }
I'm not keen on duplicating Mir code like this, looks very fragile. Is this temporary? I do intend to update the poorly named ScreensModel to use miral::ActiveDisplayObserver stuff.

Rest is good, glad to see we're going in the same direction.

review: Needs Fixing
641. By Alan Griffiths

Apply Gerry's patch to CMakeLists.txt

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

> May I propose this patch to neaten up the CMakeLists.txt file considerably:
> http://pastebin.ubuntu.com/24312831/

Patch applied.

> === modified file 'src/platforms/mirserver/screensmodel.h'
> + namespace graphics {
> + namespace detail { struct GraphicsConfCardIdTag; struct
> GraphicsConfOutputIdTag; }
> + typedef IntWrapper <detail::GraphicsConfCardIdTag>
> DisplayConfigurationCardId;
> + typedef IntWrapper <detail::GraphicsConfOutputIdTag>
> DisplayConfigurationOutputId;
> + class Display;
> + class DisplayConfigurationOutput;
> + }
> I'm not keen on duplicating Mir code like this, looks very fragile. Is this
> temporary? I do intend to update the poorly named ScreensModel to use
> miral::ActiveDisplayObserver stuff.

I agree. It is temporary and IMO a low risk, I simply didn't want to complicate the MP by addressing that now.

> Rest is good, glad to see we're going in the same direction.

Great. Let's get there soon!

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:641
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/665/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4889
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4917
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4726
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4726/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4726
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4726/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4726
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4726/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4726
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4726/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4726
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4726/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4726
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4726/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/665/rebuild

review: Approve (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:641
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/666/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4891
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4919
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4728
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4728/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4728
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4728/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4728
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4728/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4728
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4728/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4728
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4728/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4728
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4728/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/666/rebuild

review: Approve (continuous-integration)
Revision history for this message
Gerry Boland (gerboland) :
review: Approve

Unmerged revisions

641. By Alan Griffiths

Apply Gerry's patch to CMakeLists.txt

640. By Alan Griffiths

windowmanagementpolicy.cpp doesn't use libmirserver

639. By Alan Griffiths

cleanup the mirserver platform compile flags

638. By Alan Griffiths

Avoid dependency on libmirserver-dev in qtcompositor.h

637. By Alan Griffiths

Avoid dependency on libmirserver-dev in inputdeviceobserver.h

636. By Alan Griffiths

Avoid dependency on libmirserver-dev in screensmodel.h

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches