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',
40 'direct_dependent_settings': {
45 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
46 'msvs_disabled_warnings': [4267, ],
49 'target_name': 'test_support_sql',
50 'type': 'static_library',
53 '../base/base.gyp:base',
54 '../testing/gtest.gyp:gtest',
56 'export_dependent_settings': [
58 '../base/base.gyp:base',
61 'test/error_callback_support.cc',
62 'test/error_callback_support.h',
63 'test/scoped_error_ignorer.cc',
64 'test/scoped_error_ignorer.h',
65 'test/test_helpers.cc',
66 'test/test_helpers.h',
71 'direct_dependent_settings': {
78 'target_name': 'sql_unittests',
79 'type': '<(gtest_target_type)',
83 '../base/base.gyp:test_support_base',
84 '../testing/gtest.gyp:gtest',
85 '../third_party/sqlite/sqlite.gyp:sqlite',
88 'connection_unittest.cc',
89 'meta_table_unittest.cc',
90 'recovery_unittest.cc',
91 'sqlite_features_unittest.cc',
92 'statement_unittest.cc',
95 'test/run_all_unittests.cc',
96 'test/sql_test_suite.cc',
97 'test/sql_test_suite.h',
98 'transaction_unittest.cc',
104 ['os_posix==1 and OS!="mac" and OS!="ios"', {
106 ['use_allocator!="none"', {
108 '../base/allocator/allocator.gyp:allocator',
113 ['OS == "android"', {
115 '../testing/android/native_test.gyp:native_test_native_code',
118 ['sqlite_enable_fts2', {
120 'SQLITE_ENABLE_FTS2',
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',
140 'includes': [ '../build/apk_test.gypi' ],
144 ['test_isolation_mode != "noop"', {
147 'target_name': 'sql_unittests_run',
153 '../build/isolate.gypi',
156 'sql_unittests.isolate',