blob: ccef1ee50e51618183017d22a08384ad6afd37d0 [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("$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.cpp",
"string_ref.cpp",
]
include_dirs = [ target_gen_dir ]
deps = [
":ktrace-info",
"$zx/kernel/lib/hypervisor",
"$zx/system/ulib/zircon-internal",
]
public_configs = [ ":config" ]
}
abigen("ktrace-info") {
visibility = [ ":*" ]
gen = [
{
args = [ "-trace" ]
outputs = [
"$target_gen_dir/zircon/syscall-ktrace-info.inc",
]
},
]
}