Slide 10
Slide 10 text
import PackageDescription
let package = Package(
name: "ExampleLogger",
products: [
// Products define the executables and libraries a package produces, and make them visible to other
packages.
.library(
name: "ExampleLogger",
targets: ["ExampleLogger"]),
],
dependencies: [
.package(name: "Utilities", path: "../Utilities"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends
on.
.target(
name: "ExampleLogger",
dependencies: [
.product(name: "Extensions", package: "Utilities", condition: .none),
.product(name: "Buildable", package: "Utilities", condition: .none)
]),
.testTarget(
name: "ExampleLoggerTests",
dependencies: ["ExampleLogger"]),
]
)
Buildable only