2023-03-09 09:23:42 -05:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "cryptsetup",
|
2023-05-19 08:30:46 -04:00
|
|
|
srcs = [
|
2023-07-17 07:55:31 -04:00
|
|
|
"cryptsetup.go",
|
2023-05-19 08:30:46 -04:00
|
|
|
"cryptsetup_cgo.go",
|
2023-07-17 07:55:31 -04:00
|
|
|
"cryptsetup_cross.go",
|
2023-05-19 08:30:46 -04:00
|
|
|
],
|
2023-03-09 09:23:42 -05:00
|
|
|
# keep
|
|
|
|
cdeps = [
|
2023-11-23 11:44:31 -05:00
|
|
|
"@//nix/cc:cryptsetup",
|
2023-03-09 09:23:42 -05:00
|
|
|
],
|
|
|
|
cgo = True,
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/cryptsetup",
|
|
|
|
visibility = ["//:__subpackages__"],
|
2023-07-17 07:55:31 -04:00
|
|
|
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": [],
|
|
|
|
}),
|
2023-03-09 09:23:42 -05:00
|
|
|
)
|