blob: 297af64d9c6971f5d5aac1e22ee9081b9c7799ff [file] [log] [blame]
# 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("ktrace") {
sources = [ "ktrace.cc" ]
deps = [
"//zircon/kernel/hypervisor:headers",
"//zircon/kernel/lib/boot-options",
"//zircon/kernel/lib/init",
"//zircon/kernel/lib/ktl",
"//zircon/kernel/lib/syscalls:headers",
"//zircon/kernel/object:headers",
"//zircon/system/ulib/zircon-internal",
]
public_deps = [
":suppress-warning",
"//src/performance/lib/fxt:headers",
]
}
group("suppress-warning") {
visibility = [ ":*" ]
public_configs = [ ":suppress-warning.config" ]
}
config("suppress-warning.config") {
visibility = [
":*",
# TODO(https://fxbug.dev/42121444): Referenced in environment configs.
"//build/config/*",
"//sdk/fidl/zbi:*",
"//sdk/lib/fit/*",
"//sdk/lib/iob/*",
"//sdk/lib/stdcompat/*",
"//sdk/lib/zbi-format/*",
"//src/lib/elfldltl/*",
"//src/lib/llvm-profdata/*",
"//src/lib/ubsan-custom/*",
"//src/lib/zbitl/*",
"//src/performance/lib/fxt/*",
"//third_party/zstd/*",
"//vendor/google/*",
"//zircon/kernel/*",
"//zircon/system/public/*",
"//zircon/system/ulib/*",
"//zircon/third_party/lib/*",
"//zircon/third_party/ulib/*",
"//zircon/vdso/*",
]
if (!is_gcc) {
# Silence warning in Clang about GNU extension used in string_ref.h.
cflags_cc = [ "-Wno-gnu-string-literal-operator-template" ]
}
}