blob: 3884318bcd1f5db2e42089099930d5e719f150e4 [file] [log] [blame]
# Copyright 2019 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")
import("//src/sys/core/build/core_shard.gni")
executable("bin") {
output_name = "mem"
sources = [ "main.cc" ]
deps = [
"//sdk/fidl/fuchsia.memory",
"//sdk/lib/sys/cpp",
"//src/developer/memory/metrics",
"//src/lib/fxl",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/trace",
"//zircon/system/ulib/trace-provider",
]
}
# TODO(fxbug.dev/82740): mem could be an ffx plugin
fuchsia_component("mem_cml") {
component_name = "mem"
manifest = "meta/mem.cml"
deps = [ ":bin" ]
}
core_shard("core_shard") {
shard_file = "meta/mem.core_shard.cml"
}
# TODO(fxbug.dev/82741): legacy mem.cmx invoked by out-of-tree product tests.
# TODO(fxbug.dev/82782): can't delete mem.cmx because it supports the current
# `fx mem` use case. Reading stdout/stderr from v2 components via
# `ffx component run` is not supported yet.
# Delete the below when the bugs are fixed.
fuchsia_component("mem_cmx") {
component_name = "mem"
manifest = "meta/mem.cmx"
deps = [ ":bin" ]
}
fuchsia_package("mem") {
deps = [
":mem_cml",
":mem_cmx",
]
}