blob: a09ae20f4421aa8a8db2309ad1c51b22f3005698 [file]
# Copyright 2025 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/python/host.gni")
import("//build/python/python_binary.gni")
import("//build/python/python_host_test.gni")
if (is_host) {
python_binary("debug") {
main_source = "main.py"
deps = [
"//scripts/debug/zxdb_cli/cli:cli_lib",
"//scripts/lib/package_server",
]
}
install_python_tool("install-debug") {
name = "debug"
binary = ":debug"
}
python_host_test("test_main") {
main_source = "test_main.py"
sources = [ "main.py" ]
libraries = [
"//scripts/debug/zxdb_cli/cli:cli_lib",
"//scripts/lib/package_server",
]
test_data_deps = [ "//scripts/debug/zxdb_cli/shared:pydantic_test_data" ]
}
group("tests") {
testonly = true
deps = [
":test_main",
"zxdb_cli:tests",
]
}
group("install") {
deps = [
":install-debug",
"zxdb_cli:install",
]
}
} else {
group("tests") {
testonly = true
deps = [ ":tests($host_toolchain)" ]
}
}