aboutsummaryrefslogtreecommitdiff
path: root/tools/interface_generator/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'tools/interface_generator/BUILD.bazel')
-rw-r--r--tools/interface_generator/BUILD.bazel25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/interface_generator/BUILD.bazel b/tools/interface_generator/BUILD.bazel
new file mode 100644
index 0000000..2e700a2
--- /dev/null
+++ b/tools/interface_generator/BUILD.bazel
@@ -0,0 +1,25 @@
+load("@rules_python//python:pip.bzl", "compile_pip_requirements")
+
+package(default_visibility = ["//visibility:public"])
+
+# This rule adds a convenient way to update the requirements file.
+compile_pip_requirements(
+ name = "requirements",
+ src = "requirements.txt",
+ requirements_txt = "requirements_lock.txt",
+)
+
+py_binary(
+ name = "interface_generator",
+ srcs = ["interface_generator.py"],
+ args = ["-l", "$(location LICENSE.md)"],
+ data = glob(["templates/*"]) + ["LICENSE.md"],
+ deps = [
+ "@pip//mako",
+ ],
+)
+
+alias(
+ name = "smokeTest",
+ actual = ":interface_generator",
+)