summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2020-03-09 13:35:17 +0200
committerSamuli Piippo <samuli.piippo@qt.io>2020-03-10 18:15:56 +0200
commiteb59ee61d4bc967673346bc16f6585f7ab7cee55 (patch)
tree79bbb08aafbae89573e743f60583bae75c2769a6
parentc29bdf41c4494e278a17a233048205bf212e040f (diff)
downloadmeta-qt5-eb59ee61d4bc967673346bc16f6585f7ab7cee55.tar.gz
Add vulkan PACKAGECONFIGs to qtbase and qtwayland
Add PACKAGECONFIG to qtbase and qtwayland that enable vulkan support. They are enabled by default when vulkan is in DISTRO_FEATURES. Change-Id: Ia50dbf4a116ad2b77ab932121dce8b6a3a3dd754 Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
-rw-r--r--recipes-qt/qt5/qtbase_git.bb2
-rw-r--r--recipes-qt/qt5/qtwayland_git.bb2
2 files changed, 4 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb
index 90a048cb..0fc2697d 100644
--- a/recipes-qt/qt5/qtbase_git.bb
+++ b/recipes-qt/qt5/qtbase_git.bb
@@ -53,6 +53,7 @@ PACKAGECONFIG_RELEASE ?= "release"
53PACKAGECONFIG_DEFAULT ?= "accessibility dbus udev evdev widgets tools libs freetype tests pcre \ 53PACKAGECONFIG_DEFAULT ?= "accessibility dbus udev evdev widgets tools libs freetype tests pcre \
54 ${@bb.utils.contains('SELECTED_OPTIMIZATION', '-Os', 'optimize-size ltcg', '', d)} \ 54 ${@bb.utils.contains('SELECTED_OPTIMIZATION', '-Os', 'optimize-size ltcg', '', d)} \
55 ${@bb.utils.contains('DISTRO_FEATURES', 'qt5-static', 'static', '', d)} \ 55 ${@bb.utils.contains('DISTRO_FEATURES', 'qt5-static', 'static', '', d)} \
56 ${@bb.utils.filter('DISTRO_FEATURES', 'vulkan', d)} \
56" 57"
57 58
58PACKAGECONFIG ?= " \ 59PACKAGECONFIG ?= " \
@@ -100,6 +101,7 @@ PACKAGECONFIG[pcre] = "-system-pcre,-qt-pcre,pcre2"
100PACKAGECONFIG[eglfs] = "-eglfs,-no-eglfs,drm" 101PACKAGECONFIG[eglfs] = "-eglfs,-no-eglfs,drm"
101PACKAGECONFIG[gl] = "-opengl desktop,,virtual/libgl" 102PACKAGECONFIG[gl] = "-opengl desktop,,virtual/libgl"
102PACKAGECONFIG[gles2] = "-opengl es2,,virtual/libgles2 virtual/egl" 103PACKAGECONFIG[gles2] = "-opengl es2,,virtual/libgles2 virtual/egl"
104PACKAGECONFIG[vulkan] = "-vulkan,-no-vulkan,vulkan-headers"
103PACKAGECONFIG[no-opengl] = "-no-opengl" 105PACKAGECONFIG[no-opengl] = "-no-opengl"
104PACKAGECONFIG[tslib] = "-tslib,-no-tslib,tslib" 106PACKAGECONFIG[tslib] = "-tslib,-no-tslib,tslib"
105PACKAGECONFIG[cups] = "-cups,-no-cups,cups" 107PACKAGECONFIG[cups] = "-cups,-no-cups,cups"
diff --git a/recipes-qt/qt5/qtwayland_git.bb b/recipes-qt/qt5/qtwayland_git.bb
index e583d328..56ff49af 100644
--- a/recipes-qt/qt5/qtwayland_git.bb
+++ b/recipes-qt/qt5/qtwayland_git.bb
@@ -20,6 +20,7 @@ PACKAGECONFIG ?= " \
20 wayland-server \ 20 wayland-server \
21 wayland-egl \ 21 wayland-egl \
22 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xcomposite-egl xcomposite-glx', '', d)} \ 22 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xcomposite-egl xcomposite-glx', '', d)} \
23 ${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'wayland-vulkan-server-buffer', '', d)} \
23" 24"
24PACKAGECONFIG_class-native ?= "" 25PACKAGECONFIG_class-native ?= ""
25PACKAGECONFIG_class-nativesdk ?= "" 26PACKAGECONFIG_class-nativesdk ?= ""
@@ -36,6 +37,7 @@ PACKAGECONFIG[wayland-egl] = "-feature-wayland-egl,-no-feature-wayland-egl,virtu
36PACKAGECONFIG[wayland-brcm] = "-feature-wayland-brcm,-no-feature-wayland-brcm,virtual/egl" 37PACKAGECONFIG[wayland-brcm] = "-feature-wayland-brcm,-no-feature-wayland-brcm,virtual/egl"
37PACKAGECONFIG[wayland-drm-egl-server-buffer] = "-feature-wayland-drm-egl-server-buffer,-no-feature-wayland-drm-egl-server-buffer,libdrm virtual/egl" 38PACKAGECONFIG[wayland-drm-egl-server-buffer] = "-feature-wayland-drm-egl-server-buffer,-no-feature-wayland-drm-egl-server-buffer,libdrm virtual/egl"
38PACKAGECONFIG[wayland-libhybris-egl-server-buffer] = "-feature-wayland-libhybris-egl-server-buffer,-no-feature-wayland-libhybris-egl-server-buffer,libhybris" 39PACKAGECONFIG[wayland-libhybris-egl-server-buffer] = "-feature-wayland-libhybris-egl-server-buffer,-no-feature-wayland-libhybris-egl-server-buffer,libhybris"
40PACKAGECONFIG[wayland-vulkan-server-buffer] = "-feature-wayland-vulkan-server-buffer,-no-feature-wayland-vulkan-server-buffer,vulkan-headers"
39 41
40EXTRA_QMAKEVARS_CONFIGURE += "${PACKAGECONFIG_CONFARGS}" 42EXTRA_QMAKEVARS_CONFIGURE += "${PACKAGECONFIG_CONFARGS}"
41 43