Add SQLite system library package

This commit is contained in:
2025-04-23 20:28:12 +03:00
parent 77639572ea
commit 53e654532d
6 changed files with 153 additions and 0 deletions

27
Package.swift Normal file
View File

@@ -0,0 +1,27 @@
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
#if os(Linux)
let sqlitePkg = "sqlite3"
#else
let sqlitePkg: String? = nil
#endif
let package = Package(
name: "DataLiteC",
platforms: [
.macOS(.v10_14),
.iOS(.v12)
],
products: [
.library(name: "DataLiteC", targets: ["DataLiteC"])
],
targets: [
.systemLibrary(name: "DataLiteC", pkgConfig: sqlitePkg, providers: [
.apt(["sqlite3", "libsqlite3-dev"]),
.brew(["sqlite"])
])
]
)