| # Copyright 2021 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/cpp/library_headers.gni") |
| |
| static_library("jtrace") { |
| public_deps = [ ":headers" ] |
| |
| sources = [ |
| "jtrace.cc", |
| "jtrace_internal.h", |
| ] |
| deps = [ |
| "//sdk/lib/fit:headers", |
| "//zircon/kernel/lib/arch", |
| "//zircon/kernel/lib/console", |
| "//zircon/kernel/lib/debuglog", |
| "//zircon/kernel/lib/io", |
| "//zircon/kernel/lib/ktl", |
| "//zircon/kernel/lib/syscalls", |
| "//zircon/kernel/vm", |
| "//zircon/system/ulib/affine", |
| "//zircon/system/ulib/fbl:headers", |
| "//zircon/system/ulib/lazy_init", |
| "//zircon/system/ulib/pretty", |
| ] |
| } |
| |
| library_headers("headers") { |
| headers = [ "lib/jtrace/jtrace.h" ] |
| |
| public_configs = [ |
| "//zircon/kernel:jtrace_config", |
| "//zircon/kernel:persistent_ram_config", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| } |
| |
| group("kernel-tests") { |
| # TODO: testonly = true |
| deps = [ "tests" ] |
| } |
| |
| group("phys-tests") { |
| testonly = true |
| } |
| |
| group("boot_tests") { |
| testonly = true |
| } |