1*eed53cd4SHONG Yifanload("//cc:defs.bzl", "cc_library") 2*eed53cd4SHONG Yifan 3*eed53cd4SHONG Yifanpackage(default_visibility = ["//visibility:public"]) 4*eed53cd4SHONG Yifan 5*eed53cd4SHONG Yifanlicenses(["notice"]) 6*eed53cd4SHONG Yifan 7*eed53cd4SHONG Yifanexports_files(["LICENSE"]) 8*eed53cd4SHONG Yifan 9*eed53cd4SHONG Yifancc_library(name = "empty_lib") 10*eed53cd4SHONG Yifan 11*eed53cd4SHONG Yifan# Label flag for extra libraries to be linked into every binary. 12*eed53cd4SHONG Yifan# TODO(bazel-team): Support passing flag multiple times to build a list. 13*eed53cd4SHONG Yifanlabel_flag( 14*eed53cd4SHONG Yifan name = "link_extra_libs", 15*eed53cd4SHONG Yifan build_setting_default = ":empty_lib", 16*eed53cd4SHONG Yifan) 17*eed53cd4SHONG Yifan 18*eed53cd4SHONG Yifan# The final extra library to be linked into every binary target. This collects 19*eed53cd4SHONG Yifan# the above flag, but may also include more libraries depending on config. 20*eed53cd4SHONG Yifancc_library( 21*eed53cd4SHONG Yifan name = "link_extra_lib", 22*eed53cd4SHONG Yifan deps = [ 23*eed53cd4SHONG Yifan ":link_extra_libs", 24*eed53cd4SHONG Yifan ], 25*eed53cd4SHONG Yifan) 26