summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/memevent/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/kernel/memevent/BUILD')
-rw-r--r--pkg/sentry/kernel/memevent/BUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/memevent/BUILD b/pkg/sentry/kernel/memevent/BUILD
new file mode 100644
index 000000000..c7779e1d5
--- /dev/null
+++ b/pkg/sentry/kernel/memevent/BUILD
@@ -0,0 +1,31 @@
+package(licenses = ["notice"]) # Apache 2.0
+
+load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
+load("@io_bazel_rules_go//go:def.bzl", "go_library")
+
+go_library(
+ name = "memevent",
+ srcs = ["memory_events.go"],
+ importpath = "gvisor.googlesource.com/gvisor/pkg/sentry/kernel/memevent",
+ visibility = ["//:sandbox"],
+ deps = [
+ ":memory_events_go_proto",
+ "//pkg/eventchannel",
+ "//pkg/log",
+ "//pkg/sentry/kernel",
+ "//pkg/sentry/usage",
+ ],
+)
+
+proto_library(
+ name = "memory_events_proto",
+ srcs = ["memory_events.proto"],
+ visibility = ["//visibility:public"],
+)
+
+go_proto_library(
+ name = "memory_events_go_proto",
+ importpath = "gvisor.googlesource.com/gvisor/pkg/sentry/kernel/memevent/memory_events_go_proto",
+ proto = ":memory_events_proto",
+ visibility = ["//visibility:public"],
+)