mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
since SpineCppLite expose c-interface only and does not expose cpp interface c++ interperability is no-op and just causing compiler crash. So we could add linker flag to ensure SpineCppLite is build with C++ while removing c++ interperability mode
40 lines
1.0 KiB
Swift
40 lines
1.0 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)
|
|
],
|
|
products: [
|
|
// Products define the executables and libraries a package produces, making them visible to other packages.
|
|
.library(
|
|
name: "Spine",
|
|
targets: ["Spine"]
|
|
)
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "Spine",
|
|
dependencies: [
|
|
"SpineCppLite", "SpineShadersStructs"
|
|
],
|
|
path: "spine-ios/Sources/Spine"
|
|
),
|
|
.target(
|
|
name: "SpineCppLite",
|
|
path: "spine-ios/Sources/SpineCppLite",
|
|
linkerSettings: [
|
|
.linkedLibrary("c++"),
|
|
]
|
|
),
|
|
.systemLibrary(
|
|
name: "SpineShadersStructs",
|
|
path: "spine-ios/Sources/SpineShadersStructs"
|
|
)
|
|
],
|
|
cxxLanguageStandard: .cxx11
|
|
)
|