mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
11 lines
529 B
Python
11 lines
529 B
Python
def generate_resources(name, resource_files, prefix, namespace, visibility = None):
|
|
cmd = "$(locations //shared/bazel/rules/gen:gen_resources) --prefix={} --namespace={} --resources $(SRCS) --output_files $(OUTS)".format(prefix, namespace, resource_files)
|
|
native.genrule(
|
|
name = name,
|
|
srcs = resource_files,
|
|
outs = ["{}.cpp".format(input_file) for input_file in resource_files],
|
|
cmd = cmd,
|
|
tools = ["//shared/bazel/rules/gen:gen_resources"],
|
|
visibility = visibility,
|
|
)
|