Apply BUILD.bazel patch from perryl@ to add masque client/server cc_binary rules
These aren't 100% useful yet since default ProofSource is nullptr, but
in theory the client should work since we disable certificate
verification.
PiperOrigin-RevId: 486472263
diff --git a/quiche/BUILD.bazel b/quiche/BUILD.bazel
index 872c93f..8ca1fd7 100644
--- a/quiche/BUILD.bazel
+++ b/quiche/BUILD.bazel
@@ -263,6 +263,19 @@
],
)
+cc_library(
+ name = "quic_toy_client",
+ srcs = [
+ "quic/tools/quic_toy_client.cc",
+ ],
+ hdrs = [
+ "quic/tools/quic_toy_client.h",
+ ],
+ deps = [
+ ":io_tool_support",
+ ],
+)
+
test_suite_from_source_list(
name = "quiche_tests",
srcs = quiche_tests_srcs,
@@ -272,12 +285,12 @@
]),
deps = [
":binary_http",
+ ":oblivious_http",
":quiche_core",
":quiche_platform_default_testonly",
":quiche_protobufs_testonly_cc_proto",
":quiche_test_support",
":quiche_tool_support",
- ":oblivious_http",
"@boringssl//:crypto",
"@boringssl//:ssl",
"@com_google_absl//absl/algorithm:container",
@@ -408,6 +421,51 @@
],
)
+cc_binary(
+ name = "crypto_message_printer",
+ srcs = ["quic/tools/crypto_message_printer_bin.cc"],
+ deps = [
+ ":quiche_core",
+ ":quiche_tool_support",
+ "@com_google_absl//absl/strings",
+ ],
+)
+
+cc_binary(
+ name = "quic_client",
+ srcs = ["quic/tools/quic_client_bin.cc"],
+ deps = [
+ ":quic_toy_client",
+ ":quiche_core",
+ ":quiche_tool_support",
+ "@com_google_absl//absl/strings",
+ ],
+)
+
+cc_binary(
+ name = "masque_client",
+ srcs = ["quic/masque/masque_client_bin.cc"],
+ deps = [
+ ":io_tool_support",
+ ":quiche_core",
+ ":quiche_tool_support",
+ "@com_google_absl//absl/strings",
+ ],
+)
+
+cc_binary(
+ name = "masque_server",
+ srcs = ["quic/masque/masque_server_bin.cc"],
+ deps = [
+ ":io_tool_support",
+ ":quiche_core",
+ ":quiche_platform_default",
+ ":quiche_platform_default_tools",
+ ":quiche_tool_support",
+ "@com_google_absl//absl/strings",
+ ],
+)
+
# Indicate that QUICHE APIs are explicitly unstable by providing only
# appropriately named aliases as publicly visible targets.
alias(