| # Copyright 2018 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=6 |
| |
| CROS_WORKON_COMMIT="388009cab8aca7ef2eb6652c67fc175fa0cc3326" |
| CROS_WORKON_TREE=("e8b3eaf05deff1c68038c92137023b323a0062c4" "2ef18d1c42c7aee2c4bb4110359103045c055adf" "e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb") |
| CROS_WORKON_LOCALNAME="../platform2" |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_DESTDIR="${S}/platform2" |
| CROS_WORKON_SUBTREE="arc/codec-test common-mk .gn" |
| |
| WANT_LIBCHROME="no" |
| PLATFORM_ARC_BUILD="yes" |
| PLATFORM_SUBDIR="arc/codec-test" |
| |
| inherit multilib-minimal arc-build cros-workon platform |
| |
| DESCRIPTION="ARC++ video codec end-to-end test" |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/arc/codec-test/" |
| |
| LICENSE="BSD-Google" |
| SLOT="0" |
| KEYWORDS="*" |
| IUSE="" |
| |
| RDEPEND="" |
| DEPEND=" |
| dev-cpp/arc-gtest |
| ${RDEPEND} |
| " |
| |
| _export_build_variables() { |
| # Variables for arc-gtest package. |
| export GTEST_CONFIG="${ARC_SYSROOT}/vendor/bin/gtest-config-${ABI}" |
| export GTEST_PREFIX="${ARC_SYSROOT}/vendor" |
| export GTEST_LIBDIR="${ARC_SYSROOT}/vendor/$(get_libdir)" |
| } |
| |
| src_configure() { |
| # Use arc-build base class to select the right compiler. |
| arc-build-select-clang |
| BUILD_DIR="$(cros-workon_get_build_dir)" |
| |
| multilib-minimal_src_configure |
| } |
| |
| multilib_src_configure() { |
| _export_build_variables |
| platform_configure |
| } |
| |
| src_compile() { |
| multilib-minimal_src_compile |
| } |
| |
| multilib_src_compile() { |
| _export_build_variables |
| platform_src_compile |
| } |
| |
| multilib_src_install() { |
| exeinto "/usr/libexec/arc-binary-tests" |
| |
| newexe "${OUT}/arcvideodecoder_test" "arcvideodecoder_test_${ABI}" |
| newexe "${OUT}/arcvideoencoder_test" "arcvideoencoder_test_${ABI}" |
| } |