blob: d6eb059604f6c3857ebf07cd517bfb368e94b22f [file]
# Copyright 2022 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")
# Kept in BUILD.gn because switching //bundles/assembly/BUILD.bazel directly to
# a native Bazel fx_package pulls //third_party/rapidjson:rapidjson and
# @com_google_googletest//:gtest_prod (via //src/lib/fxl) into release
# verify_licenses_collection before they carry applicable_licenses metadata.
fuchsia_package("process_explorer_package") {
package_name = "process_explorer"
deps = [ ":process_explorer_component" ]
}
group("tests") {
testonly = true
deps = [ "//src/developer/process_explorer/tests" ]
}
## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ##
#
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
#
# AUTO-GENERATED - DO NOT EDIT
#
# The targets below are auto-generated based on the targets defined in the
# BUILD.bazel file from the same directory. If you made changes to targets in
# Bazel, instead of editing this file manually, run:
#
# > fx bazel2gn
#
# Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and
# rerun bazel2gn.
import("//build/tools/bazel2gn/bazel_migration.gni")
source_set("lib") {
sources = [
"process_data.cc",
"process_explorer.cc",
"task_hierarchy_data.cc",
]
public = [
"process_data.h",
"process_explorer.h",
"task_hierarchy_data.h",
]
deps = [
"//sdk/lib/syslog/cpp",
"//src/lib/fsl",
"//third_party/rapidjson",
"//zircon/system/ulib/inspector",
"//zircon/system/ulib/task-utils",
]
visibility = [
":*",
"//src/developer/process_explorer/tests:*",
]
public_deps = [
"//sdk/fidl/fuchsia.process.explorer:fuchsia.process.explorer_cpp",
"//sdk/lib/component/outgoing/cpp",
"//src/lib/fxl:fxl_cli",
]
}
executable("bin") {
sources = [ "main.cc" ]
output_name = "process_explorer"
deps = [
":lib",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//sdk/lib/syslog/cpp",
]
}
fuchsia_component_manifest("process_explorer_manifest") {
component_name = "process_explorer"
manifest = "meta/process_explorer.cml"
}
fuchsia_component("process_explorer_component") {
cm_label = ":process_explorer_manifest"
visibility = [
":*",
"//src/developer/process_explorer/tests:*",
]
deps = [ ":bin" ]
}