Now pulling WebRTC telemetry pages from https instead of http.
[chromium-blink-merge.git] / sql / sql.gyp
blobd983a458089ccf5bfd750198aa37c91705d27ee5
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.
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         'error_delegate_util.cc',
26         'error_delegate_util.h',
27         'init_status.h',
28         'meta_table.cc',
29         'meta_table.h',
30         'proxy.cc',
31         'proxy.h',
32         'recovery.cc',
33         'recovery.h',
34         'statement.cc',
35         'statement.h',
36         'transaction.cc',
37         'transaction.h',
38       ],
39       'include_dirs': [
40         '..',
41       ],
42       'direct_dependent_settings': {
43         'include_dirs': [
44           '..',
45         ],
46       },
47       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
48       'msvs_disabled_warnings': [4267, ],
49     },
50     {
51       'target_name': 'test_support_sql',
52       'type': 'static_library',
53       'dependencies': [
54         'sql',
55         '../base/base.gyp:base',
56         '../testing/gtest.gyp:gtest',
57         '../third_party/sqlite/sqlite.gyp:sqlite',
58       ],
59       'export_dependent_settings': [
60         'sql',
61         '../base/base.gyp:base',
62       ],
63       'sources': [
64         'test/error_callback_support.cc',
65         'test/error_callback_support.h',
66         'test/scoped_error_ignorer.cc',
67         'test/scoped_error_ignorer.h',
68         'test/test_helpers.cc',
69         'test/test_helpers.h',
70       ],
71       'include_dirs': [
72         '..',
73       ],
74       'direct_dependent_settings': {
75         'include_dirs': [
76           '..',
77         ],
78       },
79     },
80     {
81       'target_name': 'sql_unittests',
82       'type': '<(gtest_target_type)',
83       'dependencies': [
84         'sql',
85         'test_support_sql',
86         '../base/base.gyp:test_support_base',
87         '../testing/gtest.gyp:gtest',
88         '../third_party/sqlite/sqlite.gyp:sqlite',
89       ],
90       'sources': [
91         'connection_unittest.cc',
92         'meta_table_unittest.cc',
93         'recovery_unittest.cc',
94         'sqlite_features_unittest.cc',
95         'statement_unittest.cc',
96         'test/paths.cc',
97         'test/paths.h',
98         'test/run_all_unittests.cc',
99         'test/sql_test_base.cc',
100         'test/sql_test_base.h',
101         'test/sql_test_suite.cc',
102         'test/sql_test_suite.h',
103         'transaction_unittest.cc',
104       ],
105       'include_dirs': [
106         '..',
107       ],
108       'conditions': [
109         ['os_posix==1 and OS!="mac" and OS!="ios"', {
110           'conditions': [
111             ['use_allocator!="none"', {
112               'dependencies': [
113                 '../base/allocator/allocator.gyp:allocator',
114               ],
115             }],
116           ],
117         }],
118         ['OS == "android"', {
119           'dependencies': [
120             '../testing/android/native_test.gyp:native_test_native_code',
121           ],
122         }],
123       ],
124       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
125       'msvs_disabled_warnings': [4267, ],
126     },
127   ],
128   'conditions': [
129     ['OS == "android"', {
130       'targets': [
131         {
132           'target_name': 'sql_unittests_apk',
133           'type': 'none',
134           'dependencies': [
135             'sql_unittests',
136           ],
137           'variables': {
138             'test_suite_name': 'sql_unittests',
139             'isolate_file': 'sql_unittests.isolate',
140           },
141           'includes': [ '../build/apk_test.gypi' ],
142         },
143       ],
144     }],
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',
155           ],
156           'sources': [
157             'sql_unittests.isolate',
158           ],
159         },
160       ],
161     }],
162   ],