-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathBUILD
41 lines (35 loc) · 778 Bytes
/
BUILD
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
licenses(["notice"])
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
package(
default_visibility = ["//visibility:public"],
)
exports_files([
"LICENSE",
])
swift_library(
name = "Dflat",
srcs = ["//src:DflatFiles"],
module_name = "Dflat",
deps = [
"@flatbuffers//swift",
"@swift-atomics//:SwiftAtomics",
],
)
config_setting(
name = "linux_build",
constraint_values = [
"@platforms//os:linux",
],
)
swift_library(
name = "SQLiteDflat",
srcs = ["//src:SQLiteDflatFiles"],
module_name = "SQLiteDflat",
deps = [
":Dflat",
"//src:_SQLiteDflatOSShim",
] + select({
":linux_build": ["@sqlite3//:SQLite3"],
"//conditions:default": [],
}),
)