| # Copyright 2019 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=6 |
| |
| CROS_WORKON_COMMIT="b05e4a6b92b2cfe608b6cd8d5d37168680fc080e" |
| CROS_WORKON_TREE=("52a8a8b6d3bbca5e90d4761aa308a5541d52b1bb" "bf3184eecb9926a81042768d016ede2399b2a52f" "e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb") |
| CROS_GO_PACKAGES=( |
| "chromiumos/wilco_dtc/..." |
| ) |
| |
| CROS_WORKON_INCREMENTAL_BUILD=1 |
| CROS_WORKON_LOCALNAME="platform2" |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| CROS_WORKON_SUBTREE="common-mk diagnostics/grpc .gn" |
| |
| PLATFORM_SUBDIR="diagnostics/grpc" |
| |
| WANT_LIBCHROME="no" |
| WANT_LIBBRILLO="no" |
| inherit cros-go cros-workon platform |
| |
| DESCRIPTION="Chrome OS Wilco DTC proto/gRPC API" |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/diagnostics/grpc" |
| LICENSE="BSD-Google" |
| SLOT="0" |
| KEYWORDS="*" |
| |
| RDEPEND=" |
| dev-libs/protobuf:= |
| net-libs/grpc:= |
| " |
| DEPEND=" |
| ${RDEPEND} |
| dev-go/protobuf |
| dev-go/grpc |
| " |
| |
| src_unpack() { |
| platform_src_unpack |
| CROS_GO_WORKSPACE="${OUT}/gen/go" |
| } |
| |
| src_install() { |
| insinto /usr/"$(get_libdir)"/pkgconfig |
| doins wilco_dtc_grpc_protos.pc |
| |
| insinto /usr/include/wilco_dtc/proto_bindings |
| doins "${OUT}"/gen/include/*.h |
| |
| dolib.a "${OUT}"/*.a |
| |
| cros-go_src_install |
| } |