spine-runtimes/Package.swift
Byeong Gwan 093b0d432d
update package setting to fix compile Error (#2780)
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
2025-04-08 11:50:18 +02:00

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
)