Package.swift 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // swift-tools-version:5.0
  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_10),
  8. .iOS(.v8),
  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. cSettings: [
  34. .headerSearchPath("Core"),
  35. .headerSearchPath("Private")
  36. ]
  37. ),
  38. .target(
  39. name: "SDWebImageMapKit",
  40. dependencies: ["SDWebImage"],
  41. path: "SDWebImageMapKit",
  42. sources: ["MapKit"]
  43. )
  44. ]
  45. )