Files
Lyrebird/Sources/LyrebirdUI/LyrebirdUILinuxExports.swift
T
josh b6fdee8bfc 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>
2026-09-10 21:09:11 -07:00

25 lines
1.1 KiB
Swift

// LyrebirdUILinuxExports.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
// Re-exports so downstream Linux app / synth code needs only
// `import LyrebirdUILinux` to get the SwiftOpenUI View DSL *and* the GTK4
// backend's `DrawingContext` drawing methods (setColor/arc/moveTo/stroke),
// which live as extensions in `BackendGTK4` rather than SwiftOpenUI's core.
//
// This mirrors how, on Apple platforms, importing a UI umbrella brings the
// underlying toolkit along — the goal is one platform `#if` at the import site
// (`import LyrebirdUI` vs `import LyrebirdUILinux`) and identical body code
// beneath it, since both bind the same core `@UIParam` / `UIParamNode` model.
//
// Both modules are guaranteed present inside this target: `Package.swift` only
// appends `LyrebirdUILinux` together with its `SwiftOpenUI` + `BackendGTK4`
// dependencies (Linux, `LYREBIRD_ENABLE_LINUX_UI=1`), so no `canImport` guard
// is needed here.
#if !canImport(SwiftUI)
@_exported import SwiftOpenUI
@_exported import BackendGTK4
#endif