mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
opencl-cts: build GL, GL ES and Vulkan interoperability tests
Follow DISTRO_FEATURES and build optional GL, GL ES and Vulkan interoperability tests. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
596e74fc68
commit
f71c0f655a
|
|
@ -18,6 +18,14 @@ SRCREV = "e96edaef8b582c2412a2aab4b82f5c88af88617d"
|
|||
|
||||
EXTRA_OECMAKE:append = " -DENABLE_WERROR=OFF -DCL_INCLUDE_DIR=${STAGING_INCDIR} -DCL_LIB_DIR=${STAGING_LIBDIR} -DOPENCL_LIBRARIES=OpenCL"
|
||||
|
||||
PACKAGECONFIG = " \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl gles', '', d)} \
|
||||
${@bb.utils.filter('DISTRO_FEATURES', 'vulkan', d)} \
|
||||
"
|
||||
PACKAGECONFIG[opengl] = "-DGL_IS_SUPPORTED=ON,-DGL_IS_SUPPORTED=OFF,virtual/libgl glew freeglut"
|
||||
PACKAGECONFIG[gles] = "-DGLES_IS_SUPPORTED=ON,-DGLES_IS_SUPPORTED=OFF,virtual/egl virtual/libgles2"
|
||||
PACKAGECONFIG[vulkan] = "-DVULKAN_IS_SUPPORTED=ON,-DVULKAN_IS_SUPPORTED=OFF,vulkan-headers glslang-native"
|
||||
|
||||
SECURITY_STRINGFORMAT:remove = "-Werror=format-security"
|
||||
|
||||
do_install() {
|
||||
|
|
@ -25,6 +33,7 @@ do_install() {
|
|||
cp -r ${B}/test_conformance/* ${D}${bindir}/opencl_test_conformance
|
||||
sed -i 's:/usr/bin/python:/usr/bin/python3:g' ${D}${bindir}/opencl_test_conformance/run_conformance.py
|
||||
find "${D}${bindir}/opencl_test_conformance" -name cmake_install.cmake -type f -delete
|
||||
find "${D}${bindir}/opencl_test_conformance" -name libvulkan_wrapper.a -type f -delete
|
||||
find "${D}${bindir}/opencl_test_conformance" -name CMakeFiles -type d -exec rm -rf "{}" \; -depth
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user