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
@@ -4,7 +4,7 @@
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
#if os(macOS)
#if os(macOS) || os(Linux)
import Testing
import Foundation
import LyrebirdSynth
@@ -8,7 +8,7 @@ import Testing
import Foundation
@testable import LyrebirdLiveCompile
#if os(macOS)
#if os(macOS) || os(Linux)
@Suite("DiagnosticParser")
struct DiagnosticParserTests {
@@ -4,7 +4,7 @@
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
#if os(macOS)
#if os(macOS) || os(Linux)
import Testing
import LyrebirdGraphDSLEmbedded
@testable import LyrebirdLiveCompile
@@ -8,7 +8,7 @@ import Testing
import Foundation
@testable import LyrebirdLiveCompile
#if os(macOS)
#if os(macOS) || os(Linux)
@Suite("LiveCompiler")
struct LiveCompilerTests {
@@ -30,7 +30,11 @@ struct LiveCompilerTests {
let snippet: CompiledSnippet = try LiveCompiler.compile(source: source)
#expect(snippet.moduleName.hasPrefix("LBSnippet_"))
#if os(macOS)
#expect(snippet.dylibPath.hasSuffix(".dylib"))
#else
#expect(snippet.dylibPath.hasSuffix(".so"))
#endif
var marker: Int32 = 0
withUnsafeMutablePointer(to: &marker) { ptr in
@@ -103,6 +107,11 @@ struct LiveCompilerTests {
for url: URL in LiveSession.discoverSPMModuleMaps(in: importPaths) {
args += ["-Xcc", "-fmodule-map-file=\(url.path)"]
}
#if os(Linux)
for url: URL in LiveSession.discoverSourceSystemModuleMaps(in: importPaths) {
args += ["-Xcc", "-fmodule-map-file=\(url.path)"]
}
#endif
return args
}
@@ -9,7 +9,7 @@ import Foundation
import LyrebirdSynth
@testable import LyrebirdLiveCompile
#if os(macOS)
#if os(macOS) || os(Linux)
@MainActor
@Suite("LiveSession diagnostics")
@@ -4,7 +4,7 @@
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
#if os(macOS)
#if os(macOS) || os(Linux)
import Testing
import LyrebirdSynth
import LyrebirdGraphDSLEmbedded
@@ -9,7 +9,7 @@ import Foundation
import LyrebirdSynth
@testable import LyrebirdLiveCompile
#if os(macOS)
#if os(macOS) || os(Linux)
@MainActor
@Suite("LiveSession")
@@ -34,7 +34,12 @@ struct LiveSessionTests {
@Test
func buildDirDiscoveryFindsLyrebirdDylib() throws {
let buildDir: URL = try #require(LiveSession.currentBuildDir())
let dylib: URL = buildDir.appendingPathComponent("libLyrebirdDynamic.dylib")
#if os(macOS)
let libName: String = "libLyrebirdDynamic.dylib"
#else
let libName: String = "libLyrebirdDynamic.so"
#endif
let dylib: URL = buildDir.appendingPathComponent(libName)
#expect(FileManager.default.fileExists(atPath: dylib.path))
}
@@ -4,7 +4,7 @@
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
#if os(macOS)
#if os(macOS) || os(Linux)
import Testing
import LyrebirdSynth
@testable import LyrebirdLiveCompile
@@ -4,7 +4,7 @@
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
#if os(macOS)
#if os(macOS) || os(Linux)
import Testing
import LyrebirdSynth
@testable import LyrebirdLiveCompile
@@ -4,7 +4,7 @@
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
#if os(macOS)
#if os(macOS) || os(Linux)
import Testing
import LyrebirdSynth
@testable import LyrebirdLiveCompile
@@ -4,7 +4,7 @@
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
#if os(macOS)
#if os(macOS) || os(Linux)
import Testing
import Foundation
import LyrebirdSynth
@@ -8,7 +8,7 @@ import Testing
import Foundation
@testable import LyrebirdLiveCompile
#if os(macOS)
#if os(macOS) || os(Linux)
@Suite("SnippetHarness")
struct SnippetHarnessTests {
@@ -4,7 +4,7 @@
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
#if os(macOS)
#if os(macOS) || os(Linux)
import Testing
import LyrebirdSynth
@testable import LyrebirdLiveCompile
@@ -4,7 +4,7 @@
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
#if os(macOS)
#if os(macOS) || os(Linux)
import Testing
import Foundation
@testable import LyrebirdLiveCompile
@@ -4,7 +4,7 @@
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
#if os(macOS)
#if os(macOS) || os(Linux)
import Testing
import LyrebirdSynth
@testable import LyrebirdLiveCompile
@@ -4,7 +4,7 @@
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
#if os(macOS)
#if os(macOS) || os(Linux)
import Testing
import Foundation
@testable import LyrebirdLiveCompile
@@ -4,7 +4,7 @@
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
#if os(macOS)
#if os(macOS) || os(Linux)
import Testing
@testable import LyrebirdLiveCompile