forked from sqlcipher/sqlcipher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
61 lines (60 loc) · 2.11 KB
/
Package.swift
File metadata and controls
61 lines (60 loc) · 2.11 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// swift-tools-version: 5.6
import PackageDescription
let package = Package(
name: "SQLCipher",
products: [
.library(
name: "sqlcipher",
targets: ["sqlcipher"]),
],
dependencies: [],
targets: [
.executableTarget(
name: "Amalgamation",
path: "SwiftPM/Amalgamation"
),
.plugin(
name: "AmalgamationPlugin",
capability: .buildTool(),
dependencies: ["Amalgamation"],
path: "SwiftPM/AmalgamationPlugin"
),
.target(
name: "sqlcipher",
path: "SwiftPM/sqlcipher",
cSettings: [
.define("NDEBUG", to: nil),
.define("SQLITE_HAS_CODEC", to: nil),
.define("SQLITE_TEMP_STORE", to: "2"),
.define("SQLITE_SOUNDEX", to: nil),
.define("SQLITE_THREADSAFE", to: nil),
.define("SQLITE_ENABLE_RTREE", to: nil),
.define("SQLITE_ENABLE_STAT3", to: nil),
.define("SQLITE_ENABLE_STAT4", to: nil),
.define("SQLITE_ENABLE_COLUMN_METADATA", to: nil),
.define("SQLITE_ENABLE_MEMORY_MANAGEMENT", to: nil),
.define("SQLITE_ENABLE_LOAD_EXTENSION", to: nil),
.define("SQLITE_ENABLE_FTS4", to: nil),
.define("SQLITE_ENABLE_FTS4_UNICODE61", to: nil),
.define("SQLITE_ENABLE_FTS3_PARENTHESIS", to: nil),
.define("SQLITE_ENABLE_UNLOCK_NOTIFY", to: nil),
.define("SQLITE_ENABLE_JSON1", to: nil),
.define("SQLITE_ENABLE_FTS5", to: nil),
.define("SQLCIPHER_CRYPTO_CC", to: nil),
.define("HAVE_USLEEP", to: "1")
],
swiftSettings: [
.define("SQLITE_HAS_CODEC")
]
,linkerSettings: [
.linkedFramework("Foundation"),
.linkedFramework("Security")
],
plugins: [
.plugin(
name: "AmalgamationPlugin"
)
]
)
]
)