aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-third__party_sqlite_BUILD.gn
blob: 95a4c125669bcda176c7a2401e3a34a93646a7d2 (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
39
40
41
42
43
44
45
46
47
--- third_party/sqlite/BUILD.gn.orig	2017-03-09 20:04:47 UTC
+++ third_party/sqlite/BUILD.gn
@@ -22,7 +22,7 @@ if (!use_system_sqlite) {
       # sqlite3Fts3InitTok).
       cflags += [ "-Wno-unused-function" ]
     }
-    if (is_linux) {
+    if (is_linux || is_bsd) {
       cflags += [
         # SQLite doesn"t believe in compiler warnings,
         # preferring testing.
@@ -150,7 +150,7 @@ if (!use_system_sqlite) {
       ":sqlite_warnings",
     ]
 
-    if (is_linux) {
+    if (is_linux && !is_bsd) {
       libs = [ "dl" ]
     } else if (is_mac || is_ios) {
       libs = [
@@ -187,7 +187,7 @@ if (!use_system_sqlite) {
     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" ]
@@ -216,7 +216,7 @@ if (use_system_sqlite) {
 
   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")
@@ -235,7 +235,7 @@ if (use_system_sqlite) {
     }
   }
 
-  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/.