forked from bazelbuild/rules_cc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD
More file actions
44 lines (37 loc) · 979 Bytes
/
BUILD
File metadata and controls
44 lines (37 loc) · 979 Bytes
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
load("//cc:cc_library.bzl", "cc_library")
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
exports_files(["LICENSE"])
cc_library(
name = "empty_lib",
# compatible_with = [...]
tags = [
"__DONT_DEPEND_ON_DEF_PARSER__",
],
)
# Label flag for extra libraries to be linked into every binary.
# TODO(bazel-team): Support passing flag multiple times to build a list.
label_flag(
name = "link_extra_libs",
build_setting_default = ":empty_lib",
)
# The final extra library to be linked into every binary target. This collects
# the above flag, but may also include more libraries depending on config.
cc_library(
name = "link_extra_lib",
# compatible_with = [...]
tags = [
"__DONT_DEPEND_ON_DEF_PARSER__",
],
deps = [
":link_extra_libs",
],
)
filegroup(
name = "for_bazel_tests",
testonly = 1,
srcs = [
"BUILD",
],
visibility = ["//:__subpackages__"],
)