expose multiplatform spine-engine target (#2806)

This commit is contained in:
Byeong Gwan 2025-04-10 18:28:34 +09:00 committed by GitHub
parent 88230582c2
commit f04382bacd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 35 additions and 2 deletions

View File

@ -6,16 +6,35 @@ import PackageDescription
let package = Package( let package = Package(
name: "spine-ios", name: "spine-ios",
platforms: [ platforms: [
.iOS(.v13) .iOS(.v13),
.tvOS(.v13),
.macCatalyst(.v13),
.visionOS(.v1),
.macOS(.v10_15),
.watchOS(.v6),
], ],
products: [ products: [
// Products define the executables and libraries a package produces, making them visible to other packages. // Products define the executables and libraries a package produces, making them visible to other packages.
.library( .library(
name: "Spine", name: "Spine",
targets: ["Spine"] targets: ["SpineModule"]
) )
], ],
targets: [ targets: [
.target(
name: "SpineModule",
dependencies: [
.byName(
name: "Spine",
condition: .when(platforms: [
.iOS,
])
),
"SpineCppLite",
"SpineShadersStructs",
],
path: "spine-ios/Sources/SpineModule"
),
.target( .target(
name: "Spine", name: "Spine",
dependencies: [ dependencies: [

View File

@ -0,0 +1,14 @@
//
// SpineModule.swift
// spine-ios
//
// Created by on 3/7/25.
//
#if canImport(Spine)
@_exported import Spine
#endif
@_exported import SpineCppLite
@_exported import SpineShadersStructs