phrasing
[swcgi.git] / Package.swift
blobce109314115b0956814a5fc9a87cfd43a5f3a3d6
1 // swift-tools-version:5.3
2 // The swift-tools-version declares the minimum version of Swift required to build this package.
4 import PackageDescription
6 let package = Package(
7   name: "swsgi",
8   products: [
9     // Products define the executables and libraries a package produces, and make them visible to other packages.
10     .library(
11       name: "swsgi",
12       targets: ["swsgi"]),
13     .executable(name: "swcgi", targets: ["swcgi"]),
14     .executable(name: "swnioserver", targets: ["swnioserver"])
15   ],
16   dependencies: [
17     // Dependencies declare other packages that this package depends on.
18     // .package(url: /* package url */, from: "1.0.0"),
19     .package(name: "swift-nio", url: "https://github.com/apple/swift-nio", from: "2.0.0")
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 this package depends on.
24     .target(
25       name: "swsgi",
26       dependencies: []),
27     .testTarget(
28       name: "swsgiTests",
29       dependencies: ["swsgi"]),
30     .target(name: "swcgi", dependencies: ["swsgi"]),
31     .target(name: "swnioserver", dependencies: ["swsgi", .product(name: "NIO", package: "swift-nio"), .product(name: "NIOHTTP1", package: "swift-nio")])
32   ]