blob: 5e16100f4f8da49f2ad3b2ecc43e326a12677395 [file]
# Copyright 2026 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.
group("tests") {
testonly = true
deps = [ ":captive-thread-tests" ]
}
## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ##
#
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
#
# AUTO-GENERATED - DO NOT EDIT
#
# The targets below are auto-generated based on the targets defined in the
# BUILD.bazel file from the same directory. If you made changes to targets in
# Bazel, instead of editing this file manually, run:
#
# > fx bazel2gn
#
# Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and
# rerun bazel2gn.
import("//build/tools/bazel2gn/bazel_migration.gni")
library_headers("headers") {
public = [
"include/lib/captive-thread/captive-thread.h",
"include/lib/captive-thread/registers.h",
]
deps = [
"//sdk/lib/fit",
"//zircon/system/ulib/zx",
]
}
static_library("captive-thread") {
sources = [ "captive-thread.cc" ]
deps = [
":fake-step",
"//sdk/lib/stdcompat",
]
visibility = [
":*",
"//src/lib/captive-thread/testing:*",
"//zircon/system/ulib/zx/test:*",
"//zircon/system/utest/core/threads:*",
]
public_deps = [
":headers",
"//sdk/lib/fit",
"//zircon/system/ulib/zx",
]
}
source_set("fake-step") {
sources = []
sources += [ "fake-step.h" ]
if (current_cpu == "riscv64") {
sources += [ "fake-step.cc" ]
}
if (current_cpu == "riscv64") {
deps = [
"//zircon/system/ulib/hwreg",
"//zircon/system/ulib/zx",
]
} else {
deps = []
}
public_deps = [
":headers",
"//sdk/lib/stdcompat",
]
}
executable("captive-thread-unittests") {
testonly = true
sources = [ "captive-thread-tests.cc" ]
deps = [
":captive-thread",
"//src/lib/captive-thread/testing:captive-thread-testing",
"//src/lib/elfldltl",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gmock",
]
}
fuchsia_unittest_package("captive-thread-tests") {
package_name = "captive-thread-tests-gn"
component_name = "captive-thread-tests"
deps = [ ":captive-thread-unittests" ]
visibility = [ ":*" ]
}