blob: a39a43e6e59b965444a6f72b501a28875d11182e [file] [log] [blame]
# Copyright 2019 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.
##########################################
# Though under //zircon, this build file #
# is meant to be used in the Fuchsia GN #
# build. #
# See fxb/36139. #
##########################################
assert(!defined(zx) || zx != "/",
"This file can only be used in the Fuchsia GN build.")
source_set("threads") {
configs += [ "//build/unification/config:zircon-migrated" ]
testonly = true
sources = [
"register-set.cc",
"threads.cc",
]
deps = [
":thread-functions",
"//sdk/lib/fdio",
"//zircon/public/lib/runtime",
"//zircon/public/lib/zx",
"//zircon/public/lib/zxtest",
"//zircon/system/ulib/mini-process",
"//zircon/system/ulib/test-exceptions",
]
}
source_set("thread-functions") {
configs += [ "//build/unification/config:zircon-migrated" ]
testonly = true
visibility = [ ":*" ]
sources = [ "thread-functions/thread-functions.cc" ]
configs += [ "//build/config:no_sanitizers" ]
deps = [ "//zircon/public/lib/runtime" ]
}