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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 "HAVE_USLEEP=1", | 56 "HAVE_USLEEP=1", |
57 ] | 57 ] |
58 } | 58 } |
59 | 59 |
60 include_dirs = [ | 60 include_dirs = [ |
61 "amalgamation", | 61 "amalgamation", |
62 "src/src", # Needed for fts2 to build. | 62 "src/src", # Needed for fts2 to build. |
63 ] | 63 ] |
64 | 64 |
65 configs -= [ "//build/config/compiler:chromium_code" ] | 65 configs -= [ "//build/config/compiler:chromium_code" ] |
66 configs += [ "//build/config/compiler:no_chromium_code" ] | 66 configs += [ |
| 67 "//build/config/compiler:no_chromium_code", |
| 68 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 69 "//build/config/compiler:no_size_t_to_int_warning", |
| 70 ] |
67 | 71 |
68 if (is_win) { | 72 if (is_linux) { |
69 cflags += [ "/wd4267" ] # Conversion from size_t to "type". | |
70 } else if (is_linux) { | |
71 cflags += [ | 73 cflags += [ |
72 # SQLite doesn"t believe in compiler warnings, | 74 # SQLite doesn"t believe in compiler warnings, |
73 # preferring testing. | 75 # preferring testing. |
74 # http://www.sqlite.org/faq.html#q17 | 76 # http://www.sqlite.org/faq.html#q17 |
75 "-Wno-int-to-pointer-cast", | 77 "-Wno-int-to-pointer-cast", |
76 "-Wno-pointer-to-int-cast", | 78 "-Wno-pointer-to-int-cast", |
77 ] | 79 ] |
78 libs = [ "dl" ] | 80 libs = [ "dl" ] |
79 } else if (is_mac || is_ios) { | 81 } else if (is_mac || is_ios) { |
80 libs = [ "CoreFoundation.framework" ] | 82 libs = [ "CoreFoundation.framework" ] |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 if (is_ios) { | 117 if (is_ios) { |
116 source_set("sqlite_regexp") { | 118 source_set("sqlite_regexp") { |
117 sources = [ | 119 sources = [ |
118 "src/ext/icu/icu.c", | 120 "src/ext/icu/icu.c", |
119 ] | 121 ] |
120 deps = [ | 122 deps = [ |
121 "//third_party/icu", | 123 "//third_party/icu", |
122 ] | 124 ] |
123 } | 125 } |
124 } | 126 } |
OLD | NEW |