| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 ] | 86 ] |
| 87 } | 87 } |
| 88 | 88 |
| 89 direct_dependent_configs = [ ":sqlite_config" ] | 89 public_configs = [ ":sqlite_config" ] |
| 90 | 90 |
| 91 deps = [ | 91 deps = [ |
| 92 "//third_party/icu", | 92 "//third_party/icu", |
| 93 ] | 93 ] |
| 94 } | 94 } |
| 95 | 95 |
| 96 if (is_linux) { | 96 if (is_linux) { |
| 97 executable("sqlite_shell") { | 97 executable("sqlite_shell") { |
| 98 sources = [ | 98 sources = [ |
| 99 "src/src/shell.c", | 99 "src/src/shell.c", |
| 100 "src/src/shell_icu_linux.c", | 100 "src/src/shell_icu_linux.c", |
| 101 # Include a dummy c++ file to force linking of libstdc++. | 101 # Include a dummy c++ file to force linking of libstdc++. |
| 102 "build_as_cpp.cc", | 102 "build_as_cpp.cc", |
| 103 ] | 103 ] |
| 104 | 104 |
| 105 deps = [ | 105 deps = [ |
| 106 ":sqlite", | 106 ":sqlite", |
| 107 "//third_party/icu", | 107 "//third_party/icu", |
| 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 |