OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 config("sqlite_config") { | 5 config("sqlite_config") { |
6 include_dirs = [ "." ] | 6 include_dirs = [ "." ] |
7 } | 7 } |
8 | 8 |
9 source_set("sqlite") { | 9 source_set("sqlite") { |
10 sources = [ | 10 sources = [ |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 } else if (is_linux) { | 58 } else if (is_linux) { |
59 cflags += [ | 59 cflags += [ |
60 # SQLite doesn"t believe in compiler warnings, | 60 # SQLite doesn"t believe in compiler warnings, |
61 # preferring testing. | 61 # preferring testing. |
62 # http://www.sqlite.org/faq.html#q17 | 62 # http://www.sqlite.org/faq.html#q17 |
63 "-Wno-int-to-pointer-cast", | 63 "-Wno-int-to-pointer-cast", |
64 "-Wno-pointer-to-int-cast", | 64 "-Wno-pointer-to-int-cast", |
65 ] | 65 ] |
66 libs = [ "dl" ] | 66 libs = [ "dl" ] |
67 } else if (is_mac || is_ios) { | 67 } else if (is_mac || is_ios) { |
68 libs += [ "CoreFoundation.framework" ] | 68 libs = [ "CoreFoundation.framework" ] |
69 } else if (is_android) { | 69 } else if (is_android) { |
70 defines += [ | 70 defines += [ |
71 "HAVE_USLEEP=1", | 71 "HAVE_USLEEP=1", |
72 "SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576", | 72 "SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576", |
73 "SQLITE_DEFAULT_AUTOVACUUM=1", | 73 "SQLITE_DEFAULT_AUTOVACUUM=1", |
74 "SQLITE_TEMP_STORE=3", | 74 "SQLITE_TEMP_STORE=3", |
75 "SQLITE_ENABLE_FTS3_BACKWARDS", | 75 "SQLITE_ENABLE_FTS3_BACKWARDS", |
76 "DSQLITE_DEFAULT_FILE_FORMAT=4", | 76 "DSQLITE_DEFAULT_FILE_FORMAT=4", |
77 ] | 77 ] |
78 } | 78 } |
(...skipping 29 matching lines...) Expand all Loading... |
108 ] | 108 ] |
109 } | 109 } |
110 } | 110 } |
111 | 111 |
112 if (is_ios) { | 112 if (is_ios) { |
113 source_set("sqlite_regexp") { | 113 source_set("sqlite_regexp") { |
114 sources = [ "src/ext/icu/icu.c" ] | 114 sources = [ "src/ext/icu/icu.c" ] |
115 deps = [ "//third_party/icu" ] | 115 deps = [ "//third_party/icu" ] |
116 } | 116 } |
117 } | 117 } |
OLD | NEW |