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 import("//testing/libfuzzer/fuzzer_test.gni") | 5 import("//testing/libfuzzer/fuzzer_test.gni") |
6 | 6 |
7 declare_args() { | 7 declare_args() { |
8 # Controls whether the build should uses the version of sqlite3 library | 8 # Controls whether the build should uses the version of sqlite3 library |
9 # shipped with the system (currently only supported on iOS) or the one | 9 # shipped with the system (currently only supported on iOS) or the one |
10 # shipped with Chromium source. | 10 # shipped with Chromium source. |
(...skipping 20 matching lines...) Expand all Loading... |
31 "-Wno-pointer-to-int-cast", | 31 "-Wno-pointer-to-int-cast", |
32 ] | 32 ] |
33 } | 33 } |
34 } | 34 } |
35 | 35 |
36 # "sqlite3" can cause conflicts with the system library. | 36 # "sqlite3" can cause conflicts with the system library. |
37 component("chromium_sqlite3") { | 37 component("chromium_sqlite3") { |
38 visibility = [ ":*" ] | 38 visibility = [ ":*" ] |
39 sources = [ | 39 sources = [ |
40 "amalgamation/config.h", | 40 "amalgamation/config.h", |
41 "amalgamation/sqlite3.c", | 41 "amalgamation/sqlite3.00.c", |
42 "amalgamation/sqlite3.h", | 42 "amalgamation/sqlite3.h", |
43 "src/src/recover.c", | 43 "src/src/recover.c", |
44 "src/src/recover.h", | 44 "src/src/recover.h", |
45 "src/src/recover_varint.c", | 45 "src/src/recover_varint.c", |
46 ] | 46 ] |
47 | 47 |
48 cflags = [] | 48 cflags = [] |
49 defines = [ | 49 defines = [ |
50 "SQLITE_ENABLE_FTS3", | 50 "SQLITE_ENABLE_FTS3", |
51 | 51 |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 fuzzer_test("sqlite3_ossfuzz_fuzzer") { | 280 fuzzer_test("sqlite3_ossfuzz_fuzzer") { |
281 # TODO(mmoroz, shess): remove fuzz/ossfuzz.c after next sqlite3 update. | 281 # TODO(mmoroz, shess): remove fuzz/ossfuzz.c after next sqlite3 update. |
282 sources = [ | 282 sources = [ |
283 "fuzz/ossfuzz.c", | 283 "fuzz/ossfuzz.c", |
284 ] | 284 ] |
285 deps = [ | 285 deps = [ |
286 ":sqlite", | 286 ":sqlite", |
287 ] | 287 ] |
288 dict = "fuzz/sql.dict" | 288 dict = "fuzz/sql.dict" |
289 } | 289 } |
OLD | NEW |