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',
17 'defines': [ 'SQL_IMPLEMENTATION' ],
21 'diagnostic_error_delegate.h',
22 'error_delegate_util.cc',
23 'error_delegate_util.h',
32 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
33 'msvs_disabled_warnings': [4267, ],
36 'target_name': 'sql_unittests',
37 'type': '<(gtest_target_type)',
40 '../base/base.gyp:test_support_base',
41 '../testing/gtest.gyp:gtest',
44 'run_all_unittests.cc',
45 'connection_unittest.cc',
46 'sqlite_features_unittest.cc',
47 'statement_unittest.cc',
48 'transaction_unittest.cc',
54 ['os_posix==1 and OS!="mac" and OS!="ios"', {
56 ['linux_use_tcmalloc==1', {
58 '../base/allocator/allocator.gyp:allocator',
63 ['OS == "android" and gtest_target_type == "shared_library"', {
65 '../testing/android/native_test.gyp:native_test_native_code',
69 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
70 'msvs_disabled_warnings': [4267, ],
74 # Special target to wrap a gtest_target_type==shared_library
75 # sql_unittests into an android apk for execution.
76 ['OS == "android" and gtest_target_type == "shared_library"', {
79 'target_name': 'sql_unittests_apk',
85 'test_suite_name': 'sql_unittests',
86 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)sql_unittests<(SHARED_LIB_SUFFIX)',
88 'includes': [ '../build/apk_test.gypi' ],