Package@swift-5.7.swift 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // swift-tools-version:5.7
  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: "CocoaLumberjack",
  6. platforms: [
  7. .macOS(.v10_13),
  8. .iOS(.v11),
  9. .tvOS(.v11),
  10. .watchOS(.v4),
  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: "CocoaLumberjack",
  16. targets: ["CocoaLumberjack"]),
  17. .library(
  18. name: "CocoaLumberjackSwift",
  19. targets: ["CocoaLumberjackSwift"]),
  20. .library(
  21. name: "CocoaLumberjackSwiftLogBackend",
  22. targets: ["CocoaLumberjackSwiftLogBackend"]),
  23. ],
  24. dependencies: [
  25. .package(url: "https://github.com/apple/swift-log", from: "1.5.0"),
  26. ],
  27. targets: [
  28. // Targets are the basic building blocks of a package. A target can define a module or a test suite.
  29. // Targets can depend on other targets in this package, and on products in packages which this package depends on.
  30. .target(
  31. name: "CocoaLumberjack",
  32. exclude: ["Supporting Files"],
  33. resources: [
  34. .process("PrivacyInfo.xcprivacy"),
  35. ]),
  36. .target(
  37. name: "CocoaLumberjackSwiftSupport",
  38. dependencies: ["CocoaLumberjack"]),
  39. .target(
  40. name: "CocoaLumberjackSwift",
  41. dependencies: [
  42. "CocoaLumberjack",
  43. "CocoaLumberjackSwiftSupport",
  44. ],
  45. exclude: ["Supporting Files"]),
  46. .target(
  47. name: "CocoaLumberjackSwiftLogBackend",
  48. dependencies: [
  49. "CocoaLumberjack",
  50. .product(name: "Logging", package: "swift-log"),
  51. ]),
  52. .testTarget(
  53. name: "CocoaLumberjackTests",
  54. dependencies: ["CocoaLumberjack"]),
  55. .testTarget(
  56. name: "CocoaLumberjackSwiftTests",
  57. dependencies: ["CocoaLumberjackSwift"]),
  58. .testTarget(
  59. name: "CocoaLumberjackSwiftLogBackendTests",
  60. dependencies: ["CocoaLumberjackSwiftLogBackend"]),
  61. ]
  62. )