summaryrefslogtreecommitdiff
path: root/qmake-features
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@pelagicore.com>2017-05-10 02:07:05 +0200
committerThomas Senyk <thomas.senyk@pelagicore.com>2017-05-10 13:28:04 +0000
commit411115068f699338096f0012ccf3d405069407d8 (patch)
tree3af9e8c004d38c7416a2fef43210cb9a87be434e /qmake-features
parentd60b76e03755638b3be69bfb8143454c07cb34a7 (diff)
downloadqtapplicationmanager-411115068f699338096f0012ccf3d405069407d8.tar.gz
Add wayland/multi-process support for macOS
This setup will not run right out of the box, but needs patches to QtWayland (will be upstreamed) and a custom libwayland-{client,server}. * since macOS is not able to tell you the PID of your peer on the other side of an Unix domain socket, we cannot distinguish which application is connecting to the one and only P2P DBus server for the application interfaces. Instead, we are using one server per runtime now, which makes it possible to run apps on macOS (albeit without any security - no PID checking possible) and also simplifies the code a bit for the Linux case. * for the same reason, we need to accept Wayland surfaces with PID 0. This should be possible to fix with a custom libwayland patch later on. (plus, getting those weird pid == 0 surfaces stopped around Qt 5.6, so removing the check doesn't hurt Linux) * $XDG_RUNTIME_DIR defaults to /tmp now (also on Linux), if the variable is not set in the environment. * In order to support --start-session-dbus, we rely on brew's dbus package being installed (or an equivalent dbus-daemon binary in /usr/local/bin). Change-Id: Ieaa8ef2ebc7ce13ae25d63c6258a259c0879e6c8 Reviewed-by: Thomas Senyk <thomas.senyk@pelagicore.com>
Diffstat (limited to 'qmake-features')
-rw-r--r--qmake-features/am-config.prf2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake-features/am-config.prf b/qmake-features/am-config.prf
index f2495d66..241c921d 100644
--- a/qmake-features/am-config.prf
+++ b/qmake-features/am-config.prf
@@ -17,7 +17,7 @@ headless:DEFINES *= AM_HEADLESS
linux:!disable-libbacktrace:if(enable-libbacktrace|CONFIG(debug, debug|release)):DEFINES *= AM_USE_LIBBACKTRACE
!force-single-process {
- linux {
+ linux|osx {
headless|qtHaveModule(compositor)|if(qtHaveModule(waylandcompositor):qtHaveModule(waylandcompositor-private)) {
CONFIG *= auto-multi-process
}