From 8df0e9dbeed505f4cf30d0e2ab5ec8e01cf5df6f Mon Sep 17 00:00:00 2001 From: Xiangquan Xiao Date: Mon, 13 Jan 2020 17:25:20 -0800 Subject: [PATCH] Bazel: Add ncurses target. --- cyber/tools/cyber_monitor/BUILD | 4 +--- third_party/BUILD | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cyber/tools/cyber_monitor/BUILD b/cyber/tools/cyber_monitor/BUILD index b90f602936f..2650b1793bb 100644 --- a/cyber/tools/cyber_monitor/BUILD +++ b/cyber/tools/cyber_monitor/BUILD @@ -13,15 +13,13 @@ cc_binary( "renderable_message.cc", "screen.cc", ], - linkopts = [ - "-lncurses", - ], deps = [ ":cyber_topology_message", ":general_channel_message", ":screen", "//cyber:init", "//cyber/service_discovery:topology_manager", + "//third_party:ncurses", "//third_party:pthread", ], ) diff --git a/third_party/BUILD b/third_party/BUILD index de731bce33d..b559c19a161 100644 --- a/third_party/BUILD +++ b/third_party/BUILD @@ -14,3 +14,8 @@ cc_library( name = "pthread", linkopts = ["-pthread"], ) + +cc_library( + name = "ncurses", + linkopts = ["-lncurses"], +)