| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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/test.gni") | 5 import("//testing/test.gni") |
| 6 | 6 |
| 7 component("sql") { | 7 component("sql") { |
| 8 sources = [ | 8 sources = [ |
| 9 "connection.cc", | 9 "connection.cc", |
| 10 "connection.h", | 10 "connection.h", |
| 11 "connection_memory_dump_provider.cc", | 11 "connection_memory_dump_provider.cc", |
| 12 "connection_memory_dump_provider.h", | 12 "connection_memory_dump_provider.h", |
| 13 "error_delegate_util.cc", | 13 "error_delegate_util.cc", |
| 14 "error_delegate_util.h", | 14 "error_delegate_util.h", |
| 15 "init_status.h", | 15 "init_status.h", |
| 16 "meta_table.cc", | 16 "meta_table.cc", |
| 17 "meta_table.h", | 17 "meta_table.h", |
| 18 "recovery.cc", | 18 "recovery.cc", |
| 19 "recovery.h", | 19 "recovery.h", |
| 20 "sql_memory_dump_provider.cc", | 20 "sql_memory_dump_provider.cc", |
| 21 "sql_memory_dump_provider.h", | 21 "sql_memory_dump_provider.h", |
| 22 "statement.cc", | 22 "statement.cc", |
| 23 "statement.h", | 23 "statement.h", |
| 24 "transaction.cc", | 24 "transaction.cc", |
| 25 "transaction.h", | 25 "transaction.h", |
| 26 "vfs_wrapper.cc", |
| 27 "vfs_wrapper.h", |
| 26 ] | 28 ] |
| 27 | 29 |
| 28 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 30 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 29 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 31 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 30 | 32 |
| 31 defines = [ "SQL_IMPLEMENTATION" ] | 33 defines = [ "SQL_IMPLEMENTATION" ] |
| 32 | 34 |
| 33 deps = [ | 35 deps = [ |
| 34 "//base", | 36 "//base", |
| 35 "//base/third_party/dynamic_annotations", | 37 "//base/third_party/dynamic_annotations", |
| 36 "//third_party/sqlite", | 38 "//third_party/sqlite", |
| 37 ] | 39 ] |
| 40 |
| 41 # For vfs_wrapper.cc time-machine exclusions. |
| 42 if (is_mac) { |
| 43 libs = [ |
| 44 "CoreFoundation.framework", |
| 45 "CoreServices.framework", |
| 46 ] |
| 47 } |
| 38 } | 48 } |
| 39 | 49 |
| 40 static_library("test_support") { | 50 static_library("test_support") { |
| 41 testonly = true | 51 testonly = true |
| 42 sources = [ | 52 sources = [ |
| 43 "test/error_callback_support.cc", | 53 "test/error_callback_support.cc", |
| 44 "test/error_callback_support.h", | 54 "test/error_callback_support.h", |
| 45 "test/scoped_error_expecter.cc", | 55 "test/scoped_error_expecter.cc", |
| 46 "test/scoped_error_expecter.h", | 56 "test/scoped_error_expecter.h", |
| 47 "test/test_helpers.cc", | 57 "test/test_helpers.cc", |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 deps = [ | 118 deps = [ |
| 109 ":redirection_header", | 119 ":redirection_header", |
| 110 ":sql", | 120 ":sql", |
| 111 ":sql_unittests_bundle_data", | 121 ":sql_unittests_bundle_data", |
| 112 ":test_support", | 122 ":test_support", |
| 113 "//base/test:test_support", | 123 "//base/test:test_support", |
| 114 "//testing/gtest", | 124 "//testing/gtest", |
| 115 "//third_party/sqlite", | 125 "//third_party/sqlite", |
| 116 ] | 126 ] |
| 117 } | 127 } |
| OLD | NEW |