| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'variables': { | |
| 7 'chromium_code': 1, | |
| 8 }, | |
| 9 'targets': [ | |
| 10 { | |
| 11 'target_name': 'sql', | |
| 12 'type': '<(component)', | |
| 13 'dependencies': [ | |
| 14 '../base/base.gyp:base', | |
| 15 '../third_party/sqlite/sqlite.gyp:sqlite', | |
| 16 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | |
| 17 ], | |
| 18 'export_dependent_settings': [ | |
| 19 '../base/base.gyp:base', | |
| 20 ], | |
| 21 'defines': [ 'SQL_IMPLEMENTATION' ], | |
| 22 'sources': [ | |
| 23 'connection.cc', | |
| 24 'connection.h', | |
| 25 'connection_memory_dump_provider.cc', | |
| 26 'connection_memory_dump_provider.h', | |
| 27 'error_delegate_util.cc', | |
| 28 'error_delegate_util.h', | |
| 29 'init_status.h', | |
| 30 'meta_table.cc', | |
| 31 'meta_table.h', | |
| 32 'recovery.cc', | |
| 33 'recovery.h', | |
| 34 'sql_memory_dump_provider.cc', | |
| 35 'sql_memory_dump_provider.h', | |
| 36 'statement.cc', | |
| 37 'statement.h', | |
| 38 'transaction.cc', | |
| 39 'transaction.h', | |
| 40 ], | |
| 41 'include_dirs': [ | |
| 42 '..', | |
| 43 ], | |
| 44 'direct_dependent_settings': { | |
| 45 'include_dirs': [ | |
| 46 '..', | |
| 47 ], | |
| 48 }, | |
| 49 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
| 50 'msvs_disabled_warnings': [4267, ], | |
| 51 }, | |
| 52 { | |
| 53 'target_name': 'test_support_sql', | |
| 54 'type': 'static_library', | |
| 55 'dependencies': [ | |
| 56 'sql', | |
| 57 '../base/base.gyp:base', | |
| 58 '../testing/gtest.gyp:gtest', | |
| 59 '../third_party/sqlite/sqlite.gyp:sqlite', | |
| 60 ], | |
| 61 'export_dependent_settings': [ | |
| 62 'sql', | |
| 63 '../base/base.gyp:base', | |
| 64 ], | |
| 65 'sources': [ | |
| 66 'test/error_callback_support.cc', | |
| 67 'test/error_callback_support.h', | |
| 68 'test/scoped_error_expecter.cc', | |
| 69 'test/scoped_error_expecter.h', | |
| 70 'test/test_helpers.cc', | |
| 71 'test/test_helpers.h', | |
| 72 ], | |
| 73 'include_dirs': [ | |
| 74 '..', | |
| 75 ], | |
| 76 'direct_dependent_settings': { | |
| 77 'include_dirs': [ | |
| 78 '..', | |
| 79 ], | |
| 80 }, | |
| 81 }, | |
| 82 { | |
| 83 'target_name': 'sql_unittests', | |
| 84 'type': '<(gtest_target_type)', | |
| 85 'dependencies': [ | |
| 86 'sql', | |
| 87 'test_support_sql', | |
| 88 '../base/base.gyp:test_support_base', | |
| 89 '../testing/gtest.gyp:gtest', | |
| 90 '../third_party/sqlite/sqlite.gyp:sqlite', | |
| 91 ], | |
| 92 'sources': [ | |
| 93 'connection_unittest.cc', | |
| 94 'meta_table_unittest.cc', | |
| 95 'recovery_unittest.cc', | |
| 96 'sql_memory_dump_provider_unittest.cc', | |
| 97 'sqlite_features_unittest.cc', | |
| 98 'statement_unittest.cc', | |
| 99 'test/paths.cc', | |
| 100 'test/paths.h', | |
| 101 'test/run_all_unittests.cc', | |
| 102 'test/sql_test_base.cc', | |
| 103 'test/sql_test_base.h', | |
| 104 'test/sql_test_suite.cc', | |
| 105 'test/sql_test_suite.h', | |
| 106 'transaction_unittest.cc', | |
| 107 ], | |
| 108 'include_dirs': [ | |
| 109 '..', | |
| 110 ], | |
| 111 'conditions': [ | |
| 112 ['OS == "android"', { | |
| 113 'dependencies': [ | |
| 114 '../testing/android/native_test.gyp:native_test_native_code', | |
| 115 ], | |
| 116 }], | |
| 117 ['OS == "ios"', { | |
| 118 'actions': [{ | |
| 119 'action_name': 'copy_test_data', | |
| 120 'variables': { | |
| 121 'test_data_files': [ | |
| 122 'test/data', | |
| 123 ], | |
| 124 'test_data_prefix' : 'sql', | |
| 125 }, | |
| 126 'includes': [ '../build/copy_test_data_ios.gypi' ], | |
| 127 }], | |
| 128 }], | |
| 129 ], | |
| 130 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
| 131 'msvs_disabled_warnings': [4267, ], | |
| 132 }, | |
| 133 ], | |
| 134 'conditions': [ | |
| 135 ['OS == "android"', { | |
| 136 'targets': [ | |
| 137 { | |
| 138 'target_name': 'sql_unittests_apk', | |
| 139 'type': 'none', | |
| 140 'dependencies': [ | |
| 141 'sql_unittests', | |
| 142 ], | |
| 143 'variables': { | |
| 144 'test_suite_name': 'sql_unittests', | |
| 145 'isolate_file': 'sql_unittests.isolate', | |
| 146 }, | |
| 147 'includes': [ '../build/apk_test.gypi' ], | |
| 148 }, | |
| 149 ], | |
| 150 'conditions': [ | |
| 151 ['test_isolation_mode != "noop"', { | |
| 152 'targets': [ | |
| 153 { | |
| 154 'target_name': 'sql_unittests_apk_run', | |
| 155 'type': 'none', | |
| 156 'dependencies': [ | |
| 157 'sql_unittests_apk', | |
| 158 ], | |
| 159 'includes': [ | |
| 160 '../build/isolate.gypi', | |
| 161 ], | |
| 162 'sources': [ | |
| 163 'sql_unittests_apk.isolate', | |
| 164 ], | |
| 165 }, | |
| 166 ] | |
| 167 }], | |
| 168 ] | |
| 169 }], | |
| 170 ['test_isolation_mode != "noop"', { | |
| 171 'targets': [ | |
| 172 { | |
| 173 'target_name': 'sql_unittests_run', | |
| 174 'type': 'none', | |
| 175 'dependencies': [ | |
| 176 'sql_unittests', | |
| 177 ], | |
| 178 'includes': [ | |
| 179 '../build/isolate.gypi', | |
| 180 ], | |
| 181 'sources': [ | |
| 182 'sql_unittests.isolate', | |
| 183 ], | |
| 184 }, | |
| 185 ], | |
| 186 }], | |
| 187 ], | |
| 188 } | |
| OLD | NEW |