mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
74 lines
1.9 KiB
Swift
74 lines
1.9 KiB
Swift
// swift-tools-version: 5.9
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "spine-ios",
|
|
platforms: [
|
|
.iOS(.v13),
|
|
.tvOS(.v13),
|
|
.macCatalyst(.v13),
|
|
.visionOS(.v1),
|
|
.macOS(.v10_15),
|
|
.watchOS(.v6),
|
|
],
|
|
products: [
|
|
// Products define the executables and libraries a package produces, making them visible to other packages.
|
|
.library(
|
|
name: "SpineC",
|
|
targets: ["SpineC"]
|
|
),
|
|
.library(
|
|
name: "SpineSwift",
|
|
targets: ["SpineSwift"]
|
|
),
|
|
.library(
|
|
name: "SpineiOS",
|
|
targets: ["SpineiOSWrapper"]
|
|
),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "SpineiOSWrapper",
|
|
dependencies: [
|
|
.target(name: "SpineiOS", condition: .when(platforms: [.iOS, .visionOS, .tvOS, .macCatalyst]))
|
|
],
|
|
path: "spine-ios/Sources/SpineiOSWrapper"
|
|
),
|
|
.target(
|
|
name: "SpineiOS",
|
|
dependencies: [
|
|
"SpineSwift",
|
|
"SpineShadersStructs",
|
|
],
|
|
path: "spine-ios/Sources/SpineiOS"
|
|
),
|
|
.target(
|
|
name: "SpineC",
|
|
path: "spine-ios/Sources/SpineC",
|
|
sources: [
|
|
"src",
|
|
"spine",
|
|
],
|
|
linkerSettings: [
|
|
.linkedLibrary("c++")
|
|
]
|
|
),
|
|
.target(
|
|
name: "SpineSwift",
|
|
dependencies: ["SpineC"],
|
|
path: "spine-ios/Sources/SpineSwift",
|
|
sources: [
|
|
"Generated",
|
|
"Extensions",
|
|
]
|
|
),
|
|
.systemLibrary(
|
|
name: "SpineShadersStructs",
|
|
path: "spine-ios/Sources/SpineShadersStructs"
|
|
),
|
|
],
|
|
cxxLanguageStandard: .cxx11
|
|
)
|