constellation/internal/cryptsetup/BUILD.bazel
Daniel Weiße ac1128d07f
cryptsetup: unify code (#2043)
* Add common backend for interacting with cryptsetup

* Use common cryptsetup backend in bootstrapper

* Use common cryptsetup backend in disk-mapper

* Use common cryptsetup backend in csi lib

---------

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
2023-07-17 13:55:31 +02:00

27 lines
730 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "cryptsetup",
srcs = [
"cryptsetup.go",
"cryptsetup_cgo.go",
"cryptsetup_cross.go",
],
# keep
cdeps = [
"@//rpm:cryptsetup",
],
cgo = True,
importpath = "github.com/edgelesssys/constellation/v2/internal/cryptsetup",
visibility = ["//:__subpackages__"],
deps = select({
"@io_bazel_rules_go//go/platform:android": [
"@com_github_martinjungblut_go_cryptsetup//:go-cryptsetup",
],
"@io_bazel_rules_go//go/platform:linux": [
"@com_github_martinjungblut_go_cryptsetup//:go-cryptsetup",
],
"//conditions:default": [],
}),
)