blob: 4ffe2ce28e0564b25b7b8479ac14a78858516dee [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("cpuid") {
kernel = true
sources = [ "cpuid.cc" ]
public_deps = [
# <arch/x86/cpuid.h> has #include <ktl/optional.h>.
"//zircon/kernel/lib/ktl:headers",
]
deps = [
":test",
"//zircon/system/ulib/fbl",
]
}
source_set("test") {
# TODO(fxbug.dev/67010): testonly = true
sources = [ "cpuid_test.cc" ]
deps = [ "//zircon/kernel/lib/unittest" ]
public_deps = [ ":headers" ]
}