blob: cd07fe3c0f3de55a14eb7a4055af8e84aad5cfdd [file] [log] [blame]
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
CROS_WORKON_COMMIT="57779f9c27d62896f66cced9cc88443ae9585372"
CROS_WORKON_TREE=("e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb" "c920da127f686c434165b6056b1cd740f228df6b" "da7b73732df1f454a05ffc3efe5a90d416295e3f" "4a915605af1cd7e632f8e36813007c5403431db2" "a661abd7c4e459764c10f7e466ee615f8c8f0cee" "52a8a8b6d3bbca5e90d4761aa308a5541d52b1bb" "560dcfaf6405fec1de4abaf84150869126113ac7")
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_LOCALNAME="../platform2"
CROS_WORKON_SUBTREE=".gn camera/build camera/common camera/include camera/mojo common-mk metrics"
CROS_WORKON_OUTOFTREE_BUILD="1"
CROS_WORKON_INCREMENTAL_BUILD="1"
PLATFORM_SUBDIR="camera/common/jpeg/libjda"
inherit cros-camera cros-workon platform
DESCRIPTION="Library for using JPEG Decode Accelerator in Chrome"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
RDEPEND="
media-libs/cros-camera-libcamera_common
media-libs/cros-camera-libcamera_ipc"
# cros-camera-libcbm is needed here because this package uses
# //camera/common:libcamera_metrics rule. It doesn't directly use the package,
# but another rule in that BUILD.gn requires libcbm upon opening the .gn file.
# See crbug.com/995162 for detail.
DEPEND="${RDEPEND}
>=chromeos-base/metrics-0.0.1-r3152
media-libs/cros-camera-libcbm
media-libs/libyuv
virtual/pkgconfig"
src_install() {
platform_src_install
dolib.a "${OUT}/libjda.pic.a"
cros-camera_doheader ../../../include/cros-camera/jpeg_decode_accelerator.h
cros-camera_dopc ../libjda.pc.template
}