Lyrebird 2.0.0 — Linux support

Consolidated release: the cross-platform Linux port (engine, generators, CLI,
REPL, NRT, portable DSP), live ALSA audio + ALSA MIDI + POSIX OSC + portable
WAV codec, the GTK4 GUI (LyrebirdUI on the SwiftOpenUI backend), and the Linux
live-coding scratchpad (LiveCompile). Apple platforms unchanged; all additive.
See RELEASES.md and LINUX_README.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-09-10 21:09:11 -07:00
parent 77580ee98e
commit b6fdee8bfc
293 changed files with 16800 additions and 775 deletions
+33
View File
@@ -106,3 +106,36 @@ let package = Package(
),
]
)
#if os(Linux)
// On Linux the editor UI is SwiftOpenUI/GTK4 (the macOS AppKit surface is
// #if os(macOS)-gated out). Wire the cross-platform LyrebirdUI product — which
// @_exported re-exports SwiftOpenUI + BackendGTK4 and provides LyrebirdWindow /
// LyrebirdScopeView — into the UI target, plus a runnable minimal scratch demo:
// LYREBIRD_ENABLE_LINUX_UI is not needed; `swift run LyrebirdScratchLinuxDemo`.
if let uiIndex: Int = package.targets.firstIndex(where: { $0.name == "LyrebirdLiveCompileUI" }) {
package.targets[uiIndex].dependencies.append(
.product(name: "LyrebirdUI", package: "Lyrebird")
)
}
package.targets.append(
.executableTarget(
name: "LyrebirdScratchLinuxDemo",
dependencies: [
"LyrebirdLiveCompile",
"LyrebirdLiveCompileUI",
.product(name: "LyrebirdDynamic", package: "Lyrebird"),
.product(name: "LyrebirdUI", package: "Lyrebird"),
],
path: "Sources/LyrebirdScratchLinuxDemo"
// NOTE: a live-compiled snippet links `-lLyrebirdDynamic
// -lLyrebirdLiveCompileDynamic`, so those shared libraries must exist in
// the build dir before you Run. A same-package target can't depend on a
// same-package product to force them, so build the whole package first —
// `swift build` (builds all products, incl. the …Dynamic .so's) — then
// `swift run LyrebirdScratchLinuxDemo`. `swift run` alone only builds the
// executable's own graph and would leave the snippet link unable to find
// libLyrebirdLiveCompileDynamic.so.
)
)
#endif