blob: b7b7948452d90c4394070229ca7a11a7d49feea1 [file] [edit]
# 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",
]
deps = [
":headers.internal",
"cmpctmalloc",
"profile",
"//src/lib/lazy_init",
"//zircon/kernel/lib/console",
"//zircon/kernel/lib/page",
"//zircon/kernel/lib/virtual_alloc",
"//zircon/kernel/phys:arch-heap",
"//zircon/kernel/vm:headers",
# TODO(https://fxbug.dev/42128324): Remove headers when possible.
"//zircon/kernel/lib/instrumentation:headers",
]
}
group("tests") {
testonly = true
}
group("kernel-tests") {
testonly = true
}
group("phys-tests") {
testonly = true
}
group("boot_tests") {
testonly = true
}