1*bcb5dc79SHONG Yifanload("@bazel_skylib//:bzl_library.bzl", "bzl_library") 2*bcb5dc79SHONG Yifan 3*bcb5dc79SHONG Yifanpackage(default_applicable_licenses = ["//:license"]) 4*bcb5dc79SHONG Yifan 5*bcb5dc79SHONG Yifanlicenses(["notice"]) 6*bcb5dc79SHONG Yifan 7*bcb5dc79SHONG Yifan# export bzl files for the documentation 8*bcb5dc79SHONG Yifanexports_files( 9*bcb5dc79SHONG Yifan glob(["*.bzl"]), 10*bcb5dc79SHONG Yifan visibility = ["//:__subpackages__"], 11*bcb5dc79SHONG Yifan) 12*bcb5dc79SHONG Yifan 13*bcb5dc79SHONG Yifanbzl_library( 14*bcb5dc79SHONG Yifan name = "directory", 15*bcb5dc79SHONG Yifan srcs = ["directory.bzl"], 16*bcb5dc79SHONG Yifan visibility = ["//visibility:public"], 17*bcb5dc79SHONG Yifan deps = [ 18*bcb5dc79SHONG Yifan ":providers", 19*bcb5dc79SHONG Yifan "//lib:paths", 20*bcb5dc79SHONG Yifan ], 21*bcb5dc79SHONG Yifan) 22*bcb5dc79SHONG Yifan 23*bcb5dc79SHONG Yifanbzl_library( 24*bcb5dc79SHONG Yifan name = "glob", 25*bcb5dc79SHONG Yifan srcs = ["glob.bzl"], 26*bcb5dc79SHONG Yifan visibility = ["//visibility:public"], 27*bcb5dc79SHONG Yifan deps = [ 28*bcb5dc79SHONG Yifan ":providers", 29*bcb5dc79SHONG Yifan ], 30*bcb5dc79SHONG Yifan) 31*bcb5dc79SHONG Yifan 32*bcb5dc79SHONG Yifanbzl_library( 33*bcb5dc79SHONG Yifan name = "providers", 34*bcb5dc79SHONG Yifan srcs = ["providers.bzl"], 35*bcb5dc79SHONG Yifan visibility = ["//visibility:public"], 36*bcb5dc79SHONG Yifan deps = [ 37*bcb5dc79SHONG Yifan "//rules/directory/private:glob", 38*bcb5dc79SHONG Yifan "//rules/directory/private:paths", 39*bcb5dc79SHONG Yifan ], 40*bcb5dc79SHONG Yifan) 41*bcb5dc79SHONG Yifan 42*bcb5dc79SHONG Yifanbzl_library( 43*bcb5dc79SHONG Yifan name = "subdirectory", 44*bcb5dc79SHONG Yifan srcs = ["subdirectory.bzl"], 45*bcb5dc79SHONG Yifan visibility = ["//visibility:public"], 46*bcb5dc79SHONG Yifan deps = [ 47*bcb5dc79SHONG Yifan ":providers", 48*bcb5dc79SHONG Yifan ], 49*bcb5dc79SHONG Yifan) 50*bcb5dc79SHONG Yifan 51*bcb5dc79SHONG Yifan# The files needed for distribution 52*bcb5dc79SHONG Yifanfilegroup( 53*bcb5dc79SHONG Yifan name = "distribution", 54*bcb5dc79SHONG Yifan srcs = [ 55*bcb5dc79SHONG Yifan "BUILD", 56*bcb5dc79SHONG Yifan ] + glob(["*.bzl"]), 57*bcb5dc79SHONG Yifan visibility = [ 58*bcb5dc79SHONG Yifan "//:__pkg__", 59*bcb5dc79SHONG Yifan ], 60*bcb5dc79SHONG Yifan) 61