blob: 2ff1d67dd08d1f8f0bd00909b22cb2dd42ad5643 [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("$zx_build/public/gn/migrated_targets.gni")
zx_library("cmpctmalloc") {
kernel = true
host = true
sources = [ "cmpctmalloc.cc" ]
deps = [
"$zx/system/ulib/fbl",
"$zx/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 = [ "$zx/system/ulib/zircon-internal:headers" ]
include_dirs += [
"include",
"$zx/kernel/lib/heap/include",
]
} else if (is_kernel) {
# TODO(fxbug.dev/51163): Remove headers when possible.
deps += [ "$zx/kernel/lib/instrumentation:headers" ]
}
}