blob: 785824d9d956a6d124c82ead6de0ea1fcf75c382 [file] [log] [blame]
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
CROS_WORKON_COMMIT="3473f1b53527916d1521ab6b44660c8b80047dd6"
CROS_WORKON_TREE="8e4ff0a877fc435e58473a3d62d668174f83c6d7"
CROS_WORKON_PROJECT="chromiumos/platform/drm-tests"
inherit cros-sanitizers cros-workon toolchain-funcs
DESCRIPTION="Chrome OS DRM Tests"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform/drm-tests/"
SRC_URI=""
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE="vulkan"
RDEPEND="virtual/opengles
|| ( media-libs/mesa[gbm] media-libs/minigbm )
media-libs/libsync
vulkan? (
media-libs/vulkan-loader
virtual/vulkan-icd
)"
DEPEND="${RDEPEND}
x11-drivers/opengles-headers"
src_configure() {
sanitizers-setup-env
default
}
src_compile() {
tc-export CC
emake USE_VULKAN="$(usex vulkan 1 0)"
}
src_install() {
cd build-opt-local || return
dobin atomictest drm_cursor_test gamma_test linear_bo_test \
mapped_texture_test mmap_test null_platform_test plane_test \
synctest swrast_test vgem_test udmabuf_create_test
if use vulkan; then
dobin vk_glow
fi
}