blob: f16f91a484ee255c26c3e640c2dd01abe875b112 [file] [log] [blame]
[email protected]40ce1e442011-06-30 15:03:111# Copyright (c) 2011 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.
4
5{
6 'variables': {
7 'chromium_code': 1,
8 },
9 'targets': [
10 {
11 'target_name': 'sql',
[email protected]d4526962011-11-10 21:40:2812 'type': '<(component)',
[email protected]40ce1e442011-06-30 15:03:1113 'dependencies': [
14 '../base/base.gyp:base',
15 '../third_party/sqlite/sqlite.gyp:sqlite',
16 ],
[email protected]d4526962011-11-10 21:40:2817 'defines': [ 'SQL_IMPLEMENTATION' ],
[email protected]40ce1e442011-06-30 15:03:1118 'sources': [
[email protected]f0a54b22011-07-19 18:40:2119 'connection.cc',
20 'connection.h',
21 'diagnostic_error_delegate.h',
22 'init_status.h',
23 'meta_table.cc',
24 'meta_table.h',
25 'statement.cc',
26 'statement.h',
27 'transaction.cc',
28 'transaction.h',
[email protected]40ce1e442011-06-30 15:03:1129 ],
30 },
31 {
32 'target_name': 'sql_unittests',
33 'type': 'executable',
34 'dependencies': [
35 'sql',
36 '../base/base.gyp:test_support_base',
37 '../testing/gtest.gyp:gtest',
38 ],
39 'sources': [
[email protected]f0a54b22011-07-19 18:40:2140 'run_all_unittests.cc',
41 'connection_unittest.cc',
42 'sqlite_features_unittest.cc',
43 'statement_unittest.cc',
44 'transaction_unittest.cc',
[email protected]40ce1e442011-06-30 15:03:1145 ],
46 'include_dirs': [
47 '..',
48 ],
49 'conditions': [
50 ['os_posix==1 and OS!="mac"', {
51 'conditions': [
52 ['linux_use_tcmalloc==1', {
53 'dependencies': [
54 '../base/allocator/allocator.gyp:allocator',
55 ],
56 }],
57 ],
58 }],
59 ],
60 },
61 ],
62}