From 2a31fd7ce1737dd61dc1e3ccd6ad32a0b52d85e4 Mon Sep 17 00:00:00 2001 From: Jon Janzen Date: Mon, 2 Dec 2024 09:00:42 -0800 Subject: [PATCH] Rewrite TARGETS files to BUCK files for facebook/fboss (#989) Summary: Pull Request resolved: https://github.com/facebook/sapling/pull/989 X-link: https://github.com/facebook/fboss/pull/298 This diff migrates TARGETS file to BUCK files that are synced for an open source project. Differential Revision: D66561352 Reviewed By: dtolnay --- common/fb303/cpp/TARGETS | 16 ---------------- common/fb303/if/TARGETS | 22 ---------------------- 2 files changed, 38 deletions(-) delete mode 100644 common/fb303/cpp/TARGETS delete mode 100644 common/fb303/if/TARGETS diff --git a/common/fb303/cpp/TARGETS b/common/fb303/cpp/TARGETS deleted file mode 100644 index 9b0cd5e1750f7..0000000000000 --- a/common/fb303/cpp/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("fboss_agent_push") - -cpp_library( - name = "fb303", - srcs = glob(["*.cpp"]), - headers = glob(["*.h"]), - exported_deps = [ - "//common/fb303/if:fb303-cpp2-services", - "//folly:small_vector", - ], - exported_external_deps = [ - ("glibc", None, "rt"), - ], -) diff --git a/common/fb303/if/TARGETS b/common/fb303/if/TARGETS deleted file mode 100644 index 04746d9921eb0..0000000000000 --- a/common/fb303/if/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") -load("//common/automock:automock.bzl", "thrift_plugin_automock") - -oncall("fboss_agent_push") - -thrift_library( - name = "fb303", - languages = ["cpp2"], - no_plugin_deps = [ - "//thrift/annotation:cpp", - "//thrift/annotation:go", - "//thrift/annotation:hack", - "//thrift/annotation:java", - "//thrift/annotation:python", - "//thrift/annotation:thrift", - "//thrift/facebook/erlang:annotations", - ], - plugins = [thrift_plugin_automock], - thrift_srcs = { - "fb303.thrift": ["FacebookService"], - }, -)