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 'error_delegate_util.cc',
22 'error_delegate_util.h',
31 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
32 'msvs_disabled_warnings': [4267, ],
35 'target_name': 'sql_unittests',
36 'type': '<(gtest_target_type)',
39 '../base/base.gyp:test_support_base',
40 '../testing/gtest.gyp:gtest',
43 'run_all_unittests.cc',
44 'connection_unittest.cc',
45 'sqlite_features_unittest.cc',
46 'statement_unittest.cc',
47 'transaction_unittest.cc',
53 ['os_posix==1 and OS!="mac" and OS!="ios"', {
55 ['linux_use_tcmalloc==1', {
57 '../base/allocator/allocator.gyp:allocator',
62 ['OS == "android" and gtest_target_type == "shared_library"', {
64 '../testing/android/native_test.gyp:native_test_native_code',
68 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
69 'msvs_disabled_warnings': [4267, ],
73 # Special target to wrap a gtest_target_type==shared_library
74 # sql_unittests into an android apk for execution.
75 ['OS == "android" and gtest_target_type == "shared_library"', {
78 'target_name': 'sql_unittests_apk',
84 'test_suite_name': 'sql_unittests',
85 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)sql_unittests<(SHARED_LIB_SUFFIX)',
87 'includes': [ '../build/apk_test.gypi' ],