|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
load("@rules_go//go:def.bzl", "go_binary", "go_library")
|
|
|
|
|
load("@rules_go//go:def.bzl", "go_binary", "go_library", "go_cross_binary")
|
|
|
|
|
load("@gazelle//:def.bzl", "gazelle")
|
|
|
|
|
|
|
|
|
|
gazelle(name = "gazelle")
|
|
|
|
@ -16,3 +16,18 @@ go_binary(
|
|
|
|
|
embed = [":bingbong_lib"],
|
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
platform(
|
|
|
|
|
name = "macos",
|
|
|
|
|
constraint_values = [
|
|
|
|
|
"@platforms//os:osx",
|
|
|
|
|
"@platforms//cpu:x86_64",
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
go_cross_binary(
|
|
|
|
|
name = "darwin_binary",
|
|
|
|
|
platform = ":macos",
|
|
|
|
|
sdk_version = "1.21.0",
|
|
|
|
|
target = "bingbong",
|
|
|
|
|
)
|
|
|
|
|