From 74dbdd814f5d9fd19508ec03e12085679be5a178 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/events [5/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: mzlee Differential Revision: D67459046 fbshipit-source-id: df1f2c50ce39031b6e7bdb76e214c70a7c31d314 --- quic/common/events/BUCK | 78 ------------------------------------ quic/common/events/test/BUCK | 57 -------------------------- 2 files changed, 135 deletions(-) delete mode 100644 quic/common/events/BUCK delete mode 100644 quic/common/events/test/BUCK diff --git a/quic/common/events/BUCK b/quic/common/events/BUCK deleted file mode 100644 index 2d74711a4..000000000 --- a/quic/common/events/BUCK +++ /dev/null @@ -1,78 +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 = "eventbase", - headers = [ - "QuicEventBase.h", - ], - exported_deps = [ - "//folly:function", - "//folly:glog", - ], -) - -mvfst_cpp_library( - name = "quic_timer", - srcs = [ - ], - headers = [ - "QuicTimer.h", - ], - exported_deps = [ - ":eventbase", - "//folly/io/async:delayed_destruction", - ], -) - -mvfst_cpp_library( - name = "folly_eventbase", - srcs = [ - "FollyQuicEventBase.cpp", - ], - headers = [ - "FollyQuicEventBase.h", - ], - exported_deps = [ - ":eventbase", - "//folly/io/async:async_base", - "//folly/io/async:async_base_fwd", - ], -) - -mvfst_cpp_library( - name = "highres_quic_timer", - srcs = [ - "HighResQuicTimer.cpp", - ], - headers = [ - "HighResQuicTimer.h", - ], - exported_deps = [ - ":quic_timer", - "//folly/io/async:async_base", - "//folly/io/async:timerfd", - ], -) - -mvfst_cpp_library( - name = "libev_eventbase", - srcs = [ - "LibevQuicEventBase.cpp", - ], - headers = [ - "LibevQuicEventBase.h", - ], - labels = ci.labels(ci.remove(ci.windows())), - exported_deps = [ - ":eventbase", - ":quic_timer", - "//folly:glog", - "//folly:intrusive_list", - ], - exported_external_deps = [ - "libev", - ], -) diff --git a/quic/common/events/test/BUCK b/quic/common/events/test/BUCK deleted file mode 100644 index f58a6a5e6..000000000 --- a/quic/common/events/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 = "QuicEventBaseTestBase", - headers = [ - "QuicEventBaseTestBase.h", - ], - exported_deps = [ - "//folly/portability:gtest", - "//quic/common/events:eventbase", - ], -) - -cpp_unittest( - name = "FollyQuicEventBaseTest", - srcs = [ - "FollyQuicEventBaseTest.cpp", - ], - supports_static_listing = False, - deps = [ - ":QuicEventBaseTestBase", - "//folly/portability:gtest", - "//quic/common/events:folly_eventbase", - ], -) - -cpp_unittest( - name = "LibevQuicEventBaseTest", - srcs = [ - "LibevQuicEventBaseTest.cpp", - ], - labels = ci.labels(ci.remove(ci.windows())), - supports_static_listing = False, - deps = [ - ":QuicEventBaseTestBase", - "//folly/portability:gtest", - "//quic/common/events:libev_eventbase", - ], - external_deps = [ - "libev", - ], -) - -mvfst_cpp_library( - name = "QuicEventBaseMock", - headers = [ - "QuicEventBaseMock.h", - ], - exported_deps = [ - "//folly/portability:gmock", - "//quic/common/events:eventbase", - ], -)