Package.swift 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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_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. ],
  18. dependencies: [
  19. // Dependencies declare other packages that this package depends on.
  20. // .package(url: /* package url */, from: "1.0.0"),
  21. ],
  22. targets: [
  23. // Targets are the basic building blocks of a package. A target can define a module or a test suite.
  24. // Targets can depend on other targets in this package, and on products in packages which this package depends on.
  25. .target(
  26. name: "SDWebImage",
  27. dependencies: [],
  28. path: "SDWebImage",
  29. sources: ["Core", "Private"],
  30. cSettings: [
  31. .headerSearchPath("Core"),
  32. .headerSearchPath("Private")
  33. ]
  34. )
  35. ]
  36. )