blob: 1262e14393d0f808ecf46ba65f1f03cf9aac3c19 [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")
source_set("lib") {
sources = [
"app.cc",
"app.h",
"config.cc",
"config.h",
"trace_manager.cc",
"trace_manager.h",
"trace_provider_bundle.cc",
"trace_provider_bundle.h",
"trace_session.cc",
"trace_session.h",
"tracee.cc",
"tracee.h",
"util.cc",
"util.h",
]
deps = [
"//src/lib/fsl",
"//third_party/rapidjson",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/trace-provider",
]
public_deps = [
"//sdk/fidl/fuchsia.tracing.controller",
"//sdk/fidl/fuchsia.tracing.provider",
"//sdk/lib/fidl/cpp",
"//sdk/lib/fit",
"//sdk/lib/sys/cpp",
"//src/lib/fxl",
"//zircon/system/ulib/async:async-cpp",
"//zircon/system/ulib/trace-reader",
"//zircon/system/ulib/zx",
]
# TODO(fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
executable("bin") {
output_name = "trace_manager"
sources = [ "main.cc" ]
deps = [
":lib",
"//src/lib/fxl",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
]
}
resource("tracing.config") {
sources = [ "tracing.config" ]
outputs = [ "data/{{source_file_part}}" ]
}
# TODO(fxbug.dev/83213) Retain v1 component while out of tree tests need it.
fuchsia_package_with_single_component("trace_manager") {
manifest = "meta/trace_manager.cmx"
deps = [
":bin",
":tracing.config",
]
}