1.0.0 release
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
// Package.swift
|
||||
// Lyrebird
|
||||
//
|
||||
// Copyright (c) 2026 Joshua Parmenter / realizedsound
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
// swift-tools-version: 6.0
|
||||
import PackageDescription
|
||||
|
||||
// Phase 167 — `LyrebirdLiveCompile` and `LyrebirdLiveCompileUI` live in this
|
||||
// sub-package so that cross-package `.product(name:, package:)` dependency
|
||||
// resolution forces SwiftPM to dynamic-link `libLyrebirdLiveCompile.dylib`
|
||||
// against `libLyrebird.dylib` instead of statically embedding `Lyrebird`'s
|
||||
// classes (which caused ObjC class double-registration during `swift test`
|
||||
// in the single-package layout).
|
||||
//
|
||||
// macOS-only — the host swiftc-shell-out + dlopen surface cannot run on iOS.
|
||||
|
||||
let package = Package(
|
||||
name: "LyrebirdLiveCompile",
|
||||
platforms: [.macOS(.v15)],
|
||||
products: [
|
||||
.library(
|
||||
name: "LyrebirdLiveCompile",
|
||||
type: .dynamic,
|
||||
targets: ["LyrebirdLiveCompile"]
|
||||
),
|
||||
.library(
|
||||
name: "LyrebirdLiveCompileUI",
|
||||
targets: ["LyrebirdLiveCompileUI"]
|
||||
),
|
||||
],
|
||||
dependencies: [
|
||||
.package(name: "Lyrebird", path: "..")
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
name: "LyrebirdLiveCompile",
|
||||
dependencies: [
|
||||
.product(name: "Lyrebird", package: "Lyrebird"),
|
||||
],
|
||||
path: "Sources/LyrebirdLiveCompile"
|
||||
),
|
||||
.target(
|
||||
name: "LyrebirdLiveCompileUI",
|
||||
dependencies: [
|
||||
"LyrebirdLiveCompile",
|
||||
.product(name: "Lyrebird", package: "Lyrebird"),
|
||||
],
|
||||
path: "Sources/LyrebirdLiveCompileUI",
|
||||
swiftSettings: [.swiftLanguageMode(.v5)]
|
||||
),
|
||||
.testTarget(
|
||||
name: "LyrebirdLiveCompileTests",
|
||||
dependencies: [
|
||||
"LyrebirdLiveCompile",
|
||||
.product(name: "Lyrebird", package: "Lyrebird"),
|
||||
],
|
||||
path: "Tests/LyrebirdLiveCompileTests"
|
||||
),
|
||||
.testTarget(
|
||||
name: "LyrebirdLiveCompileUITests",
|
||||
dependencies: [
|
||||
"LyrebirdLiveCompile",
|
||||
"LyrebirdLiveCompileUI",
|
||||
.product(name: "Lyrebird", package: "Lyrebird"),
|
||||
],
|
||||
path: "Tests/LyrebirdLiveCompileUITests",
|
||||
swiftSettings: [.swiftLanguageMode(.v5)]
|
||||
),
|
||||
]
|
||||
)
|
||||
Reference in New Issue
Block a user