blob: 86962b3d0253eb773b99fecdac92f006a940f1bd [file] [log] [blame]
[email protected]3e1d8c82012-05-31 04:36:031# Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]40ce1e442011-06-30 15:03:112# 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',
[email protected]0d04ede2012-10-18 04:31:5322 'error_delegate_util.cc',
23 'error_delegate_util.h',
[email protected]f0a54b22011-07-19 18:40:2124 'init_status.h',
25 'meta_table.cc',
26 'meta_table.h',
27 'statement.cc',
28 'statement.h',
29 'transaction.cc',
30 'transaction.h',
[email protected]40ce1e442011-06-30 15:03:1131 ],
32 },
33 {
34 'target_name': 'sql_unittests',
[email protected]3e1d8c82012-05-31 04:36:0335 'type': '<(gtest_target_type)',
[email protected]40ce1e442011-06-30 15:03:1136 'dependencies': [
37 'sql',
38 '../base/base.gyp:test_support_base',
39 '../testing/gtest.gyp:gtest',
40 ],
41 'sources': [
[email protected]f0a54b22011-07-19 18:40:2142 'run_all_unittests.cc',
43 'connection_unittest.cc',
44 'sqlite_features_unittest.cc',
45 'statement_unittest.cc',
46 'transaction_unittest.cc',
[email protected]40ce1e442011-06-30 15:03:1147 ],
48 'include_dirs': [
49 '..',
50 ],
51 'conditions': [
[email protected]073bef82012-07-24 18:03:4752 ['os_posix==1 and OS!="mac" and OS!="ios"', {
[email protected]40ce1e442011-06-30 15:03:1153 'conditions': [
54 ['linux_use_tcmalloc==1', {
55 'dependencies': [
56 '../base/allocator/allocator.gyp:allocator',
57 ],
58 }],
59 ],
60 }],
[email protected]3e1d8c82012-05-31 04:36:0361 ['OS == "android" and gtest_target_type == "shared_library"', {
62 'dependencies': [
63 '../testing/android/native_test.gyp:native_test_native_code',
64 ],
65 }],
[email protected]40ce1e442011-06-30 15:03:1166 ],
67 },
68 ],
[email protected]3e1d8c82012-05-31 04:36:0369 'conditions': [
70 # Special target to wrap a gtest_target_type==shared_library
71 # sql_unittests into an android apk for execution.
72 ['OS == "android" and gtest_target_type == "shared_library"', {
73 'targets': [
74 {
75 'target_name': 'sql_unittests_apk',
76 'type': 'none',
77 'dependencies': [
[email protected]3e1d8c82012-05-31 04:36:0378 'sql_unittests',
79 ],
80 'variables': {
81 'test_suite_name': 'sql_unittests',
82 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)sql_unittests<(SHARED_LIB_SUFFIX)',
[email protected]3e1d8c82012-05-31 04:36:0383 },
84 'includes': [ '../build/apk_test.gypi' ],
85 },
86 ],
87 }],
88 ],
[email protected]40ce1e442011-06-30 15:03:1189}