Package.swift 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // swift-tools-version:5.3
  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: "SDWebImage",
  6. platforms: [
  7. .macOS(.v10_11),
  8. .iOS(.v9),
  9. .tvOS(.v9),
  10. .watchOS(.v2)
  11. ],
  12. products: [
  13. // Products define the executables and libraries produced by a package, and make them visible to other packages.
  14. .library(
  15. name: "SDWebImage",
  16. targets: ["SDWebImage"]),
  17. .library(
  18. name: "SDWebImageMapKit",
  19. targets: ["SDWebImageMapKit"])
  20. ],
  21. dependencies: [
  22. // Dependencies declare other packages that this package depends on.
  23. // .package(url: /* package url */, from: "1.0.0"),
  24. ],
  25. targets: [
  26. // Targets are the basic building blocks of a package. A target can define a module or a test suite.
  27. // Targets can depend on other targets in this package, and on products in packages which this package depends on.
  28. .target(
  29. name: "SDWebImage",
  30. dependencies: [],
  31. path: "SDWebImage",
  32. sources: ["Core", "Private"],
  33. resources: [.copy("Resources/PrivacyInfo.xcprivacy")],
  34. cSettings: [
  35. .headerSearchPath("Core"),
  36. .headerSearchPath("Private")
  37. ]
  38. ),
  39. .target(
  40. name: "SDWebImageMapKit",
  41. dependencies: ["SDWebImage"],
  42. path: "SDWebImageMapKit",
  43. sources: ["MapKit"],
  44. resources: [.copy("Resources/PrivacyInfo.xcprivacy")]
  45. )
  46. ]
  47. )