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',
32 'target_name': 'sql_unittests',
33 'type': '<(gtest_target_type)',
36 '../base/base.gyp:test_support_base',
37 '../testing/gtest.gyp:gtest',
40 'run_all_unittests.cc',
41 'connection_unittest.cc',
42 'sqlite_features_unittest.cc',
43 'statement_unittest.cc',
44 'transaction_unittest.cc',
50 ['os_posix==1 and OS!="mac" and OS!="ios"', {
52 ['linux_use_tcmalloc==1', {
54 '../base/allocator/allocator.gyp:allocator',
59 ['OS == "android" and gtest_target_type == "shared_library"', {
61 '../testing/android/native_test.gyp:native_test_native_code',
68 # Special target to wrap a gtest_target_type==shared_library
69 # sql_unittests into an android apk for execution.
70 ['OS == "android" and gtest_target_type == "shared_library"', {
73 'target_name': 'sql_unittests_apk',
76 '../base/base.gyp:base_java',
80 'test_suite_name': 'sql_unittests',
81 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)sql_unittests<(SHARED_LIB_SUFFIX)',
82 'input_jars_paths': [ '<(PRODUCT_DIR)/lib.java/chromium_base.jar', ],
84 'includes': [ '../build/apk_test.gypi' ],