| # Copyright 2023 The ChromiumOS Authors |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=7 |
| |
| CROS_GO_PACKAGES=( |
| "chromiumos/xdr/secagentd/..." |
| ) |
| |
| CROS_WORKON_LOCALNAME="platform2" |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| CROS_WORKON_SUBTREE="common-mk secagentd .gn" |
| |
| PLATFORM_SUBDIR="secagentd/proto" |
| |
| inherit cros-workon cros-go platform |
| |
| DESCRIPTION="secagentd xdr go proto for ChromeOS" |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/main/secagentd" |
| |
| LICENSE="BSD-Google" |
| KEYWORDS="~*" |
| |
| RDEPEND=" |
| dev-libs/protobuf:= |
| " |
| |
| DEPEND=" |
| ${RDEPEND} |
| " |
| |
| BDEPEND=" |
| dev-go/protobuf-legacy-api |
| dev-libs/protobuf |
| " |
| |
| src_unpack() { |
| platform_src_unpack |
| CROS_GO_WORKSPACE="${OUT}/gen/go" |
| } |
| |
| src_install() { |
| platform_src_install |
| |
| cros-go_src_install |
| } |