forked from iulian0512/libspatialite-ios
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPackage.swift
More file actions
33 lines (32 loc) · 940 Bytes
/
Copy pathPackage.swift
File metadata and controls
33 lines (32 loc) · 940 Bytes
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
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "libspatialite",
platforms: [.iOS(.v17), .macOS(.v12)],
products: [
.library(name: "SpatialiteObjC", type: .dynamic, targets: ["SpatialiteObjC"]),
.library(name: "libspatialite", targets: ["libspatialite"]),
],
targets: [
.binaryTarget(
name: "libspatialite",
url: "https://github.com/mozi-app/libspatialite-ios/releases/download/v0.2.0/libspatialite.xcframework.zip",
checksum: "aa5164d10e594acf80fdce4a691611290995749761a8fad63476d92e25cb81d6"
),
.target(
name: "SpatialiteObjC",
dependencies: [
"libspatialite"
],
path: "Sources/SpatialiteObjC",
exclude: [],
sources: ["LibSpatialite.m"],
linkerSettings: [
.linkedLibrary("z"),
.linkedLibrary("iconv"),
.linkedLibrary("c++"),
.linkedLibrary("sqlite3"),
]
),
]
)