chromeos: bluetooth: add BluetoothNodeClient
[chromium-blink-merge.git] / dbus / dbus.gyp
blob296ac5387cd4a36944b2e9934bd9c2d5820cadb7
1 # Copyright (c) 2012 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.
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         '../third_party/protobuf/protobuf.gyp:protobuf_lite',
17       ],
18       'export_dependent_settings': [
19         '../base/base.gyp:base',
20       ],
21       'sources': [
22         'bus.cc',
23         'bus.h',
24         'exported_object.cc',
25         'exported_object.h',
26         'message.cc',
27         'message.h',
28         'object_path.cc',
29         'object_path.h',
30         'object_proxy.cc',
31         'object_proxy.h',
32         'property.cc',
33         'property.h',
34         'scoped_dbus_error.h',
35       ],
36     },
37     {
38       # Protobuf compiler / generator test protocol buffer
39       'target_name': 'dbus_test_proto',
40       'type': 'static_library',
41       'sources': [ 'test_proto.proto' ],
42       'variables': {
43         'proto_out_dir': 'dbus',
44       },
45       'includes': [ '../build/protoc.gypi' ],
46     },
47     {
48       # This target contains mocks that can be used to write unit tests
49       # without issuing actual D-Bus calls.
50       'target_name': 'dbus_test_support',
51       'type': 'static_library',
52       'dependencies': [
53         '../build/linux/system.gyp:dbus',
54         '../testing/gmock.gyp:gmock',
55         'dbus',
56       ],
57       'sources': [
58         'mock_bus.cc',
59         'mock_bus.h',
60         'mock_exported_object.cc',
61         'mock_exported_object.h',
62         'mock_object_proxy.cc',
63         'mock_object_proxy.h',
64       ],
65       'include_dirs': [
66         '..',
67       ],
68     },
69     {
70       'target_name': 'dbus_unittests',
71       'type': 'executable',
72       'dependencies': [
73         '../base/base.gyp:test_support_base',
74         '../build/linux/system.gyp:dbus',
75         '../testing/gmock.gyp:gmock',
76         '../testing/gtest.gyp:gtest',
77         'dbus',
78         'dbus_test_proto',
79         'dbus_test_support',
80       ],
81       'sources': [
82         '../base/test/run_all_unittests.cc',
83         'bus_unittest.cc',
84         'end_to_end_async_unittest.cc',
85         'end_to_end_sync_unittest.cc',
86         'message_unittest.cc',
87         'mock_unittest.cc',
88         'property_unittest.cc',
89         'test_service.cc',
90         'test_service.h',
91       ],
92       'include_dirs': [
93         '..',
94       ],
95     },
96   ],