| # 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("//src/sys/build/components.gni") |
| |
| fuchsia_shell_package("kcounter_inspect") { |
| manifest = "meta/kcounter_inspect.cmx" |
| deps = [ ":main" ] |
| } |
| |
| source_set("lib") { |
| sources = [ |
| "vmo_file_with_update.cc", |
| "vmo_file_with_update.h", |
| ] |
| |
| public_deps = [ |
| "//sdk/fidl/fuchsia.kernel", |
| "//sdk/lib/vfs/cpp", |
| "//zircon/public/lib/zx", |
| ] |
| } |
| |
| executable("main") { |
| output_name = "kcounter_inspect" |
| |
| sources = [ "main.cc" ] |
| |
| deps = [ |
| ":lib", |
| "//sdk/fidl/fuchsia.kernel", |
| "//sdk/lib/sys/cpp", |
| "//sdk/lib/sys/inspect/cpp", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| } |