Debian Codegraph @

examples/bazel/BUILD

raw
1 load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
2 load("@rules_python//python:defs.bzl", "py_binary")
3
4 cc_binary(
5 name = "use_cpp_lib",
6 srcs = ["use_cpp_lib.cc"],
7 deps = ["@jsonnet//cpp:libjsonnet++"],
8 )
9
10 cc_binary(
11 name = "use_c_lib",
12 srcs = ["use_c_lib.c"],
13 deps = ["@jsonnet//core:libjsonnet"],
14 )
15
16 py_binary(
17 name = "use_py_module",
18 srcs = ["use_py_module.py"],
19 deps = ["@jsonnet//python:_jsonnet"],
20 )
21
22 genrule(
23 name = "use_jsonnet_cmd",
24 srcs = ["example.jsonnet"],
25 outs = ["example.out"],
26 cmd = "$(location @jsonnet//cmd:jsonnet) $< > $@",
27 tools = ["@jsonnet//cmd:jsonnet"],
28 )