| 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 = [ |
| 11 "amalgamation/sqlite3.h", | 11 "amalgamation/sqlite3.h", |
| 12 "amalgamation/sqlite3.c", | 12 "amalgamation/sqlite3.c", |
| 13 |
| 13 # fts2.c currently has a lot of conflicts when added to | 14 # fts2.c currently has a lot of conflicts when added to |
| 14 # the amalgamation. It is probably not worth fixing that. | 15 # the amalgamation. It is probably not worth fixing that. |
| 15 "src/ext/fts2/fts2.c", | 16 "src/ext/fts2/fts2.c", |
| 16 "src/ext/fts2/fts2.h", | 17 "src/ext/fts2/fts2.h", |
| 17 "src/ext/fts2/fts2_hash.c", | 18 "src/ext/fts2/fts2_hash.c", |
| 18 "src/ext/fts2/fts2_hash.h", | 19 "src/ext/fts2/fts2_hash.h", |
| 19 "src/ext/fts2/fts2_icu.c", | 20 "src/ext/fts2/fts2_icu.c", |
| 20 "src/ext/fts2/fts2_porter.c", | 21 "src/ext/fts2/fts2_porter.c", |
| 21 "src/ext/fts2/fts2_tokenizer.c", | 22 "src/ext/fts2/fts2_tokenizer.c", |
| 22 "src/ext/fts2/fts2_tokenizer.h", | 23 "src/ext/fts2/fts2_tokenizer.h", |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 "SQLITE_TEMP_STORE=3", | 75 "SQLITE_TEMP_STORE=3", |
| 75 "SQLITE_ENABLE_FTS3_BACKWARDS", | 76 "SQLITE_ENABLE_FTS3_BACKWARDS", |
| 76 "DSQLITE_DEFAULT_FILE_FORMAT=4", | 77 "DSQLITE_DEFAULT_FILE_FORMAT=4", |
| 77 ] | 78 ] |
| 78 } | 79 } |
| 79 | 80 |
| 80 if (is_clang) { | 81 if (is_clang) { |
| 81 cflags += [ | 82 cflags += [ |
| 82 # sqlite does `if (*a++ && *b++);` in a non-buggy way. | 83 # sqlite does `if (*a++ && *b++);` in a non-buggy way. |
| 83 "-Wno-empty-body", | 84 "-Wno-empty-body", |
| 85 |
| 84 # sqlite has some `unsigned < 0` checks. | 86 # sqlite has some `unsigned < 0` checks. |
| 85 "-Wno-tautological-compare", | 87 "-Wno-tautological-compare", |
| 86 ] | 88 ] |
| 87 } | 89 } |
| 88 | 90 |
| 89 public_configs = [ ":sqlite_config" ] | 91 public_configs = [ ":sqlite_config" ] |
| 90 | 92 |
| 91 deps = [ | 93 deps = [ |
| 92 "//third_party/icu", | 94 "//third_party/icu", |
| 93 ] | 95 ] |
| 94 } | 96 } |
| 95 | 97 |
| 96 if (is_linux) { | 98 if (is_linux) { |
| 97 executable("sqlite_shell") { | 99 executable("sqlite_shell") { |
| 98 sources = [ | 100 sources = [ |
| 99 "src/src/shell.c", | 101 "src/src/shell.c", |
| 100 "src/src/shell_icu_linux.c", | 102 "src/src/shell_icu_linux.c", |
| 103 |
| 101 # Include a dummy c++ file to force linking of libstdc++. | 104 # Include a dummy c++ file to force linking of libstdc++. |
| 102 "build_as_cpp.cc", | 105 "build_as_cpp.cc", |
| 103 ] | 106 ] |
| 104 | 107 |
| 105 deps = [ | 108 deps = [ |
| 106 ":sqlite", | 109 ":sqlite", |
| 107 "//third_party/icu", | 110 "//third_party/icu", |
| 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 = [ |
| 115 deps = [ "//third_party/icu" ] | 118 "src/ext/icu/icu.c", |
| 119 ] |
| 120 deps = [ |
| 121 "//third_party/icu", |
| 122 ] |
| 116 } | 123 } |
| 117 } | 124 } |
| OLD | NEW |