5ec5a47708
Rather than creating a separate rule for each package, we can just create a generic one and reuse it. Also switch to keyword arguments in the resulting macros, as it's easier to read.
29 lines
658 B
Python
29 lines
658 B
Python
load("//ts:vendor.bzl", "copy_css_browser_selector", "copy_jquery", "copy_jquery_ui", "copy_protobufjs")
|
|
|
|
copy_jquery(name = "jquery")
|
|
|
|
copy_jquery_ui(name = "jquery-ui")
|
|
|
|
copy_protobufjs(name = "protobufjs")
|
|
|
|
copy_css_browser_selector(name = "css-browser-selector")
|
|
|
|
files = [
|
|
"jquery",
|
|
"jquery-ui",
|
|
"protobufjs",
|
|
"css-browser-selector",
|
|
]
|
|
|
|
directories = [
|
|
"mathjax",
|
|
]
|
|
|
|
filegroup(
|
|
name = "vendor",
|
|
srcs = glob(["*.js"]) +
|
|
["//qt/aqt/data/web/js/vendor:{}".format(file) for file in files] +
|
|
["//qt/aqt/data/web/js/vendor/{}".format(dir) for dir in directories],
|
|
visibility = ["//qt:__subpackages__"],
|
|
)
|