blob: 1edf92de8e6bad76c4f40ad64e081f314377720d [file] [log] [blame]
# Copyright 2019 The Chromium OS Authros. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=6
CROS_WORKON_COMMIT="414ba8197d43e497a0351a51e1aac8df607a2ff1"
CROS_WORKON_TREE="98070f785a6f08608250dbe61eef1098d7cc669d"
CROS_WORKON_PROJECT="chromiumos/platform/glbench"
inherit cros-workon
DESCRIPTION="Microbenchmark for opengl/gles"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform/glbench/"
SRC_URI=""
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE="opengl opengles"
RDEPEND="
>=dev-cpp/gflags-2.0
media-libs/libpng
virtual/opengles
media-libs/waffle"
DEPEND="${RDEPEND}
x11-drivers/opengles-headers"
src_compile() {
emake -C src
}
src_install() {
local glbench_dir="/usr/local/${PN}"
# Install the executable.
exeinto "${glbench_dir}/bin"
doexe glbench windowmanagertest
# Install the list files.
insinto "${glbench_dir}/files"
doins glbench_fixedbad_images.txt
doins glbench_knownbad_images.txt
doins glbench_reference_images.txt
}