tools: expose proto_filter target to bazel

This allows it to be used from G3 which is required when working
with G3 based protos.

Change-Id: I619a528e2326f29596b60aa0ffbeb757983d913c
diff --git a/BUILD b/BUILD
index 8933cf1..2cfc776 100644
--- a/BUILD
+++ b/BUILD
@@ -169,6 +169,23 @@
     ],
 )
 
+# GN target: //tools/proto_filter:proto_filter
+perfetto_cc_binary(
+    name = "proto_filter",
+    srcs = [
+        ":src_protozero_filtering_bytecode_common",
+        ":src_protozero_filtering_bytecode_generator",
+        ":src_protozero_filtering_bytecode_parser",
+        ":src_protozero_filtering_filter_util",
+        ":src_protozero_filtering_message_filter",
+        "tools/proto_filter/proto_filter.cc",
+    ],
+    deps = [
+        ":protozero",
+        ":src_base_base",
+    ] + PERFETTO_CONFIG.deps.protobuf_full,
+)
+
 # GN target: //:libperfetto
 perfetto_cc_library(
     name = "libperfetto",
@@ -784,6 +801,15 @@
     ],
 )
 
+# GN target: //src/protozero/filtering:bytecode_generator
+filegroup(
+    name = "src_protozero_filtering_bytecode_generator",
+    srcs = [
+        "src/protozero/filtering/filter_bytecode_generator.cc",
+        "src/protozero/filtering/filter_bytecode_generator.h",
+    ],
+)
+
 # GN target: //src/protozero/filtering:bytecode_parser
 filegroup(
     name = "src_protozero_filtering_bytecode_parser",
@@ -793,6 +819,15 @@
     ],
 )
 
+# GN target: //src/protozero/filtering:filter_util
+filegroup(
+    name = "src_protozero_filtering_filter_util",
+    srcs = [
+        "src/protozero/filtering/filter_util.cc",
+        "src/protozero/filtering/filter_util.h",
+    ],
+)
+
 # GN target: //src/protozero/filtering:message_filter
 filegroup(
     name = "src_protozero_filtering_message_filter",