Files
codex/third_party/voice/BUILD.bazel
T
Benjamin Carlsson dc0dc4f15d Package prepared runtimes with the voice host (#42332)
## What changed

- Add an optional `--runtime` input to `assemble_package.py`.
- Validate the runtime receipt, target, source manifest, plugin inventory, paths,
  and file hashes before copying only the declared runtime files.
- Preserve each platform's runtime layout and record the copied files and
  `runtime.json` in the package manifest.
- Recheck hashes after copying and remove the new output if assembly fails.

## Testing

Add package assembly tests for Linux, macOS, and Windows layouts, invalid
receipts and paths, modified inputs, symlinked directories, and copy-time
changes.

GitOrigin-RevId: 8c9609af8ced406926707b2b0e1dcd6d2251f94b
2026-09-02 19:13:32 +00:00

45 lines
1.1 KiB
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",
"linux_runtime.py",
"macos_runtime.py",
"package_runtime.py",
"runtime.py",
"windows_runtime.py",
":source_inputs",
],
visibility = ["//visibility:public"],
)