blob: 1b4afee355784306d472648eb77c3f002891ba0b [file] [log] [blame]
# Copyright 2023 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
load("@rules_go//go:def.bzl", "go_binary", "go_library")
go_binary(
name = "xpak",
embed = [":xpak_lib"],
visibility = ["//visibility:private"],
)
go_library(
name = "xpak_lib",
srcs = [
"extract_metadata.go",
"main.go",
"split.go",
],
importpath = "cros.local/bazel/ebuild/cmd/xpak",
visibility = ["//visibility:private"],
deps = [
"//bazel/ebuild/private/common/bazelutil",
"//bazel/ebuild/private/common/cliutil",
"//bazel/ebuild/private/common/portage/binarypackage",
"//bazel/ebuild/private/common/portage/dependency",
"//bazel/ebuild/private/common/tar",
"@com_github_urfave_cli_v2//:cli",
],
)