Skip to content

Commit aeaf4d0

Browse files
committed
Extract //cuttlefish/host/commands/cvd/utils:subprocess_waiter
Bug: b/416766297
1 parent 68b6ef4 commit aeaf4d0

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

base/cvd/cuttlefish/host/commands/cvd/utils/BUILD.bazel

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,24 @@ clang_tidy_test(
6262
)
6363

6464
cc_library(
65-
name = "utils",
66-
srcs = [
67-
"subprocess_waiter.cpp",
65+
name = "subprocess_waiter",
66+
srcs = ["subprocess_waiter.cpp"],
67+
hdrs = ["subprocess_waiter.h"],
68+
copts = COPTS + [ "-Werror=sign-compare" ],
69+
deps = [
70+
"//cuttlefish/common/libs/utils",
71+
"//cuttlefish/common/libs/utils:result",
6872
],
73+
)
74+
75+
clang_tidy_test(
76+
name = "subprocess_waiter_clang_tidy",
77+
srcs = [":subprocess_waiter"],
78+
tags = ["clang_tidy", "clang-tidy"],
79+
)
80+
81+
cc_library(
82+
name = "utils",
6983
hdrs = [
7084
"common.h",
7185
"flags_collector.h",
@@ -80,9 +94,8 @@ cc_library(
8094
"//cuttlefish/host/commands/cvd/utils:common",
8195
"//cuttlefish/host/commands/cvd/utils:flags_collector",
8296
"//cuttlefish/host/commands/cvd/utils:interrupt_listener",
83-
"//cuttlefish/host/libs/config:config_utils",
97+
"//cuttlefish/host/commands/cvd/utils:subprocess_waiter",
8498
"//libbase",
85-
"@tinyxml2",
8699
],
87100
)
88101

0 commit comments

Comments
 (0)