blob: 99812a8c8bf13ae9844e6e1f3336f3244ac8b2f0 [file] [log] [blame]
# Copyright 2021 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")
library_headers("headers") {
headers = [
"lib/concurrent/common.h",
"lib/concurrent/copy.h",
"lib/concurrent/seqlock.h",
"lib/concurrent/seqlock.inc.h",
"lib/concurrent/chainlock.h",
]
}
source_set("concurrent") {
sources = [ "copy.cc" ]
if (is_fuchsia && !is_kernel) {
sources += [ "seqlock_usermode_fuchsia.cc" ]
} else if (is_host) {
sources += [ "seqlock_usermode_posix.cc" ]
}
public_deps = [
":headers",
"//zircon/kernel/lib/arch:headers",
]
deps = [ "//sdk/lib/stdcompat" ]
}