blob: f9f16f24a912ec04ded1943bc7649cf77b58ee3f [file] [log] [blame]
# Copyright 2016 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/components.gni")
executable("bin") {
output_name = "trace"
sources = [ "main.cc" ]
deps = [ ":trace_app" ]
}
source_set("trace_app") {
sources = [
"app.cc",
"app.h",
"cmd_utils.cc",
"cmd_utils.h",
"command.cc",
"command.h",
"commands/list_categories.cc",
"commands/list_categories.h",
"commands/record.cc",
"commands/record.h",
"commands/time.cc",
"commands/time.h",
"tracer.cc",
"tracer.h",
"utils.cc",
"utils.h",
]
public_deps = [
"//sdk/fidl/fuchsia.tracing.controller:fuchsia.tracing.controller_cpp",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//sdk/lib/component/incoming/cpp",
"//sdk/lib/fdio",
"//sdk/lib/fit",
"//sdk/lib/sys/cpp",
"//sdk/lib/syslog/cpp",
"//src/lib/fxl:fxl_cli",
"//src/performance/lib/trace_converters:chromium",
"//third_party/zlib:zfstream",
"//zircon/system/ulib/trace-reader",
]
deps = [ ":options" ]
}
source_set("options") {
sources = [
"options.cc",
"options.h",
]
}
fuchsia_package("trace") {
deps = [ ":bin" ]
}