OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
11 'target_name': 'dbus', | 11 'target_name': 'dbus', |
12 'type': 'static_library', | 12 'type': 'static_library', |
13 'dependencies': [ | 13 'dependencies': [ |
14 '../base/base.gyp:base', | 14 '../base/base.gyp:base', |
15 '../build/linux/system.gyp:dbus', | 15 '../build/linux/system.gyp:dbus', |
16 ], | 16 ], |
17 'sources': [ | 17 'sources': [ |
18 'bus.cc', | 18 'bus.cc', |
19 'bus.h', | 19 'bus.h', |
| 20 'exported_object.cc', |
20 'exported_object.h', | 21 'exported_object.h', |
21 'exported_object.cc', | |
22 'message.cc', | 22 'message.cc', |
23 'message.h', | 23 'message.h', |
24 'object_proxy.cc', | 24 'object_proxy.cc', |
25 'object_proxy.h', | 25 'object_proxy.h', |
26 'scoped_dbus_error.h', | 26 'scoped_dbus_error.h', |
27 ], | 27 ], |
28 }, | 28 }, |
29 { | 29 { |
| 30 # This target contains mocks that can be used to write unit tests |
| 31 # without issuing actual D-Bus calls. |
| 32 'target_name': 'dbus_test_support', |
| 33 'type': 'static_library', |
| 34 'dependencies': [ |
| 35 '../build/linux/system.gyp:dbus', |
| 36 '../testing/gmock.gyp:gmock', |
| 37 'dbus', |
| 38 ], |
| 39 'sources': [ |
| 40 'mock_bus.cc', |
| 41 'mock_bus.h', |
| 42 'mock_object_proxy.cc', |
| 43 'mock_object_proxy.h', |
| 44 ], |
| 45 'include_dirs': [ |
| 46 '..', |
| 47 ], |
| 48 }, |
| 49 { |
30 'target_name': 'dbus_unittests', | 50 'target_name': 'dbus_unittests', |
31 'type': 'executable', | 51 'type': 'executable', |
32 'dependencies': [ | 52 'dependencies': [ |
| 53 '../base/base.gyp:test_support_base', |
| 54 '../build/linux/system.gyp:dbus', |
| 55 '../testing/gmock.gyp:gmock', |
| 56 '../testing/gtest.gyp:gtest', |
33 'dbus', | 57 'dbus', |
34 '../base/base.gyp:test_support_base', | 58 'dbus_test_support', |
35 '../testing/gtest.gyp:gtest', | |
36 '../build/linux/system.gyp:dbus', | |
37 ], | 59 ], |
38 'sources': [ | 60 'sources': [ |
39 '../base/test/run_all_unittests.cc', | 61 '../base/test/run_all_unittests.cc', |
40 'bus_unittest.cc', | 62 'bus_unittest.cc', |
41 'message_unittest.cc', | |
42 'end_to_end_async_unittest.cc', | 63 'end_to_end_async_unittest.cc', |
43 'end_to_end_sync_unittest.cc', | 64 'end_to_end_sync_unittest.cc', |
| 65 'message_unittest.cc', |
| 66 'mock_unittest.cc', |
44 'test_service.cc', | 67 'test_service.cc', |
45 'test_service.h', | 68 'test_service.h', |
46 ], | 69 ], |
47 'include_dirs': [ | 70 'include_dirs': [ |
48 '..', | 71 '..', |
49 ], | 72 ], |
50 }, | 73 }, |
51 ], | 74 ], |
52 } | 75 } |
OLD | NEW |