You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
684 B
Python
34 lines
684 B
Python
load("@rules_go//go:def.bzl", "go_binary", "go_library", "go_cross_binary")
|
|
load("@gazelle//:def.bzl", "gazelle")
|
|
|
|
gazelle(name = "gazelle")
|
|
|
|
go_library(
|
|
name = "bingbong_lib",
|
|
srcs = ["main.go"],
|
|
importpath = "bingbong",
|
|
visibility = ["//visibility:private"],
|
|
deps = ["@org_uber_go_zap//:zap"],
|
|
)
|
|
|
|
go_binary(
|
|
name = "bingbong",
|
|
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",
|
|
)
|