| # Copyright 2019 The Fuchsia Authors |
| # |
| # Use of this source code is governed by a MIT-style |
| # license that can be found in the LICENSE file or at |
| # https://opensource.org/licenses/MIT |
| |
| import("//build/zircon/migrated_targets.gni") |
| |
| zx_library("counters") { |
| sdk = "source" |
| sdk_headers = [ |
| "lib/counters.h", |
| "lib/counter-vmo-abi.h", |
| ] |
| |
| visibility = [ |
| "//src/zircon/bin/kcounter:*", |
| "//src/zircon/tests/kcounter:*", |
| "//vendor/google/*", |
| "//zircon/kernel/*", |
| "//zircon/system/ulib/*", |
| "//zircon/system/ulib/kcounter/*", |
| ] |
| |
| sources = [] |
| if (is_kernel) { |
| sources += [ "counters.cc" ] |
| deps = [ |
| "//zircon/kernel/lib/init", |
| "//zircon/kernel/lib/special-sections", |
| ] |
| public_deps = [ |
| # <lib/counters.h> has #include <lib/special-sections/special-sections.h>. |
| "//zircon/kernel/lib/special-sections:headers", |
| ] |
| } |
| } |