mirror of https://github.com/bazelbuild/rules_cc
26 lines
650 B
Python
26 lines
650 B
Python
load("//cc:cc_library.bzl", "cc_library")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
licenses(["notice"])
|
|
|
|
exports_files(["LICENSE"])
|
|
|
|
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",
|
|
],
|
|
)
|