blob: ce2fbd43ce97e0c608770da0f36a5a92c598faea [file] [log] [blame]
[email protected]49b01872011-07-22 16:57:301# 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': 'dbus',
12 'type': 'static_library',
13 'dependencies': [
14 '../base/base.gyp:base',
15 '../build/linux/system.gyp:dbus',
16 ],
[email protected]afca65e2011-10-30 09:06:1617 'export_dependent_settings': [
18 '../base/base.gyp:base',
19 ],
[email protected]49b01872011-07-22 16:57:3020 'sources': [
[email protected]a51076112011-08-17 20:58:1221 'bus.cc',
22 'bus.h',
[email protected]a51076112011-08-17 20:58:1223 'exported_object.cc',
[email protected]b8ae0512011-08-25 05:18:2924 'exported_object.h',
[email protected]a9e91492011-07-30 19:13:3125 'message.cc',
26 'message.h',
[email protected]a51076112011-08-17 20:58:1227 'object_proxy.cc',
28 'object_proxy.h',
29 'scoped_dbus_error.h',
[email protected]a9e91492011-07-30 19:13:3130 ],
31 },
32 {
[email protected]b8ae0512011-08-25 05:18:2933 # This target contains mocks that can be used to write unit tests
34 # without issuing actual D-Bus calls.
35 'target_name': 'dbus_test_support',
36 'type': 'static_library',
37 'dependencies': [
38 '../build/linux/system.gyp:dbus',
39 '../testing/gmock.gyp:gmock',
40 'dbus',
41 ],
42 'sources': [
43 'mock_bus.cc',
44 'mock_bus.h',
[email protected]ea78b1e2011-08-27 07:26:3445 'mock_exported_object.cc',
46 'mock_exported_object.h',
[email protected]b8ae0512011-08-25 05:18:2947 'mock_object_proxy.cc',
48 'mock_object_proxy.h',
49 ],
50 'include_dirs': [
51 '..',
52 ],
53 },
54 {
[email protected]a9e91492011-07-30 19:13:3155 'target_name': 'dbus_unittests',
56 'type': 'executable',
57 'dependencies': [
[email protected]a9e91492011-07-30 19:13:3158 '../base/base.gyp:test_support_base',
[email protected]a9e91492011-07-30 19:13:3159 '../build/linux/system.gyp:dbus',
[email protected]b8ae0512011-08-25 05:18:2960 '../testing/gmock.gyp:gmock',
61 '../testing/gtest.gyp:gtest',
62 'dbus',
63 'dbus_test_support',
[email protected]a9e91492011-07-30 19:13:3164 ],
65 'sources': [
66 '../base/test/run_all_unittests.cc',
[email protected]2ef498f2011-08-23 19:25:2067 'bus_unittest.cc',
[email protected]a51076112011-08-17 20:58:1268 'end_to_end_async_unittest.cc',
69 'end_to_end_sync_unittest.cc',
[email protected]b8ae0512011-08-25 05:18:2970 'message_unittest.cc',
71 'mock_unittest.cc',
[email protected]a51076112011-08-17 20:58:1272 'test_service.cc',
73 'test_service.h',
[email protected]a9e91492011-07-30 19:13:3174 ],
75 'include_dirs': [
76 '..',
[email protected]49b01872011-07-22 16:57:3077 ],
78 },
79 ],
80}