1*bcb5dc79SHONG Yifanload("//:bzl_library.bzl", "bzl_library") 2*bcb5dc79SHONG Yifan 3*bcb5dc79SHONG Yifanpackage( 4*bcb5dc79SHONG Yifan default_applicable_licenses = ["//:license"], 5*bcb5dc79SHONG Yifan default_visibility = ["//visibility:public"], 6*bcb5dc79SHONG Yifan) 7*bcb5dc79SHONG Yifan 8*bcb5dc79SHONG Yifanlicenses(["notice"]) 9*bcb5dc79SHONG Yifan 10*bcb5dc79SHONG Yifan# export bzl files for the documentation 11*bcb5dc79SHONG Yifanexports_files( 12*bcb5dc79SHONG Yifan glob(["*.bzl"]), 13*bcb5dc79SHONG Yifan visibility = ["//:__subpackages__"], 14*bcb5dc79SHONG Yifan) 15*bcb5dc79SHONG Yifan 16*bcb5dc79SHONG Yifanbzl_library( 17*bcb5dc79SHONG Yifan name = "collections", 18*bcb5dc79SHONG Yifan srcs = ["collections.bzl"], 19*bcb5dc79SHONG Yifan) 20*bcb5dc79SHONG Yifan 21*bcb5dc79SHONG Yifanbzl_library( 22*bcb5dc79SHONG Yifan name = "dicts", 23*bcb5dc79SHONG Yifan srcs = ["dicts.bzl"], 24*bcb5dc79SHONG Yifan) 25*bcb5dc79SHONG Yifan 26*bcb5dc79SHONG Yifanbzl_library( 27*bcb5dc79SHONG Yifan name = "modules", 28*bcb5dc79SHONG Yifan srcs = ["modules.bzl"], 29*bcb5dc79SHONG Yifan) 30*bcb5dc79SHONG Yifan 31*bcb5dc79SHONG Yifanbzl_library( 32*bcb5dc79SHONG Yifan name = "partial", 33*bcb5dc79SHONG Yifan srcs = ["partial.bzl"], 34*bcb5dc79SHONG Yifan) 35*bcb5dc79SHONG Yifan 36*bcb5dc79SHONG Yifanbzl_library( 37*bcb5dc79SHONG Yifan name = "paths", 38*bcb5dc79SHONG Yifan srcs = ["paths.bzl"], 39*bcb5dc79SHONG Yifan) 40*bcb5dc79SHONG Yifan 41*bcb5dc79SHONG Yifanbzl_library( 42*bcb5dc79SHONG Yifan name = "selects", 43*bcb5dc79SHONG Yifan srcs = ["selects.bzl"], 44*bcb5dc79SHONG Yifan) 45*bcb5dc79SHONG Yifan 46*bcb5dc79SHONG Yifanbzl_library( 47*bcb5dc79SHONG Yifan name = "sets", 48*bcb5dc79SHONG Yifan srcs = ["sets.bzl"], 49*bcb5dc79SHONG Yifan deps = [ 50*bcb5dc79SHONG Yifan ":new_sets", 51*bcb5dc79SHONG Yifan ], 52*bcb5dc79SHONG Yifan) 53*bcb5dc79SHONG Yifan 54*bcb5dc79SHONG Yifanbzl_library( 55*bcb5dc79SHONG Yifan name = "new_sets", 56*bcb5dc79SHONG Yifan srcs = ["new_sets.bzl"], 57*bcb5dc79SHONG Yifan deps = [ 58*bcb5dc79SHONG Yifan ":dicts", 59*bcb5dc79SHONG Yifan ], 60*bcb5dc79SHONG Yifan) 61*bcb5dc79SHONG Yifan 62*bcb5dc79SHONG Yifanbzl_library( 63*bcb5dc79SHONG Yifan name = "shell", 64*bcb5dc79SHONG Yifan srcs = ["shell.bzl"], 65*bcb5dc79SHONG Yifan) 66*bcb5dc79SHONG Yifan 67*bcb5dc79SHONG Yifanbzl_library( 68*bcb5dc79SHONG Yifan name = "structs", 69*bcb5dc79SHONG Yifan srcs = ["structs.bzl"], 70*bcb5dc79SHONG Yifan) 71*bcb5dc79SHONG Yifan 72*bcb5dc79SHONG Yifanbzl_library( 73*bcb5dc79SHONG Yifan name = "subpackages", 74*bcb5dc79SHONG Yifan srcs = ["subpackages.bzl"], 75*bcb5dc79SHONG Yifan) 76*bcb5dc79SHONG Yifan 77*bcb5dc79SHONG Yifanbzl_library( 78*bcb5dc79SHONG Yifan name = "types", 79*bcb5dc79SHONG Yifan srcs = ["types.bzl"], 80*bcb5dc79SHONG Yifan) 81*bcb5dc79SHONG Yifan 82*bcb5dc79SHONG Yifanbzl_library( 83*bcb5dc79SHONG Yifan name = "unittest", 84*bcb5dc79SHONG Yifan srcs = ["unittest.bzl"], 85*bcb5dc79SHONG Yifan deps = [ 86*bcb5dc79SHONG Yifan ":new_sets", 87*bcb5dc79SHONG Yifan ":partial", 88*bcb5dc79SHONG Yifan ":sets", 89*bcb5dc79SHONG Yifan ":types", 90*bcb5dc79SHONG Yifan ], 91*bcb5dc79SHONG Yifan) 92*bcb5dc79SHONG Yifan 93*bcb5dc79SHONG Yifanbzl_library( 94*bcb5dc79SHONG Yifan name = "versions", 95*bcb5dc79SHONG Yifan srcs = ["versions.bzl"], 96*bcb5dc79SHONG Yifan) 97*bcb5dc79SHONG Yifan 98*bcb5dc79SHONG Yifanfilegroup( 99*bcb5dc79SHONG Yifan name = "test_deps", 100*bcb5dc79SHONG Yifan testonly = True, 101*bcb5dc79SHONG Yifan srcs = ["BUILD"] + glob(["*.bzl"]), 102*bcb5dc79SHONG Yifan) 103*bcb5dc79SHONG Yifan 104*bcb5dc79SHONG Yifan# The files needed for distribution 105*bcb5dc79SHONG Yifanfilegroup( 106*bcb5dc79SHONG Yifan name = "distribution", 107*bcb5dc79SHONG Yifan srcs = glob(["*"]), 108*bcb5dc79SHONG Yifan visibility = [ 109*bcb5dc79SHONG Yifan "//:__pkg__", 110*bcb5dc79SHONG Yifan "//distribution:__pkg__", 111*bcb5dc79SHONG Yifan ], 112*bcb5dc79SHONG Yifan) 113*bcb5dc79SHONG Yifan 114*bcb5dc79SHONG Yifanbzl_library( 115*bcb5dc79SHONG Yifan name = "old_sets", 116*bcb5dc79SHONG Yifan srcs = ["old_sets.bzl"], 117*bcb5dc79SHONG Yifan) 118