Move over to ABSL logging and flags.
Removes gperftools too since that wants gflags.
Here come the fireworks.
Change-Id: I79cb7bcf60f1047fbfa28bfffc21a0fd692e4b1c
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/aos_graph_channels.cc b/aos/aos_graph_channels.cc
index 1a89223..c03dc36 100644
--- a/aos/aos_graph_channels.cc
+++ b/aos/aos_graph_channels.cc
@@ -1,9 +1,10 @@
#include <iomanip>
#include <iostream>
+#include "absl/flags/flag.h"
+#include "absl/flags/usage.h"
#include "absl/strings/str_format.h"
#include "absl/strings/str_split.h"
-#include "gflags/gflags.h"
#include "aos/events/logging/log_reader.h"
#include "aos/events/simulated_event_loop.h"
@@ -11,7 +12,7 @@
#include "aos/json_to_flatbuffer.h"
#include "aos/time/time.h"
-DEFINE_string(skip, "", "Applications to skip, seperated by ;");
+ABSL_FLAG(std::string, skip, "", "Applications to skip, seperated by ;");
struct ChannelState {
const aos::Channel *channel = nullptr;
@@ -34,7 +35,7 @@
};
int main(int argc, char **argv) {
- gflags::SetUsageMessage(
+ absl::SetProgramUsageMessage(
"Usage: \n"
" aos_graph_channels [args] logfile1 logfile2 ...\n"
"\n"
@@ -49,7 +50,8 @@
LOG(FATAL) << "Expected at least 1 logfile as an argument.";
}
- const std::vector<std::string> skip_list = absl::StrSplit(FLAGS_skip, ";");
+ const std::vector<std::string> skip_list =
+ absl::StrSplit(absl::GetFlag(FLAGS_skip), ";");
aos::logger::LogReader reader(
aos::logger::SortParts(aos::logger::FindLogs(argc, argv)));