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
9 // Products define the executables and libraries a package produces, and make them visible to other packages.
13 .executable(name: "swcgi", targets: ["swcgi"]),
14 .executable(name: "swnioserver", targets: ["swnioserver"])
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")
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.
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")])