mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-11-27 17:43:27 +00:00
3b93ee0baa
Also update write_source_files to accept DirectoryPathInfo
20 lines
534 B
Python
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__"],
|
|
)
|