blob: 864bb10c6ac24b7ae60133130442fbcca46dff1d (
plain) (
blame)
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
|
--- third_party/sqlite/BUILD.gn.orig 2016-10-06 04:02:42.000000000 +0300
+++ third_party/sqlite/BUILD.gn 2016-10-30 23:32:40.983715000 +0200
@@ -20,7 +20,7 @@
# sqlite3Fts3InitTok).
cflags += [ "-Wno-unused-function" ]
}
- if (is_linux) {
+ if (is_linux || is_bsd) {
cflags += [
# SQLite doesn"t believe in compiler warnings,
# preferring testing.
@@ -177,7 +177,7 @@
public_configs = [ ":sqlite_export" ]
}
- if (is_linux) {
+ if (is_linux || is_bsd) {
executable("sqlite_shell") {
# So shell.c can find the correct sqlite3.h.
include_dirs = [ "amalgamation" ]
@@ -206,7 +206,7 @@
config("sqlite_config") {
defines = [ "USE_SYSTEM_SQLITE" ]
- if (is_ios) {
+ if (is_ios || is_bsd) {
libs = [ "sqlite3" ]
} else {
assert(false, "extra flags to use system sqlite3 library missing")
@@ -225,7 +225,7 @@
}
}
- if (is_ios) {
+ if (is_ios || is_bsd) {
source_set("sqlite_recover") {
sources = [
# TODO(shess): Move out of the SQLite source tree, perhaps to ext/.
|