Files
c/examples/BUILD

21 lines
527 B
Python
Raw Normal View History

2024-11-19 15:45:28 -05:00
# Example of using bazel rules on the existing examples.
2024-11-19 15:45:28 -05:00
load("@rules_cc//cc:defs.bzl", "cc_binary")
# create and run executable file.
2024-11-19 15:45:28 -05:00
# Run: bazel run //examples:list_pod
cc_binary(
name = "list_pod",
2024-11-19 15:45:28 -05:00
srcs = [
"list_pod/main.c",
],
deps = ["//:kube_c_library"], #imported from BUILD file of root directory
)
2024-11-19 15:45:28 -05:00
# Run: bazel run //examples:list_event
cc_binary(
2024-11-19 15:45:28 -05:00
name = "list_event",
srcs = ["list_event/main.c"],
deps = ["//:kube_c_library"], #imported from BUILD file of root directory
)