diff options
| author | Samuli Piippo <samuli.piippo@qt.io> | 2020-03-09 13:35:17 +0200 |
|---|---|---|
| committer | Samuli Piippo <samuli.piippo@qt.io> | 2020-03-10 18:15:56 +0200 |
| commit | eb59ee61d4bc967673346bc16f6585f7ab7cee55 (patch) | |
| tree | 79bbb08aafbae89573e743f60583bae75c2769a6 | |
| parent | c29bdf41c4494e278a17a233048205bf212e040f (diff) | |
| download | meta-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.bb | 2 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtwayland_git.bb | 2 |
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" | |||
| 53 | PACKAGECONFIG_DEFAULT ?= "accessibility dbus udev evdev widgets tools libs freetype tests pcre \ | 53 | PACKAGECONFIG_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 | ||
| 58 | PACKAGECONFIG ?= " \ | 59 | PACKAGECONFIG ?= " \ |
| @@ -100,6 +101,7 @@ PACKAGECONFIG[pcre] = "-system-pcre,-qt-pcre,pcre2" | |||
| 100 | PACKAGECONFIG[eglfs] = "-eglfs,-no-eglfs,drm" | 101 | PACKAGECONFIG[eglfs] = "-eglfs,-no-eglfs,drm" |
| 101 | PACKAGECONFIG[gl] = "-opengl desktop,,virtual/libgl" | 102 | PACKAGECONFIG[gl] = "-opengl desktop,,virtual/libgl" |
| 102 | PACKAGECONFIG[gles2] = "-opengl es2,,virtual/libgles2 virtual/egl" | 103 | PACKAGECONFIG[gles2] = "-opengl es2,,virtual/libgles2 virtual/egl" |
| 104 | PACKAGECONFIG[vulkan] = "-vulkan,-no-vulkan,vulkan-headers" | ||
| 103 | PACKAGECONFIG[no-opengl] = "-no-opengl" | 105 | PACKAGECONFIG[no-opengl] = "-no-opengl" |
| 104 | PACKAGECONFIG[tslib] = "-tslib,-no-tslib,tslib" | 106 | PACKAGECONFIG[tslib] = "-tslib,-no-tslib,tslib" |
| 105 | PACKAGECONFIG[cups] = "-cups,-no-cups,cups" | 107 | PACKAGECONFIG[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 | " |
| 24 | PACKAGECONFIG_class-native ?= "" | 25 | PACKAGECONFIG_class-native ?= "" |
| 25 | PACKAGECONFIG_class-nativesdk ?= "" | 26 | PACKAGECONFIG_class-nativesdk ?= "" |
| @@ -36,6 +37,7 @@ PACKAGECONFIG[wayland-egl] = "-feature-wayland-egl,-no-feature-wayland-egl,virtu | |||
| 36 | PACKAGECONFIG[wayland-brcm] = "-feature-wayland-brcm,-no-feature-wayland-brcm,virtual/egl" | 37 | PACKAGECONFIG[wayland-brcm] = "-feature-wayland-brcm,-no-feature-wayland-brcm,virtual/egl" |
| 37 | PACKAGECONFIG[wayland-drm-egl-server-buffer] = "-feature-wayland-drm-egl-server-buffer,-no-feature-wayland-drm-egl-server-buffer,libdrm virtual/egl" | 38 | PACKAGECONFIG[wayland-drm-egl-server-buffer] = "-feature-wayland-drm-egl-server-buffer,-no-feature-wayland-drm-egl-server-buffer,libdrm virtual/egl" |
| 38 | PACKAGECONFIG[wayland-libhybris-egl-server-buffer] = "-feature-wayland-libhybris-egl-server-buffer,-no-feature-wayland-libhybris-egl-server-buffer,libhybris" | 39 | PACKAGECONFIG[wayland-libhybris-egl-server-buffer] = "-feature-wayland-libhybris-egl-server-buffer,-no-feature-wayland-libhybris-egl-server-buffer,libhybris" |
| 40 | PACKAGECONFIG[wayland-vulkan-server-buffer] = "-feature-wayland-vulkan-server-buffer,-no-feature-wayland-vulkan-server-buffer,vulkan-headers" | ||
| 39 | 41 | ||
| 40 | EXTRA_QMAKEVARS_CONFIGURE += "${PACKAGECONFIG_CONFARGS}" | 42 | EXTRA_QMAKEVARS_CONFIGURE += "${PACKAGECONFIG_CONFARGS}" |
| 41 | 43 | ||
