blob: cde30576cb9269c56ce9750b31633f198c9b5104 [file] [log] [blame]
[email protected]3e1d8c82012-05-31 04:36:031# Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]40ce1e442011-06-30 15:03:112# 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]d4526962011-11-10 21:40:2812 'type': '<(component)',
[email protected]40ce1e442011-06-30 15:03:1113 'dependencies': [
14 '../base/base.gyp:base',
15 '../third_party/sqlite/sqlite.gyp:sqlite',
[email protected]a7ec1292013-07-22 22:02:1816 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]40ce1e442011-06-30 15:03:1117 ],
[email protected]4350e322013-06-18 22:18:1018 'export_dependent_settings': [
19 '../base/base.gyp:base',
20 ],
[email protected]d4526962011-11-10 21:40:2821 'defines': [ 'SQL_IMPLEMENTATION' ],
[email protected]40ce1e442011-06-30 15:03:1122 'sources': [
[email protected]f0a54b22011-07-19 18:40:2123 'connection.cc',
24 'connection.h',
ssid3be5b1ec2016-01-13 14:21:5725 'connection_memory_dump_provider.cc',
26 'connection_memory_dump_provider.h',
[email protected]0d04ede2012-10-18 04:31:5327 'error_delegate_util.cc',
28 'error_delegate_util.h',
[email protected]f0a54b22011-07-19 18:40:2129 'init_status.h',
30 'meta_table.cc',
31 'meta_table.h',
[email protected]8d409412013-07-19 18:25:3032 'recovery.cc',
33 'recovery.h',
ssid9f8022f2015-10-12 17:49:0334 'sql_memory_dump_provider.cc',
35 'sql_memory_dump_provider.h',
[email protected]f0a54b22011-07-19 18:40:2136 'statement.cc',
37 'statement.h',
38 'transaction.cc',
39 'transaction.h',
[email protected]40ce1e442011-06-30 15:03:1140 ],
[email protected]4350e322013-06-18 22:18:1041 'include_dirs': [
42 '..',
43 ],
44 'direct_dependent_settings': {
45 'include_dirs': [
46 '..',
47 ],
48 },
[email protected]4be31d42013-01-11 18:47:5349 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
50 'msvs_disabled_warnings': [4267, ],
[email protected]40ce1e442011-06-30 15:03:1151 },
52 {
[email protected]4350e322013-06-18 22:18:1053 'target_name': 'test_support_sql',
54 'type': 'static_library',
55 'dependencies': [
56 'sql',
57 '../base/base.gyp:base',
58 '../testing/gtest.gyp:gtest',
Scott Hessdcf120482015-02-10 21:33:2959 '../third_party/sqlite/sqlite.gyp:sqlite',
[email protected]4350e322013-06-18 22:18:1060 ],
61 'export_dependent_settings': [
62 'sql',
63 '../base/base.gyp:base',
64 ],
65 'sources': [
[email protected]98cf3002013-07-12 01:38:5666 'test/error_callback_support.cc',
67 'test/error_callback_support.h',
[email protected]4350e322013-06-18 22:18:1068 'test/scoped_error_ignorer.cc',
69 'test/scoped_error_ignorer.h',
[email protected]43ffdd82013-09-10 23:44:5070 'test/test_helpers.cc',
71 'test/test_helpers.h',
[email protected]4350e322013-06-18 22:18:1072 ],
73 'include_dirs': [
74 '..',
75 ],
76 'direct_dependent_settings': {
77 'include_dirs': [
78 '..',
79 ],
80 },
81 },
82 {
[email protected]40ce1e442011-06-30 15:03:1183 'target_name': 'sql_unittests',
[email protected]3e1d8c82012-05-31 04:36:0384 'type': '<(gtest_target_type)',
[email protected]40ce1e442011-06-30 15:03:1185 'dependencies': [
86 'sql',
[email protected]4350e322013-06-18 22:18:1087 'test_support_sql',
[email protected]40ce1e442011-06-30 15:03:1188 '../base/base.gyp:test_support_base',
89 '../testing/gtest.gyp:gtest',
[email protected]dd325f052013-08-06 02:37:4090 '../third_party/sqlite/sqlite.gyp:sqlite',
[email protected]40ce1e442011-06-30 15:03:1191 ],
92 'sources': [
[email protected]f0a54b22011-07-19 18:40:2193 'connection_unittest.cc',
[email protected]6ed6d14f2013-09-07 15:48:3694 'meta_table_unittest.cc',
[email protected]8d409412013-07-19 18:25:3095 'recovery_unittest.cc',
ssid9f8022f2015-10-12 17:49:0396 'sql_memory_dump_provider_unittest.cc',
[email protected]f0a54b22011-07-19 18:40:2197 'sqlite_features_unittest.cc',
98 'statement_unittest.cc',
[email protected]cfb821612014-07-10 00:48:0699 'test/paths.cc',
100 'test/paths.h',
101 'test/run_all_unittests.cc',
erg102ceb412015-06-20 01:38:13102 'test/sql_test_base.cc',
103 'test/sql_test_base.h',
[email protected]cfb821612014-07-10 00:48:06104 'test/sql_test_suite.cc',
105 'test/sql_test_suite.h',
[email protected]f0a54b22011-07-19 18:40:21106 'transaction_unittest.cc',
[email protected]40ce1e442011-06-30 15:03:11107 ],
108 'include_dirs': [
109 '..',
110 ],
111 'conditions': [
[email protected]87a80852014-05-17 16:09:58112 ['OS == "android"', {
[email protected]3e1d8c82012-05-31 04:36:03113 'dependencies': [
114 '../testing/android/native_test.gyp:native_test_native_code',
115 ],
116 }],
shessb9606f82016-03-11 19:38:46117 ['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 }],
[email protected]40ce1e442011-06-30 15:03:11129 ],
[email protected]4be31d42013-01-11 18:47:53130 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
131 'msvs_disabled_warnings': [4267, ],
[email protected]40ce1e442011-06-30 15:03:11132 },
133 ],
[email protected]3e1d8c82012-05-31 04:36:03134 'conditions': [
[email protected]87a80852014-05-17 16:09:58135 ['OS == "android"', {
[email protected]3e1d8c82012-05-31 04:36:03136 'targets': [
137 {
138 'target_name': 'sql_unittests_apk',
139 'type': 'none',
140 'dependencies': [
[email protected]3e1d8c82012-05-31 04:36:03141 'sql_unittests',
142 ],
143 'variables': {
144 'test_suite_name': 'sql_unittests',
mikecase56d80d72015-06-03 00:57:26145 'isolate_file': 'sql_unittests.isolate',
[email protected]3e1d8c82012-05-31 04:36:03146 },
147 'includes': [ '../build/apk_test.gypi' ],
148 },
149 ],
stip21383132015-10-03 04:53:38150 '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 ]
[email protected]3e1d8c82012-05-31 04:36:03169 }],
[email protected]cfb821612014-07-10 00:48:06170 ['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',
[email protected]cfb821612014-07-10 00:48:06180 ],
181 'sources': [
182 'sql_unittests.isolate',
183 ],
184 },
185 ],
186 }],
[email protected]3e1d8c82012-05-31 04:36:03187 ],
[email protected]40ce1e442011-06-30 15:03:11188}