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.
12 'type': '<(component)',
14 '../base/base.gyp:base',
15 '../third_party/sqlite/sqlite.gyp:sqlite',
16 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
18 'export_dependent_settings': [
19 '../base/base.gyp:base',
21 'defines': [ 'SQL_IMPLEMENTATION' ],
25 'error_delegate_util.cc',
26 'error_delegate_util.h',
42 'direct_dependent_settings': {
47 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
48 'msvs_disabled_warnings': [4267, ],
51 'target_name': 'test_support_sql',
52 'type': 'static_library',
55 '../base/base.gyp:base',
56 '../testing/gtest.gyp:gtest',
57 '../third_party/sqlite/sqlite.gyp:sqlite',
59 'export_dependent_settings': [
61 '../base/base.gyp:base',
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',
74 'direct_dependent_settings': {
81 'target_name': 'sql_unittests',
82 'type': '<(gtest_target_type)',
86 '../base/base.gyp:test_support_base',
87 '../testing/gtest.gyp:gtest',
88 '../third_party/sqlite/sqlite.gyp:sqlite',
91 'connection_unittest.cc',
92 'meta_table_unittest.cc',
93 'recovery_unittest.cc',
94 'sqlite_features_unittest.cc',
95 'statement_unittest.cc',
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',
109 ['os_posix==1 and OS!="mac" and OS!="ios"', {
111 ['use_allocator!="none"', {
113 '../base/allocator/allocator.gyp:allocator',
118 ['OS == "android"', {
120 '../testing/android/native_test.gyp:native_test_native_code',
124 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
125 'msvs_disabled_warnings': [4267, ],
129 ['OS == "android"', {
132 'target_name': 'sql_unittests_apk',
138 'test_suite_name': 'sql_unittests',
139 'isolate_file': 'sql_unittests.isolate',
141 'includes': [ '../build/apk_test.gypi' ],
145 ['test_isolation_mode != "noop"', {
148 'target_name': 'sql_unittests_run',
154 '../build/isolate.gypi',
157 'sql_unittests.isolate',