Package@swift-5.1.swift 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // swift-tools-version:5.1
  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. .iOS(.v8),
  8. .macOS(.v10_10),
  9. .watchOS(.v3),
  10. .tvOS(.v9)
  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. ],
  21. targets: [
  22. // Targets are the basic building blocks of a package. A target can define a module or a test suite.
  23. // Targets can depend on other targets in this package, and on products in packages which this package depends on.
  24. .target(name: "CocoaLumberjack",
  25. exclude: ["Supporting Files"]),
  26. .target(name: "CocoaLumberjackSwiftSupport",
  27. dependencies: ["CocoaLumberjack"]),
  28. .target(name: "CocoaLumberjackSwift",
  29. dependencies: ["CocoaLumberjack", "CocoaLumberjackSwiftSupport"],
  30. exclude: ["Supporting Files"]),
  31. .testTarget(name: "CocoaLumberjackTests",
  32. dependencies: ["CocoaLumberjack"])
  33. ]
  34. )