Package.swift 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // swift-tools-version: 5.9
  2. // The swift-tools-version declares the minimum version of Swift required to build this package.
  3. import PackageDescription
  4. let package = Package(
  5. name: "spine-ios",
  6. platforms: [
  7. .iOS(.v13)
  8. ],
  9. products: [
  10. // Products define the executables and libraries a package produces, making them visible to other packages.
  11. .library(
  12. name: "Spine",
  13. targets: ["Spine"]
  14. )
  15. ],
  16. targets: [
  17. .target(
  18. name: "Spine",
  19. dependencies: [
  20. "SpineCppLite", "SpineShadersStructs"
  21. ],
  22. path: "spine-ios/Sources/Spine",
  23. swiftSettings: [
  24. .interoperabilityMode(.Cxx)
  25. ]
  26. ),
  27. .target(
  28. name: "SpineCppLite",
  29. path: "spine-ios/Sources/SpineCppLite"
  30. ),
  31. .systemLibrary(
  32. name: "SpineShadersStructs",
  33. path: "spine-ios/Sources/SpineShadersStructs"
  34. )
  35. ],
  36. cxxLanguageStandard: .cxx11
  37. )