代码拉取完成,页面将自动刷新
// swift-tools-version: 5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "WCDBSwift",
platforms: [
.macOS(.v10_13),
.watchOS(.v4),
.tvOS(.v12),
.iOS(.v12)],
products: [
.library(name: "WCDBSwift", targets: ["WCDBSwift"]),
.library(name: "WCDBSwiftDynamic", type: .dynamic, targets: ["WCDBSwift"]),
],
dependencies: [
.package(url: "https://github.com/Tencent/sqlcipher", .exactItem("1.4.4"))
],
targets: [
.target(
name: "objc-core",
path: "src/objc/core",
sources: ["WCTFileManager.mm", "WCTFoundation.mm", "WCTFTSTokenizerUtil.mm", "WCTOperationQueue.mm"],
publicHeadersPath:"",
cSettings: [
.headerSearchPath("../../**"),
],
linkerSettings: [
.linkedFramework("UIKit", .when(platforms: [.iOS])),
]
),
.target(
name: "common",
dependencies: ["sqlcipher", .target(name: "objc-core")],
path: "src/common",
exclude: [
"repair/sqlite",
"platform/WCTFileManager.cpp",
"platform/WCTOperationQueue.cpp",
],
publicHeadersPath:"",
cSettings: [
.define("SQLITE_WCDB", to: "1"),
.define("SQLITE_WCDB_LOCK_HOOK", to: "1"),
.define("SQLITE_WCDB_CHECKPOINT_HANDLER", to: "1"),
.define("SQLITE_WCDB_SUSPEND", to: "1"),
.define("SQLITE_WCDB_IMPROVED_CHECKPOINT", to: "1"),
.define("SQLITE_HAS_CODEC"),
.define("SQLITE_DEFAULT_PAGE_SIZE", to: "4096"),
.define("SQLITE_DEFAULT_SYNCHRONOUS", to: "1"),
.define("SQLITE_DEFAULT_WAL_SYNCHRONOUS", to: "1"),
.define("SQLITE_DEFAULT_LOCKING_MODE", to: "0"),
.define("SQLITE_DEFAULT_WAL_AUTOCHECKPOINT", to: "0"),
.headerSearchPath("**")
],
linkerSettings: [
.linkedLibrary("z"),
]
),
.target(
name: "bridge",
dependencies: [.target(name: "common")],
path: "src/bridge",
exclude: [
"tests",
],
cSettings: [
.headerSearchPath("../**")
]
),
.target(
name: "WCDBSwift",
dependencies: [.target(name: "bridge")],
path: "src/swift",
exclude: [
"tests"
],
publicHeadersPath: ".",
cSettings: [
.headerSearchPath("../bridge/**")
]
)
],
cLanguageStandard: .c11,
cxxLanguageStandard: .cxx14
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。