blob: 71a8716a1bc991a519a34284e644ed62c192da06 [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("cmpctmalloc") {
kernel = true
host = true
sources = [ "cmpctmalloc.cc" ]
deps = [
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/pretty",
]
include_dirs = [ "include/lib" ]
if (is_host) {
# TODO: revist the following three specifications after the zircon-to-fuchsia
# build migration. They seem currently required in order to export the host
# compilation of this library to the fuchsia build.
static = true
sdk = "source"
sdk_headers = []
public_deps = [ "//zircon/system/ulib/zircon-internal:headers" ]
include_dirs += [
"include",
"//zircon/kernel/lib/heap/include",
]
} else if (is_kernel) {
# TODO(fxbug.dev/51163): Remove headers when possible.
deps += [ "//zircon/kernel/lib/instrumentation:headers" ]
}
}