forked from vkuttyp/SQLClient-Swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
45 lines (44 loc) · 1.26 KB
/
Package.swift
File metadata and controls
45 lines (44 loc) · 1.26 KB
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
37
38
39
40
41
42
43
44
45
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "SQLClientSwift",
platforms: [
.iOS(.v16),
.macOS(.v13),
.tvOS(.v16),
],
products: [
.library(
name: "SQLClientSwift",
targets: ["SQLClientSwift"]
),
],
targets: [
// systemLibrary uses pkg-config to find FreeTDS at build time.
// No hardcoded paths, no unsafeFlags — works as an SPM dependency.
// macOS : brew install freetds && brew install pkg-config
// Linux : sudo apt install freetds-dev
.systemLibrary(
name: "CFreeTDS",
path: "Sources/CFreeTDS",
pkgConfig: "freetds",
providers: [
.brew(["freetds"]),
.apt(["freetds-dev"]),
]
),
.target(
name: "SQLClientSwift",
dependencies: ["CFreeTDS"],
path: "Sources/SQLClientSwift",
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency=complete"),
]
),
.testTarget(
name: "SQLClientSwiftTests",
dependencies: ["SQLClientSwift"],
path: "Tests/SQLClientSwiftTests"
),
]
)