summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mkspecs/common/mac.conf7
-rw-r--r--mkspecs/features/wayland-scanner.prf25
-rw-r--r--src/platformsupport/platformsupport.pro2
-rw-r--r--src/platformsupport/themes/themes.pro2
4 files changed, 25 insertions, 11 deletions
diff --git a/mkspecs/common/mac.conf b/mkspecs/common/mac.conf
index 5208379f9a..d5e559ee12 100644
--- a/mkspecs/common/mac.conf
+++ b/mkspecs/common/mac.conf
@@ -33,6 +33,13 @@ QMAKE_LIBS_DYNLOAD =
QMAKE_LIBS_OPENGL = -framework OpenGL -framework AGL
QMAKE_LIBS_THREAD =
+QMAKE_INCDIR_WAYLAND =
+QMAKE_LIBS_WAYLAND_CLIENT = -lwayland-client
+QMAKE_LIBS_WAYLAND_SERVER = -lwayland-server
+QMAKE_LIBDIR_WAYLAND =
+QMAKE_DEFINES_WAYLAND =
+QMAKE_WAYLAND_SCANNER = wayland-scanner
+
QMAKE_ACTOOL = actool
QMAKE_DSYMUTIL = dsymutil
diff --git a/mkspecs/features/wayland-scanner.prf b/mkspecs/features/wayland-scanner.prf
index 9166ae7750..4b8e2ef76e 100644
--- a/mkspecs/features/wayland-scanner.prf
+++ b/mkspecs/features/wayland-scanner.prf
@@ -34,25 +34,32 @@ defineReplace(waylandScannerHeaderFiles) {
return($$wayland_header_files_for_side)
}
-qt_install_headers {
+# 1) if we are a module, we need to create the headers in our private inc dir in qtbase
+# 2) if also qt_install_headers is set, we need to generate INSTALLS rules in addition
+# 3) if we are not a module, we just generate the headers in the current directory
+!isEmpty(MODULE) {
header_dest = $$MODULE_BASE_OUTDIR/include/$$MODULE_INCNAME/$$VERSION/$$MODULE_INCNAME/private
header_files_client = $$waylandScannerHeaderFiles(client, $$header_dest)
!isEmpty(header_files_client) {
- wayland_generated_client_headers.files = $$header_files_client
- wayland_generated_client_headers.path = $$private_headers.path
- wayland_generated_client_headers.CONFIG = no_check_exist
- INSTALLS += wayland_generated_client_headers
+ qt_install_headers {
+ wayland_generated_client_headers.files = $$header_files_client
+ wayland_generated_client_headers.path = $$private_headers.path
+ wayland_generated_client_headers.CONFIG = no_check_exist
+ INSTALLS += wayland_generated_client_headers
+ }
WAYLAND_CLIENT_HEADER_DEST = $$header_dest/
WAYLAND_CLIENT_INCLUDE_DIR = $$MODULE_INCNAME/private
}
header_files_server = $$waylandScannerHeaderFiles(server, $$header_dest)
!isEmpty(header_files_server) {
- wayland_generated_server_headers.files = $$header_files_server
- wayland_generated_server_headers.path = $$private_headers.path
- wayland_generated_server_headers.CONFIG = no_check_exist
- INSTALLS += wayland_generated_server_headers
+ qt_install_headers {
+ wayland_generated_server_headers.files = $$header_files_server
+ wayland_generated_server_headers.path = $$private_headers.path
+ wayland_generated_server_headers.CONFIG = no_check_exist
+ INSTALLS += wayland_generated_server_headers
+ }
WAYLAND_SERVER_HEADER_DEST = $$header_dest/
WAYLAND_SERVER_INCLUDE_DIR = $$MODULE_INCNAME/private
}
diff --git a/src/platformsupport/platformsupport.pro b/src/platformsupport/platformsupport.pro
index 7dbb6f6cae..6d4f1b93bd 100644
--- a/src/platformsupport/platformsupport.pro
+++ b/src/platformsupport/platformsupport.pro
@@ -16,7 +16,7 @@ qtConfig(evdev)|qtConfig(tslib)|qtConfig(libinput)|qtConfig(integrityhid) {
input.depends += devicediscovery
}
-if(unix:!darwin)|qtConfig(xcb): \
+if(unix:!uikit)|qtConfig(xcb): \
SUBDIRS += services
qtConfig(opengl): \
diff --git a/src/platformsupport/themes/themes.pro b/src/platformsupport/themes/themes.pro
index 44f94fafc8..668a843473 100644
--- a/src/platformsupport/themes/themes.pro
+++ b/src/platformsupport/themes/themes.pro
@@ -6,7 +6,7 @@ CONFIG += static internal_module
DEFINES += QT_NO_CAST_FROM_ASCII
-if(unix:!darwin)|qtConfig(xcb): \
+if(unix:!uikit)|qtConfig(xcb): \
include($$PWD/genericunix/genericunix.pri)
HEADERS += \