From bd460e93823be329c529294701f53ae139c87e0d Mon Sep 17 00:00:00 2001 From: Cullen Walsh Date: Thu, 19 Dec 2024 16:25:15 -0800 Subject: [PATCH] BUCK-ify quic/common/udpsocket [8/n] Summary: This stack of diffs BUCK-ifies various quic folders. This stack is so tall because quic has a ton of dependencies, and breaking it up into many diffs gives the best chance of at least partial success. Reviewed By: bigfootjon Differential Revision: D67459074 fbshipit-source-id: afa6787ffb359fe2923bfb7aed709febb5556ddb --- quic/common/udpsocket/BUCK | 74 --------------------------------- quic/common/udpsocket/test/BUCK | 57 ------------------------- 2 files changed, 131 deletions(-) delete mode 100644 quic/common/udpsocket/BUCK delete mode 100644 quic/common/udpsocket/test/BUCK diff --git a/quic/common/udpsocket/BUCK b/quic/common/udpsocket/BUCK deleted file mode 100644 index cc7d5457a..000000000 --- a/quic/common/udpsocket/BUCK +++ /dev/null @@ -1,74 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") -load("@fbcode//target_determinator/macros:ci.bzl", "ci") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "quic_async_udp_socket", - srcs = [ - "QuicAsyncUDPSocket.cpp", - ], - headers = [ - "QuicAsyncUDPSocket.h", - ], - exported_deps = [ - "//folly:network_address", - "//folly:range", - "//folly/io:iobuf", - "//folly/io:socket_option_map", - "//folly/io/async:async_socket_exception", - "//folly/portability:sockets", - "//quic/common:network_data", - "//quic/common:optional", - "//quic/common/events:eventbase", - ], -) - -mvfst_cpp_library( - name = "quic_async_udp_socket_impl", - srcs = [ - "QuicAsyncUDPSocketImpl.cpp", - ], - headers = [ - "QuicAsyncUDPSocketImpl.h", - ], - exported_deps = [ - ":quic_async_udp_socket", - ], -) - -mvfst_cpp_library( - name = "folly_async_udp_socket", - srcs = [ - "FollyQuicAsyncUDPSocket.cpp", - ], - headers = [ - "FollyQuicAsyncUDPSocket.h", - ], - exported_deps = [ - ":quic_async_udp_socket_impl", - "//folly/io/async:async_udp_socket", - "//folly/net:network_socket", - "//quic/common:network_data", - "//quic/common/events:folly_eventbase", - ], -) - -mvfst_cpp_library( - name = "libev_async_udp_socket", - srcs = [ - "LibevQuicAsyncUDPSocket.cpp", - ], - headers = [ - "LibevQuicAsyncUDPSocket.h", - ], - labels = ci.labels(ci.remove(ci.windows())), - deps = [ - "//quic/common:optional", - ], - exported_deps = [ - ":quic_async_udp_socket_impl", - "//quic/common:network_data", - "//quic/common/events:libev_eventbase", - ], -) diff --git a/quic/common/udpsocket/test/BUCK b/quic/common/udpsocket/test/BUCK deleted file mode 100644 index 457635b2c..000000000 --- a/quic/common/udpsocket/test/BUCK +++ /dev/null @@ -1,57 +0,0 @@ -load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") -load("@fbcode//target_determinator/macros:ci.bzl", "ci") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("traffic_protocols") - -mvfst_cpp_library( - name = "QuicAsyncUDPSocketMock", - headers = [ - "QuicAsyncUDPSocketMock.h", - ], - exported_deps = [ - "//folly/portability:gmock", - "//quic/common/udpsocket:quic_async_udp_socket", - ], -) - -mvfst_cpp_library( - name = "QuicAsyncUDPSocketTestBase", - headers = [ - "QuicAsyncUDPSocketTestBase.h", - ], - exported_deps = [ - ":QuicAsyncUDPSocketMock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "FollyQuicAsyncUDPSocketTest", - srcs = [ - "FollyQuicAsyncUDPSocketTest.cpp", - ], - supports_static_listing = False, - deps = [ - ":QuicAsyncUDPSocketTestBase", - "//folly/portability:gtest", - "//quic/common/udpsocket:folly_async_udp_socket", - ], -) - -cpp_unittest( - name = "LibevQuicAsyncUDPSocketTest", - srcs = [ - "LibevQuicAsyncUDPSocketTest.cpp", - ], - labels = ci.labels(ci.remove(ci.windows())), - supports_static_listing = False, - deps = [ - ":QuicAsyncUDPSocketTestBase", - "//folly/portability:gtest", - "//quic/common/udpsocket:libev_async_udp_socket", - ], - external_deps = [ - "libev", - ], -)