blob: 4c29c3847b4faf768ceaaf07d2b46d724cc8e850 [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/cpp/library_headers.gni")
library_headers("headers") {
headers = [ "lib/heap.h" ]
}
library_headers("headers.internal") {
visibility = [ "./*" ]
headers = [ "lib/heap_internal.h" ]
}
source_set("heap") {
public_deps = [ ":headers" ]
sources = [
"cxx_allocator.cc",
"heap_wrapper.cc",
]
public_configs = [ "//zircon/kernel:kernel_memory_profiler" ]
deps = [
":headers.internal",
"cmpctmalloc",
"profile",
"//zircon/kernel/lib/console",
"//zircon/kernel/lib/virtual_alloc",
"//zircon/system/ulib/lazy_init",
# TODO(https://fxbug.dev/42128324): Remove headers when possible.
"//zircon/kernel/lib/instrumentation:headers",
]
}
group("tests") {
testonly = true
}
group("kernel-tests") {
# TODO: testonly = true
}
group("phys-tests") {
testonly = true
}
group("boot_tests") {
testonly = true
}