| # Copyright 2018 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=7 |
| |
| CROS_GO_PACKAGES=( |
| "chromiumos/policy/..." |
| ) |
| |
| CROS_WORKON_INCREMENTAL_BUILD=1 |
| CROS_WORKON_LOCALNAME="platform2" |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| CROS_WORKON_SUBTREE="common-mk policy_proto .gn" |
| |
| PLATFORM_SUBDIR="policy_proto" |
| |
| inherit cros-go cros-workon platform |
| |
| DESCRIPTION="Chrome OS policy protocol buffer binding for go" |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/policy_proto" |
| LICENSE="BSD-Google" |
| KEYWORDS="~*" |
| |
| DEPEND=" |
| >=chromeos-base/protofiles-0.0.39:= |
| dev-go/protobuf:= |
| dev-libs/protobuf:= |
| " |
| |
| src_unpack() { |
| platform_src_unpack |
| CROS_GO_WORKSPACE="${OUT}/gen/go" |
| } |