2021-11-05 19:29:07 +02:00
|
|
|
load("//rules:go_binary_override.bzl", "go_binary")
|
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
2021-06-07 23:17:19 +03:00
|
|
|
|
|
|
|
go_library(
|
2021-06-19 16:32:07 +03:00
|
|
|
name = "hello_lib",
|
2021-06-07 23:17:19 +03:00
|
|
|
srcs = ["hello.go"],
|
|
|
|
cgo = True,
|
|
|
|
importpath = "github.com/motiejus/bazel-zig-cc/test",
|
|
|
|
visibility = ["//visibility:private"],
|
2021-07-21 15:02:04 +03:00
|
|
|
deps = [
|
2021-11-05 19:29:07 +02:00
|
|
|
"@com_github_datadog_zstd//:zstd",
|
|
|
|
"@com_github_mattn_go_sqlite3//:go-sqlite3",
|
2021-07-21 15:02:04 +03:00
|
|
|
],
|
2021-06-07 23:17:19 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
go_binary(
|
2021-06-19 16:32:07 +03:00
|
|
|
name = "hello",
|
|
|
|
embed = [":hello_lib"],
|
2021-06-07 23:17:19 +03:00
|
|
|
static = "on",
|
|
|
|
visibility = ["//visibility:public"],
|
2021-04-10 01:05:01 +03:00
|
|
|
)
|