blob: 8652f4c9538c02c85437c950bc51651ba0006571 [file] [log] [blame]
# Copyright 2024 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/cpp/library_headers.gni")
source_set("runtime") {
public = [ "runtime-dynamic-linker.h" ]
public_deps = [
":diagnostics",
":error",
"//sdk/lib/fit",
"//src/lib/elfldltl",
"//zircon/system/ulib/fbl",
]
if (is_fuchsia) {
public_deps += [ "//zircon/system/ulib/zx" ]
}
sources = [
"module.h",
"runtime-dynamic-linker.cc",
]
if (is_fuchsia) {
sources += [ "unmap-zircon.cc" ]
} else {
sources += [ "unmap-posix.cc" ]
}
}
source_set("error") {
public = [ "error.h" ]
public_deps = [ "//sdk/lib/ld:headers" ]
sources = [ "error.cc" ]
}
source_set("diagnostics") {
public = [ "diagnostics.h" ]
public_deps = [ ":error" ]
sources = [ "diagnostics.cc" ]
}
source_set("stateful-error") {
public = [ "stateful-error.h" ]
public_deps = [
":error",
"//sdk/lib/fit",
]
sources = [ "stateful-error.cc" ]
}
group("tests") {
testonly = true
deps = [ "test:tests" ]
}