generated from albertocavalcante/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
62 lines (56 loc) · 1.25 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
load("@gazelle//:def.bzl", "gazelle")
load("@rules_go//go:def.bzl", "go_binary", "go_library", "nogo")
load("//:analyzers.bzl", "go_vet_analyzers_labels")
# gazelle:proto disable_global
gazelle(name = "gazelle")
nogo(
name = "garf_nogo",
visibility = ["//visibility:public"],
deps = go_vet_analyzers_labels(),
)
go_library(
name = "garf_lib",
srcs = ["garf.go"],
importpath = "github.com/albertocavalcante/garf",
visibility = ["//visibility:private"],
deps = [
"//cmd",
],
)
go_binary(
name = "garf",
embed = [":garf_lib"],
visibility = ["//visibility:public"],
)
[
go_binary(
name = "garf-%s-%s" % (os, arch),
embed = [":garf_lib"],
gc_linkopts = [
"-s",
"-w",
],
goarch = arch,
goos = os,
pure = "off",
visibility = ["//visibility:public"],
)
for os, arch in [
("linux", "amd64"),
("linux", "arm64"),
]
]
[
go_binary(
name = "garf-%s-%s" % (os, arch),
embed = [":garf_lib"],
goarch = arch,
goos = os,
pure = "off",
visibility = ["//visibility:public"],
)
for os, arch in [
("windows", "amd64"),
("windows", "arm64"),
]
]