| # 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. |
| |
| import("//build/python/host.gni") |
| import("//build/python/python_host_test.gni") |
| import("//build/python/python_library.gni") |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":daemon_test($host_toolchain)" ] |
| } |
| |
| if (is_host) { |
| python_library("daemon_lib") { |
| library_name = "daemon" |
| sources = [ |
| "__init__.py", |
| "daemon.py", |
| ] |
| deps = [ |
| "//scripts/debug/zxdb_cli/shared:protocol_lib", |
| "//scripts/lib/ffx_cmd", |
| "//scripts/lib/fx_cmd", |
| "//scripts/lib/package_server", |
| "//src/lib/debug/dap/python:lib", |
| ] |
| } |
| |
| python_binary("daemon_bin") { |
| main_source = "main.py" |
| output_name = "zxdb-daemon.pyz" |
| main_callable = "main" |
| deps = [ ":daemon_lib" ] |
| } |
| |
| install_python_tool("install") { |
| name = "zxdb-daemon" |
| binary = ":daemon_bin" |
| } |
| |
| python_host_test("daemon_test") { |
| main_source = "tests/test_daemon.py" |
| libraries = [ ":daemon_lib" ] |
| } |
| } |