1*4882a593SmuzhiyunDESCRIPTION = "The Vulkan Samples is collection of resources to help develop optimized Vulkan applications." 2*4882a593SmuzhiyunHOMEPAGE = "https://www.khronos.org/vulkan/" 3*4882a593SmuzhiyunBUGTRACKER = "https://github.com/KhronosGroup/Vulkan-Samples/issues" 4*4882a593SmuzhiyunLICENSE = "Apache-2.0" 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=48aa35cefb768436223a6e7f18dc2a2a" 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunSRC_URI = "gitsm://github.com/KhronosGroup/Vulkan-Samples.git;branch=main;protocol=https;lfs=0 \ 9*4882a593Smuzhiyun file://0001-CMakeLists.txt-do-not-hardcode-lib-as-installation-t.patch \ 10*4882a593Smuzhiyun file://debugfix.patch \ 11*4882a593Smuzhiyun " 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunUPSTREAM_CHECK_COMMITS = "1" 14*4882a593SmuzhiyunSRCREV = "28ca2dad83ceb157386e0708f5151ae89c177ad4" 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunUPSTREAM_CHECK_GITTAGREGEX = "These are not the releases you're looking for" 17*4882a593SmuzhiyunS = "${WORKDIR}/git" 18*4882a593Smuzhiyun 19*4882a593SmuzhiyunREQUIRED_DISTRO_FEATURES = 'vulkan' 20*4882a593SmuzhiyunCOMPATIBLE_HOST = "(x86_64|aarch64|mips64|powerpc64|riscv64).*-linux" 21*4882a593Smuzhiyun 22*4882a593Smuzhiyuninherit cmake features_check 23*4882a593Smuzhiyun 24*4882a593SmuzhiyunFILES:${PN} += "${datadir}" 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun# 27*4882a593Smuzhiyun# There is code to remove the prefix CMAKE_SOURCE_DIR from __FILENAME__ paths 28*4882a593Smuzhiyun# used for logging with LOGE in the code. We need to make this match the value we use 29*4882a593Smuzhiyun# in the debug source remapping from CFLAGS 30*4882a593Smuzhiyun# 31*4882a593SmuzhiyunEXTRA_OECMAKE += "-DCMAKE_DEBUG_SRCDIR=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/" 32*4882a593Smuzhiyun# Binaries built with PCH enabled don't appear reproducible, differing results were seen 33*4882a593Smuzhiyun# from some builds depending on the point the PCH was compiled. Disable it to be 34*4882a593Smuzhiyun# deterministic 35*4882a593SmuzhiyunEXTRA_OECMAKE += "-DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON" 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun# This needs to be specified explicitly to avoid xcb/xlib dependencies 38*4882a593SmuzhiyunEXTRA_OECMAKE += "-DVKB_WSI_SELECTION=D2D" 39