forked from mongodb/mongo-swift-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
36 lines (36 loc) · 1.67 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// swift-tools-version:5.1
import PackageDescription
let package = Package(
name: "mongo-swift-driver",
platforms: [
.macOS(.v10_14)
],
products: [
.library(name: "MongoSwift", targets: ["MongoSwift"]),
.library(name: "MongoSwiftSync", targets: ["MongoSwiftSync"])
],
dependencies: [
.package(url: "https://github.com/Quick/Nimble.git", .upToNextMajor(from: "8.0.0")),
.package(url: "https://github.com/apple/swift-nio", .upToNextMajor(from: "2.15.0")),
.package(url: "https://github.com/mongodb/swift-bson", .upToNextMajor(from: "3.0.0"))
],
targets: [
.target(name: "MongoSwift", dependencies: ["CLibMongoC", "NIO", "NIOConcurrencyHelpers", "SwiftBSON",]),
.target(name: "MongoSwiftSync", dependencies: ["MongoSwift", "NIO"]),
.target(name: "AtlasConnectivity", dependencies: ["MongoSwiftSync"]),
.target(name: "TestsCommon", dependencies: ["MongoSwift", "Nimble"]),
.testTarget(name: "BSONTests", dependencies: ["MongoSwift", "TestsCommon", "Nimble", "CLibMongoC"]),
.testTarget(name: "MongoSwiftTests", dependencies: ["MongoSwift", "TestsCommon", "Nimble", "NIO"]),
.testTarget(name: "MongoSwiftSyncTests", dependencies: ["MongoSwiftSync", "TestsCommon", "Nimble", "MongoSwift"]),
.target(
name: "CLibMongoC",
dependencies: [],
linkerSettings: [
.linkedLibrary("resolv"),
.linkedLibrary("ssl", .when(platforms: [.linux])),
.linkedLibrary("crypto", .when(platforms: [.linux])),
.linkedLibrary("z", .when(platforms: [.linux]))
]
)
]
)