[email protected] | 49b0187 | 2011-07-22 16:57:30 | [diff] [blame] | 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 |
| 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] | afca65e | 2011-10-30 09:06:16 | [diff] [blame] | 17 | 'export_dependent_settings': [ |
| 18 | '../base/base.gyp:base', |
| 19 | ], |
[email protected] | 49b0187 | 2011-07-22 16:57:30 | [diff] [blame] | 20 | 'sources': [ |
[email protected] | a5107611 | 2011-08-17 20:58:12 | [diff] [blame] | 21 | 'bus.cc', |
| 22 | 'bus.h', |
[email protected] | a5107611 | 2011-08-17 20:58:12 | [diff] [blame] | 23 | 'exported_object.cc', |
[email protected] | b8ae051 | 2011-08-25 05:18:29 | [diff] [blame] | 24 | 'exported_object.h', |
[email protected] | a9e9149 | 2011-07-30 19:13:31 | [diff] [blame] | 25 | 'message.cc', |
| 26 | 'message.h', |
[email protected] | a5107611 | 2011-08-17 20:58:12 | [diff] [blame] | 27 | 'object_proxy.cc', |
| 28 | 'object_proxy.h', |
| 29 | 'scoped_dbus_error.h', |
[email protected] | a9e9149 | 2011-07-30 19:13:31 | [diff] [blame] | 30 | ], |
| 31 | }, |
| 32 | { |
[email protected] | b8ae051 | 2011-08-25 05:18:29 | [diff] [blame] | 33 | # 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] | ea78b1e | 2011-08-27 07:26:34 | [diff] [blame] | 45 | 'mock_exported_object.cc', |
| 46 | 'mock_exported_object.h', |
[email protected] | b8ae051 | 2011-08-25 05:18:29 | [diff] [blame] | 47 | 'mock_object_proxy.cc', |
| 48 | 'mock_object_proxy.h', |
| 49 | ], |
| 50 | 'include_dirs': [ |
| 51 | '..', |
| 52 | ], |
| 53 | }, |
| 54 | { |
[email protected] | a9e9149 | 2011-07-30 19:13:31 | [diff] [blame] | 55 | 'target_name': 'dbus_unittests', |
| 56 | 'type': 'executable', |
| 57 | 'dependencies': [ |
[email protected] | a9e9149 | 2011-07-30 19:13:31 | [diff] [blame] | 58 | '../base/base.gyp:test_support_base', |
[email protected] | a9e9149 | 2011-07-30 19:13:31 | [diff] [blame] | 59 | '../build/linux/system.gyp:dbus', |
[email protected] | b8ae051 | 2011-08-25 05:18:29 | [diff] [blame] | 60 | '../testing/gmock.gyp:gmock', |
| 61 | '../testing/gtest.gyp:gtest', |
| 62 | 'dbus', |
| 63 | 'dbus_test_support', |
[email protected] | a9e9149 | 2011-07-30 19:13:31 | [diff] [blame] | 64 | ], |
| 65 | 'sources': [ |
| 66 | '../base/test/run_all_unittests.cc', |
[email protected] | 2ef498f | 2011-08-23 19:25:20 | [diff] [blame] | 67 | 'bus_unittest.cc', |
[email protected] | a5107611 | 2011-08-17 20:58:12 | [diff] [blame] | 68 | 'end_to_end_async_unittest.cc', |
| 69 | 'end_to_end_sync_unittest.cc', |
[email protected] | b8ae051 | 2011-08-25 05:18:29 | [diff] [blame] | 70 | 'message_unittest.cc', |
| 71 | 'mock_unittest.cc', |
[email protected] | a5107611 | 2011-08-17 20:58:12 | [diff] [blame] | 72 | 'test_service.cc', |
| 73 | 'test_service.h', |
[email protected] | a9e9149 | 2011-07-30 19:13:31 | [diff] [blame] | 74 | ], |
| 75 | 'include_dirs': [ |
| 76 | '..', |
[email protected] | 49b0187 | 2011-07-22 16:57:30 | [diff] [blame] | 77 | ], |
| 78 | }, |
| 79 | ], |
| 80 | } |