| # 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("$zx/kernel/syscalls/abigen.gni") |
| |
| config("config") { |
| include_dirs = [ "include" ] |
| if (!is_gcc) { |
| # Silence warning in Clang about GNU extension used in string_ref.h. |
| cflags_cc = [ "-Wno-gnu-string-literal-operator-template" ] |
| } |
| } |
| |
| source_set("ktrace") { |
| sources = [ |
| "include/lib/ktrace/string_ref.h", |
| "ktrace.cc", |
| "string_ref.cc", |
| ] |
| include_dirs = [ target_gen_dir ] |
| deps = [ |
| ":ktrace-info", |
| "$zx/kernel/hypervisor", |
| "$zx/kernel/lib/cmdline", |
| "$zx/system/ulib/zircon-internal", |
| ] |
| public_configs = [ ":config" ] |
| } |
| |
| abigen("ktrace-info") { |
| visibility = [ ":*" ] |
| gen = [ |
| { |
| args = [ "-trace" ] |
| outputs = [ |
| "$target_gen_dir/zircon/syscall-ktrace-info.inc", |
| ] |
| }, |
| ] |
| } |