-
Notifications
You must be signed in to change notification settings - Fork 17
/
BUILD.bazel
116 lines (102 loc) · 2.43 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@buildifier_prebuilt//:rules.bzl", "buildifier")
load("@gazelle//:def.bzl", "gazelle", "gazelle_binary")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
load("//bazeldnf:defs.bzl", "bazeldnf", "rpmtree", "tar2files")
gazelle_binary(
name = "gazelle_binary",
languages = [
"@bazel_skylib_gazelle_plugin//bzl",
"@gazelle//language/go",
"@gazelle//language/proto",
],
)
# gazelle:prefix github.com/rmohr/bazeldnf
# gazelle:resolve go github.com/bazelbuild/buildtools/build @com_github_bazelbuild_buildtools//build:go_default_library
# gazelle:resolve go github.com/bazelbuild/buildtools/edit @com_github_bazelbuild_buildtools//edit:go_default_library
gazelle(
name = "gazelle",
args = [
"-exclude",
"pkg/bazel/testdata",
],
gazelle = "//:gazelle_binary",
)
gazelle(
name = "gazelle.check",
args = [
"-exclude",
"pkg/bazel/testdata",
],
gazelle = "//:gazelle_binary",
mode = "diff",
)
buildifier(
name = "buildifier",
)
buildifier(
name = "buildifier.check",
diff_command = "diff -u",
exclude_patterns = [
"./.git/*",
"./**/testdata/*",
],
lint_mode = "warn",
mode = "diff",
)
bazeldnf(
name = "bazeldnf",
)
rpmtree(
name = "something",
rpms = [
"@libvirt-libs-6.1.0-2.fc32.x86_64.rpm//rpm",
"@libvirt-devel-6.1.0-2.fc32.x86_64.rpm//rpm",
],
)
tar2files(
name = "something_libs",
files = {
"/usr/lib64": [
"libvirt.so.0",
"libvirt.so.0.6001.0",
],
},
tar = ":something",
visibility = ["//visibility:public"],
)
pkg_tar(
name = "whatever",
deps = [":something"],
)
cc_library(
name = "bar",
srcs = ["//:something_libs/usr/lib64"],
)
bzl_library(
name = "build_deps",
srcs = ["build_deps.bzl"],
visibility = ["//visibility:public"],
deps = ["@gazelle//:deps"],
)
bzl_library(
name = "def",
srcs = ["def.bzl"],
visibility = ["//visibility:public"],
deps = ["@bazeldnf//bazeldnf:defs"],
)
bzl_library(
name = "deps",
srcs = ["deps.bzl"],
visibility = ["//visibility:public"],
deps = [
"@bazeldnf//bazeldnf:defs",
"@bazeldnf//bazeldnf:deps",
],
)
bzl_library(
name = "test_deps",
srcs = ["test_deps.bzl"],
visibility = ["//visibility:public"],
deps = ["@bazeldnf//bazeldnf:defs"],
)