| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 "DSQLITE_DEFAULT_FILE_FORMAT=4", | 76 "DSQLITE_DEFAULT_FILE_FORMAT=4", |
| 77 ] | 77 ] |
| 78 } | 78 } |
| 79 | 79 |
| 80 if (is_clang) { | 80 if (is_clang) { |
| 81 cflags += [ | 81 cflags += [ |
| 82 # sqlite does `if (*a++ && *b++);` in a non-buggy way. | 82 # sqlite does `if (*a++ && *b++);` in a non-buggy way. |
| 83 "-Wno-empty-body", | 83 "-Wno-empty-body", |
| 84 # sqlite has some `unsigned < 0` checks. | 84 # sqlite has some `unsigned < 0` checks. |
| 85 "-Wno-tautological-compare", | 85 "-Wno-tautological-compare", |
| 86 # Needed because we don't have this commit yet: |
| 87 # https://github.com/mackyle/sqlite/commit/25df0fa050dcc9be7fb937b8e25be24
049b3fef0 |
| 88 "-Wno-pointer-bool-conversion", |
| 86 ] | 89 ] |
| 87 } | 90 } |
| 88 | 91 |
| 89 public_configs = [ ":sqlite_config" ] | 92 public_configs = [ ":sqlite_config" ] |
| 90 | 93 |
| 91 deps = [ | 94 deps = [ |
| 92 "//third_party/icu", | 95 "//third_party/icu", |
| 93 ] | 96 ] |
| 94 } | 97 } |
| 95 | 98 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 108 ] | 111 ] |
| 109 } | 112 } |
| 110 } | 113 } |
| 111 | 114 |
| 112 if (is_ios) { | 115 if (is_ios) { |
| 113 source_set("sqlite_regexp") { | 116 source_set("sqlite_regexp") { |
| 114 sources = [ "src/ext/icu/icu.c" ] | 117 sources = [ "src/ext/icu/icu.c" ] |
| 115 deps = [ "//third_party/icu" ] | 118 deps = [ "//third_party/icu" ] |
| 116 } | 119 } |
| 117 } | 120 } |
| OLD | NEW |