Revert 187797 "Added tests for page launcher extensions in the a..."
[chromium-blink-merge.git] / sql / sql.gyp
blob0d8f8be9672d5104abc3e79675a015c4ca0f0836
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.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       'target_name': 'sql',
12       'type': '<(component)',
13       'dependencies': [
14         '../base/base.gyp:base',
15         '../third_party/sqlite/sqlite.gyp:sqlite',
16       ],
17       'defines': [ 'SQL_IMPLEMENTATION' ],
18       'sources': [
19         'connection.cc',
20         'connection.h',
21         'diagnostic_error_delegate.h',
22         'error_delegate_util.cc',
23         'error_delegate_util.h',
24         'init_status.h',
25         'meta_table.cc',
26         'meta_table.h',
27         'statement.cc',
28         'statement.h',
29         'transaction.cc',
30         'transaction.h',
31       ],
32       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
33       'msvs_disabled_warnings': [4267, ],
34     },
35     {
36       'target_name': 'sql_unittests',
37       'type': '<(gtest_target_type)',
38       'dependencies': [
39         'sql',
40         '../base/base.gyp:test_support_base',
41         '../testing/gtest.gyp:gtest',
42       ],
43       'sources': [
44         'run_all_unittests.cc',
45         'connection_unittest.cc',
46         'sqlite_features_unittest.cc',
47         'statement_unittest.cc',
48         'transaction_unittest.cc',
49       ],
50       'include_dirs': [
51         '..',
52       ],
53       'conditions': [
54         ['os_posix==1 and OS!="mac" and OS!="ios"', {
55           'conditions': [
56             ['linux_use_tcmalloc==1', {
57               'dependencies': [
58                 '../base/allocator/allocator.gyp:allocator',
59               ],
60             }],
61           ],
62         }],
63         ['OS == "android" and gtest_target_type == "shared_library"', {
64           'dependencies': [
65             '../testing/android/native_test.gyp:native_test_native_code',
66           ],
67         }],
68       ],
69       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
70       'msvs_disabled_warnings': [4267, ],
71     },
72   ],
73   'conditions': [
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"', {
77       'targets': [
78         {
79           'target_name': 'sql_unittests_apk',
80           'type': 'none',
81           'dependencies': [
82             'sql_unittests',
83           ],
84           'variables': {
85             'test_suite_name': 'sql_unittests',
86             'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)sql_unittests<(SHARED_LIB_SUFFIX)',
87           },
88           'includes': [ '../build/apk_test.gypi' ],
89         },
90       ],
91     }],
92   ],