Package.swift 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. .tvOS(.v13),
  9. .macCatalyst(.v13),
  10. .visionOS(.v1),
  11. .macOS(.v10_15),
  12. .watchOS(.v6),
  13. ],
  14. products: [
  15. // Products define the executables and libraries a package produces, making them visible to other packages.
  16. .library(
  17. name: "Spine",
  18. targets: ["SpineModule"]
  19. )
  20. ],
  21. targets: [
  22. .target(
  23. name: "SpineModule",
  24. dependencies: [
  25. .byName(
  26. name: "Spine",
  27. condition: .when(platforms: [
  28. .iOS,
  29. ])
  30. ),
  31. "SpineCppLite",
  32. "SpineShadersStructs",
  33. ],
  34. path: "spine-ios/Sources/SpineModule"
  35. ),
  36. .target(
  37. name: "Spine",
  38. dependencies: [
  39. "SpineCppLite", "SpineShadersStructs"
  40. ],
  41. path: "spine-ios/Sources/Spine"
  42. ),
  43. .target(
  44. name: "SpineCppLite",
  45. path: "spine-ios/Sources/SpineCppLite",
  46. linkerSettings: [
  47. .linkedLibrary("c++"),
  48. ]
  49. ),
  50. .systemLibrary(
  51. name: "SpineShadersStructs",
  52. path: "spine-ios/Sources/SpineShadersStructs"
  53. )
  54. ],
  55. cxxLanguageStandard: .cxx11
  56. )