2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-11-27 17:43:27 +00:00
bazel-lib/lib/tests/write_source_files/subdir/BUILD.bazel
Greg Magolan 3b93ee0baa
Add DefaultOutputPathInfo provider and update write_source_files to accept it (#48)
Also update write_source_files to accept DirectoryPathInfo
2022-03-14 17:33:52 -07:00

20 lines
534 B
Python

load("//lib:write_source_files.bzl", "write_source_files")
genrule(
name = "c-desired",
outs = ["c-desired.js"],
cmd = "echo 'console.log(\"c*\");' > $@",
)
write_source_files(
name = "macro_smoke_test",
additional_update_targets = [
"//lib/tests/write_source_files/subdir/subsubdir:macro_smoke_test",
],
files = {
"c.js": ":c-desired",
},
suggested_update_target = "//lib/tests/write_source_files:macro_smoke_test",
visibility = ["//lib/tests/write_source_files:__pkg__"],
)