[email protected] | 3e1d8c8 | 2012-05-31 04:36:03 | [diff] [blame] | 1 | # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 40ce1e44 | 2011-06-30 15:03:11 | [diff] [blame] | 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', |
[email protected] | d452696 | 2011-11-10 21:40:28 | [diff] [blame] | 12 | 'type': '<(component)', |
[email protected] | 40ce1e44 | 2011-06-30 15:03:11 | [diff] [blame] | 13 | 'dependencies': [ |
| 14 | '../base/base.gyp:base', |
| 15 | '../third_party/sqlite/sqlite.gyp:sqlite', |
[email protected] | a7ec129 | 2013-07-22 22:02:18 | [diff] [blame] | 16 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | 40ce1e44 | 2011-06-30 15:03:11 | [diff] [blame] | 17 | ], |
[email protected] | 4350e32 | 2013-06-18 22:18:10 | [diff] [blame] | 18 | 'export_dependent_settings': [ |
| 19 | '../base/base.gyp:base', |
| 20 | ], |
[email protected] | d452696 | 2011-11-10 21:40:28 | [diff] [blame] | 21 | 'defines': [ 'SQL_IMPLEMENTATION' ], |
[email protected] | 40ce1e44 | 2011-06-30 15:03:11 | [diff] [blame] | 22 | 'sources': [ |
[email protected] | f0a54b2 | 2011-07-19 18:40:21 | [diff] [blame] | 23 | 'connection.cc', |
| 24 | 'connection.h', |
[email protected] | 0d04ede | 2012-10-18 04:31:53 | [diff] [blame] | 25 | 'error_delegate_util.cc', |
| 26 | 'error_delegate_util.h', |
[email protected] | f0a54b2 | 2011-07-19 18:40:21 | [diff] [blame] | 27 | 'init_status.h', |
| 28 | 'meta_table.cc', |
| 29 | 'meta_table.h', |
shess | 58b8df8 | 2015-06-03 00:19:32 | [diff] [blame] | 30 | 'proxy.cc', |
| 31 | 'proxy.h', |
[email protected] | 8d40941 | 2013-07-19 18:25:30 | [diff] [blame] | 32 | 'recovery.cc', |
| 33 | 'recovery.h', |
[email protected] | f0a54b2 | 2011-07-19 18:40:21 | [diff] [blame] | 34 | 'statement.cc', |
| 35 | 'statement.h', |
| 36 | 'transaction.cc', |
| 37 | 'transaction.h', |
[email protected] | 40ce1e44 | 2011-06-30 15:03:11 | [diff] [blame] | 38 | ], |
[email protected] | 4350e32 | 2013-06-18 22:18:10 | [diff] [blame] | 39 | 'include_dirs': [ |
| 40 | '..', |
| 41 | ], |
| 42 | 'direct_dependent_settings': { |
| 43 | 'include_dirs': [ |
| 44 | '..', |
| 45 | ], |
| 46 | }, |
[email protected] | 4be31d4 | 2013-01-11 18:47:53 | [diff] [blame] | 47 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 48 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | 40ce1e44 | 2011-06-30 15:03:11 | [diff] [blame] | 49 | }, |
| 50 | { |
[email protected] | 4350e32 | 2013-06-18 22:18:10 | [diff] [blame] | 51 | 'target_name': 'test_support_sql', |
| 52 | 'type': 'static_library', |
| 53 | 'dependencies': [ |
| 54 | 'sql', |
| 55 | '../base/base.gyp:base', |
| 56 | '../testing/gtest.gyp:gtest', |
Scott Hess | dcf12048 | 2015-02-10 21:33:29 | [diff] [blame] | 57 | '../third_party/sqlite/sqlite.gyp:sqlite', |
[email protected] | 4350e32 | 2013-06-18 22:18:10 | [diff] [blame] | 58 | ], |
| 59 | 'export_dependent_settings': [ |
| 60 | 'sql', |
| 61 | '../base/base.gyp:base', |
| 62 | ], |
| 63 | 'sources': [ |
[email protected] | 98cf300 | 2013-07-12 01:38:56 | [diff] [blame] | 64 | 'test/error_callback_support.cc', |
| 65 | 'test/error_callback_support.h', |
[email protected] | 4350e32 | 2013-06-18 22:18:10 | [diff] [blame] | 66 | 'test/scoped_error_ignorer.cc', |
| 67 | 'test/scoped_error_ignorer.h', |
[email protected] | 43ffdd8 | 2013-09-10 23:44:50 | [diff] [blame] | 68 | 'test/test_helpers.cc', |
| 69 | 'test/test_helpers.h', |
[email protected] | 4350e32 | 2013-06-18 22:18:10 | [diff] [blame] | 70 | ], |
| 71 | 'include_dirs': [ |
| 72 | '..', |
| 73 | ], |
| 74 | 'direct_dependent_settings': { |
| 75 | 'include_dirs': [ |
| 76 | '..', |
| 77 | ], |
| 78 | }, |
| 79 | }, |
| 80 | { |
[email protected] | 40ce1e44 | 2011-06-30 15:03:11 | [diff] [blame] | 81 | 'target_name': 'sql_unittests', |
[email protected] | 3e1d8c8 | 2012-05-31 04:36:03 | [diff] [blame] | 82 | 'type': '<(gtest_target_type)', |
[email protected] | 40ce1e44 | 2011-06-30 15:03:11 | [diff] [blame] | 83 | 'dependencies': [ |
| 84 | 'sql', |
[email protected] | 4350e32 | 2013-06-18 22:18:10 | [diff] [blame] | 85 | 'test_support_sql', |
[email protected] | 40ce1e44 | 2011-06-30 15:03:11 | [diff] [blame] | 86 | '../base/base.gyp:test_support_base', |
| 87 | '../testing/gtest.gyp:gtest', |
[email protected] | dd325f05 | 2013-08-06 02:37:40 | [diff] [blame] | 88 | '../third_party/sqlite/sqlite.gyp:sqlite', |
[email protected] | 40ce1e44 | 2011-06-30 15:03:11 | [diff] [blame] | 89 | ], |
| 90 | 'sources': [ |
[email protected] | f0a54b2 | 2011-07-19 18:40:21 | [diff] [blame] | 91 | 'connection_unittest.cc', |
[email protected] | 6ed6d14f | 2013-09-07 15:48:36 | [diff] [blame] | 92 | 'meta_table_unittest.cc', |
[email protected] | 8d40941 | 2013-07-19 18:25:30 | [diff] [blame] | 93 | 'recovery_unittest.cc', |
[email protected] | f0a54b2 | 2011-07-19 18:40:21 | [diff] [blame] | 94 | 'sqlite_features_unittest.cc', |
| 95 | 'statement_unittest.cc', |
[email protected] | cfb82161 | 2014-07-10 00:48:06 | [diff] [blame] | 96 | 'test/paths.cc', |
| 97 | 'test/paths.h', |
| 98 | 'test/run_all_unittests.cc', |
erg | 102ceb41 | 2015-06-20 01:38:13 | [diff] [blame^] | 99 | 'test/sql_test_base.cc', |
| 100 | 'test/sql_test_base.h', |
[email protected] | cfb82161 | 2014-07-10 00:48:06 | [diff] [blame] | 101 | 'test/sql_test_suite.cc', |
| 102 | 'test/sql_test_suite.h', |
[email protected] | f0a54b2 | 2011-07-19 18:40:21 | [diff] [blame] | 103 | 'transaction_unittest.cc', |
[email protected] | 40ce1e44 | 2011-06-30 15:03:11 | [diff] [blame] | 104 | ], |
| 105 | 'include_dirs': [ |
| 106 | '..', |
| 107 | ], |
| 108 | 'conditions': [ |
[email protected] | 073bef8 | 2012-07-24 18:03:47 | [diff] [blame] | 109 | ['os_posix==1 and OS!="mac" and OS!="ios"', { |
[email protected] | 40ce1e44 | 2011-06-30 15:03:11 | [diff] [blame] | 110 | 'conditions': [ |
[email protected] | 2fa89ef | 2014-05-07 18:45:59 | [diff] [blame] | 111 | ['use_allocator!="none"', { |
[email protected] | 40ce1e44 | 2011-06-30 15:03:11 | [diff] [blame] | 112 | 'dependencies': [ |
| 113 | '../base/allocator/allocator.gyp:allocator', |
| 114 | ], |
| 115 | }], |
| 116 | ], |
| 117 | }], |
[email protected] | 87a8085 | 2014-05-17 16:09:58 | [diff] [blame] | 118 | ['OS == "android"', { |
[email protected] | 3e1d8c8 | 2012-05-31 04:36:03 | [diff] [blame] | 119 | 'dependencies': [ |
| 120 | '../testing/android/native_test.gyp:native_test_native_code', |
| 121 | ], |
| 122 | }], |
[email protected] | 40ce1e44 | 2011-06-30 15:03:11 | [diff] [blame] | 123 | ], |
[email protected] | 4be31d4 | 2013-01-11 18:47:53 | [diff] [blame] | 124 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 125 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | 40ce1e44 | 2011-06-30 15:03:11 | [diff] [blame] | 126 | }, |
| 127 | ], |
[email protected] | 3e1d8c8 | 2012-05-31 04:36:03 | [diff] [blame] | 128 | 'conditions': [ |
[email protected] | 87a8085 | 2014-05-17 16:09:58 | [diff] [blame] | 129 | ['OS == "android"', { |
[email protected] | 3e1d8c8 | 2012-05-31 04:36:03 | [diff] [blame] | 130 | 'targets': [ |
| 131 | { |
| 132 | 'target_name': 'sql_unittests_apk', |
| 133 | 'type': 'none', |
| 134 | 'dependencies': [ |
[email protected] | 3e1d8c8 | 2012-05-31 04:36:03 | [diff] [blame] | 135 | 'sql_unittests', |
| 136 | ], |
| 137 | 'variables': { |
| 138 | 'test_suite_name': 'sql_unittests', |
mikecase | 56d80d7 | 2015-06-03 00:57:26 | [diff] [blame] | 139 | 'isolate_file': 'sql_unittests.isolate', |
[email protected] | 3e1d8c8 | 2012-05-31 04:36:03 | [diff] [blame] | 140 | }, |
| 141 | 'includes': [ '../build/apk_test.gypi' ], |
| 142 | }, |
| 143 | ], |
| 144 | }], |
[email protected] | cfb82161 | 2014-07-10 00:48:06 | [diff] [blame] | 145 | ['test_isolation_mode != "noop"', { |
| 146 | 'targets': [ |
| 147 | { |
| 148 | 'target_name': 'sql_unittests_run', |
| 149 | 'type': 'none', |
| 150 | 'dependencies': [ |
| 151 | 'sql_unittests', |
| 152 | ], |
| 153 | 'includes': [ |
| 154 | '../build/isolate.gypi', |
[email protected] | cfb82161 | 2014-07-10 00:48:06 | [diff] [blame] | 155 | ], |
| 156 | 'sources': [ |
| 157 | 'sql_unittests.isolate', |
| 158 | ], |
| 159 | }, |
| 160 | ], |
| 161 | }], |
[email protected] | 3e1d8c8 | 2012-05-31 04:36:03 | [diff] [blame] | 162 | ], |
[email protected] | 40ce1e44 | 2011-06-30 15:03:11 | [diff] [blame] | 163 | } |