Files
codex/third_party/voice/BUILD.bazel
T
Benjamin Carlsson 13bc770eaf Add installed voice host lifecycle support (#41902)
## What changed

- Add `VoiceHost` to resolve the packaged voice helper, launch it with an
  allowlisted environment, perform the protocol handshake, and enforce bounded
  shutdown and process cleanup.
- Preserve native executable path encoding in the pipe process APIs.
- Add `third_party/voice/assemble_package.py` to create a fresh package copy
  containing a target-compatible helper and a provenance manifest with file
  hashes.

## Testing

- Cover installed helper lifecycle, build matching, missing and symlinked
  helpers, non-UTF-8 package paths, environment filtering, package validation,
  target pairing, and failure cleanup.

GitOrigin-RevId: f893074b36ae6bb9bcedc00fbe7af6bb72745f4c
2026-08-31 19:44:44 +00:00

40 lines
1019 B
Python

# All native build consumers must receive the same pinned source manifest.
filegroup(
name = "source_inputs",
srcs = [
"prepare_sources.py",
"sources.json",
],
visibility = ["//visibility:public"],
)
# Fetch and unpack only when this source target is requested by a build.
filegroup(
name = "sources",
srcs = [
"@voice_glib//:sources",
"@voice_gst_plugins_base//:sources",
"@voice_gst_plugins_good//:sources",
"@voice_gstreamer//:sources",
"@voice_libffi//:sources",
"@voice_meson//:sources",
"@voice_ninja//:sources",
"@voice_opus//:sources",
"@voice_pcre2//:sources",
"@voice_proxy_libintl//:sources",
"@voice_zlib//:sources",
],
tags = ["manual"],
visibility = ["//visibility:public"],
)
filegroup(
name = "build_inputs",
srcs = [
"assemble_package.py",
"build_native.py",
":source_inputs",
],
visibility = ["//visibility:public"],
)