blob: dd90f644a052d03a07834dcd768d5f052fccc346 [file] [log] [blame]
# Copyright 2021 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/kconcurrent/chainlock.h",
"lib/kconcurrent/copy.h",
"lib/kconcurrent/seqlock.h",
]
public_deps = [
"//zircon/system/ulib/concurrent:headers",
"//zircon/system/ulib/fbl:headers",
"//zircon/system/ulib/lockdep:headers",
]
}
source_set("kconcurrent") {
sources = [
"chainlock.cc",
"chainlock_transaction.cc",
"seqlock.cc",
]
public_deps = [ ":headers" ]
deps = [
"//zircon/kernel/lib/arch",
"//zircon/system/ulib/concurrent",
"//zircon/system/ulib/lockdep",
]
}