package/vulkan-loader: new package
Use $(VULKAN_HEADERS_VERSION) for VULKAN_LOADER_VERSION as the vulkan packages need to all be the same version. Signed-off-by: Adam Duskett <aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
a95d65e495
commit
6aa1bc3167
@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
N: Adam Duskett <aduskett@gmail.com>
|
N: Adam Duskett <aduskett@gmail.com>
|
||||||
F: package/firewalld/
|
F: package/firewalld/
|
||||||
|
F: package/vulkan-loader/
|
||||||
|
|
||||||
N: Adam Heinrich <adam@adamh.cz>
|
N: Adam Heinrich <adam@adamh.cz>
|
||||||
F: package/jack1/
|
F: package/jack1/
|
||||||
|
@ -369,6 +369,7 @@ comment "Graphic libraries"
|
|||||||
source "package/sdl2_ttf/Config.in"
|
source "package/sdl2_ttf/Config.in"
|
||||||
source "package/tk/Config.in"
|
source "package/tk/Config.in"
|
||||||
source "package/vulkan-headers/Config.in"
|
source "package/vulkan-headers/Config.in"
|
||||||
|
source "package/vulkan-loader/Config.in"
|
||||||
|
|
||||||
comment "Other GUIs"
|
comment "Other GUIs"
|
||||||
source "package/qt5/Config.in"
|
source "package/qt5/Config.in"
|
||||||
|
14
package/vulkan-loader/Config.in
Normal file
14
package/vulkan-loader/Config.in
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
config BR2_PACKAGE_VULKAN_LOADER
|
||||||
|
bool "vulkan-loader"
|
||||||
|
depends on BR2_INSTALL_LIBSTDCPP
|
||||||
|
depends on !BR2_STATIC_LIBS # dlfcn.h
|
||||||
|
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||||
|
select BR2_PACKAGE_VULKAN_HEADERS
|
||||||
|
help
|
||||||
|
The Khronos official Vulkan ICD desktop loader.
|
||||||
|
|
||||||
|
https://github.com/KhronosGroup/Vulkan-Loader
|
||||||
|
|
||||||
|
comment "vulkan-loader needs a toolchain w/ C++, dynamic library, threads"
|
||||||
|
depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || \
|
||||||
|
!BR2_TOOLCHAIN_HAS_THREADS
|
3
package/vulkan-loader/vulkan-loader.hash
Normal file
3
package/vulkan-loader/vulkan-loader.hash
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Locally calculated
|
||||||
|
sha256 3bbaa5ee64058a89949eb777de66ce94bfe3141892514172cfc9451c756802d5 vulkan-loader-1.3.262.tar.gz
|
||||||
|
sha256 43c0a37e6a0fa7ff3c843b3ec5a4fac84b712558ddac103fbd4c1649662a9ece LICENSE.txt
|
45
package/vulkan-loader/vulkan-loader.mk
Normal file
45
package/vulkan-loader/vulkan-loader.mk
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
################################################################################
|
||||||
|
#
|
||||||
|
# vulkan-loader
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
VULKAN_LOADER_VERSION = $(VULKAN_HEADERS_VERSION)
|
||||||
|
VULKAN_LOADER_SITE = $(call github,KhronosGroup,Vulkan-Loader,v$(VULKAN_LOADER_VERSION))
|
||||||
|
VULKAN_LOADER_LICENSE = Apache-2.0
|
||||||
|
VULKAN_LOADER_LICENSE_FILES = LICENSE.txt
|
||||||
|
VULKAN_LOADER_INSTALL_STAGING = YES
|
||||||
|
|
||||||
|
VULKAN_LOADER_DEPENDENCIES = host-pkgconf vulkan-headers
|
||||||
|
|
||||||
|
VULKAN_LOADER_CONF_OPTS += \
|
||||||
|
-DASSEMBLER_WORKS=FALSE \
|
||||||
|
-DBUILD_WSI_SCREEN_QNX_SUPPORT=OFF \
|
||||||
|
-DLOADER_CODEGEN=OFF
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_DIRECTFB),y)
|
||||||
|
VULKAN_LOADER_DEPENDENCIES += directfb
|
||||||
|
VULKAN_LOADER_CONF_OPTS += -DBUILD_WSI_DIRECTFB_SUPPORT=ON
|
||||||
|
else
|
||||||
|
VULKAN_LOADER_CONF_OPTS += -DBUILD_WSI_DIRECTFB_SUPPORT=OFF
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_LIBXCB),y)
|
||||||
|
VULKAN_LOADER_DEPENDENCIES += libxcb
|
||||||
|
VULKAN_LOADER_CONF_OPTS += \
|
||||||
|
-DBUILD_WSI_XCB_SUPPORT=ON \
|
||||||
|
-DBUILD_WSI_XLIB_SUPPORT=ON
|
||||||
|
else
|
||||||
|
VULKAN_LOADER_CONF_OPTS += \
|
||||||
|
-DBUILD_WSI_XCB_SUPPORT=OFF \
|
||||||
|
-DBUILD_WSI_XLIB_SUPPORT=OFF
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_WAYLAND),y)
|
||||||
|
VULKAN_LOADER_DEPENDENCIES += wayland
|
||||||
|
VULKAN_LOADER_CONF_OPTS += -DBUILD_WSI_WAYLAND_SUPPORT=ON
|
||||||
|
else
|
||||||
|
VULKAN_LOADER_CONF_OPTS += -DBUILD_WSI_WAYLAND_SUPPORT=OFF
|
||||||
|
endif
|
||||||
|
|
||||||
|
$(eval $(cmake-package))
|
Loading…
Reference in New Issue
Block a user