Package.swift 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  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: "MJRefresh",
  6. products: [
  7. // Products define the executables and libraries a package produces, and make them visible to other packages.
  8. .library(
  9. name: "MJRefresh",
  10. targets: ["MJRefresh"]),
  11. ],
  12. dependencies: [
  13. // Dependencies declare other packages that this package depends on.
  14. // .package(url: /* package url */, from: "1.0.0"),
  15. ],
  16. targets: [
  17. // Targets are the basic building blocks of a package. A target can define a module or a test suite.
  18. // Targets can depend on other targets in this package, and on products in packages this package depends on.
  19. .target(
  20. name: "MJRefresh",
  21. dependencies: [],
  22. path: "MJRefresh",
  23. resources: [.process("MJRefresh.bundle")],
  24. cSettings: [
  25. .define("MJ_USEING_SPM"),//Define macro "MJ_USEING_SPM" to identify whether Cocoapods or SPM are being used
  26. .headerSearchPath("."),
  27. .headerSearchPath("Base"),
  28. .headerSearchPath("Custom/Footer/Auto"),
  29. .headerSearchPath("Custom/Footer/Back"),
  30. .headerSearchPath("Custom/Header"),
  31. .headerSearchPath("Custom/Trailer"),
  32. ]
  33. ),
  34. ]
  35. )