diff options
Diffstat (limited to 'lib/faad2/workspace.bzl')
| -rw-r--r-- | lib/faad2/workspace.bzl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/faad2/workspace.bzl b/lib/faad2/workspace.bzl new file mode 100644 index 00000000..628ab9e4 --- /dev/null +++ b/lib/faad2/workspace.bzl @@ -0,0 +1,12 @@ +def _wrap_json_properties_impl(ctx): + content = ctx.read(ctx.attr.src) + bzl = "PROPERTIES = %s" % (content) + ctx.file("BUILD", content = "", executable = False) + ctx.file("properties.bzl", content = bzl, executable = False) + +wrap_json_properties = repository_rule( + attrs = { + "src": attr.label(mandatory = True), + }, + implementation = _wrap_json_properties_impl, +) |
