2023-02-16 12:14:43 +00:00
|
|
|
load("//cc:defs.bzl", "cc_library")
|
|
|
|
|
2023-02-14 15:49:18 +00:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
2018-12-12 19:24:00 +00:00
|
|
|
|
|
|
|
licenses(["notice"])
|
|
|
|
|
|
|
|
exports_files(["LICENSE"])
|
2023-02-16 12:14:43 +00:00
|
|
|
|
|
|
|
cc_library(name = "empty_lib")
|
|
|
|
|
|
|
|
# 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",
|
|
|
|
deps = [
|
|
|
|
":link_extra_libs",
|
|
|
|
],
|
|
|
|
)
|