Revert 198312 "Effects Pepper Plugin and MediaStream Glue."
[chromium-blink-merge.git] / dbus / dbus.gyp
blob847e7d978b192a535c035bc3bb1523238bd12a2b
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': '<(component)',
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       'defines': [
22         'DBUS_IMPLEMENTATION',
23       ],
24       'sources': [
25         'bus.cc',
26         'bus.h',
27         'dbus_export.h',
28         'dbus_statistics.cc',
29         'dbus_statistics.h',
30         'exported_object.cc',
31         'exported_object.h',
32         'file_descriptor.cc',
33         'file_descriptor.h',
34         'message.cc',
35         'message.h',
36         'object_manager.cc',
37         'object_manager.h',
38         'object_path.cc',
39         'object_path.h',
40         'object_proxy.cc',
41         'object_proxy.h',
42         'property.cc',
43         'property.h',
44         'scoped_dbus_error.h',
45         'string_util.cc',
46         'string_util.h',
47         'values_util.cc',
48         'values_util.h',
49       ],
50     },
51     {
52       # Protobuf compiler / generator test protocol buffer
53       'target_name': 'dbus_test_proto',
54       'type': 'static_library',
55       'sources': [ 'test_proto.proto' ],
56       'variables': {
57         'proto_out_dir': 'dbus',
58       },
59       'includes': [ '../build/protoc.gypi' ],
60     },
61     {
62       # This target contains mocks that can be used to write unit tests
63       # without issuing actual D-Bus calls.
64       'target_name': 'dbus_test_support',
65       'type': 'static_library',
66       'dependencies': [
67         '../build/linux/system.gyp:dbus',
68         '../testing/gmock.gyp:gmock',
69         'dbus',
70       ],
71       'sources': [
72         'mock_bus.cc',
73         'mock_bus.h',
74         'mock_exported_object.cc',
75         'mock_exported_object.h',
76         'mock_object_manager.cc',
77         'mock_object_manager.h',
78         'mock_object_proxy.cc',
79         'mock_object_proxy.h',
80       ],
81       'include_dirs': [
82         '..',
83       ],
84     },
85     {
86       'target_name': 'dbus_unittests',
87       'type': 'executable',
88       'dependencies': [
89         '../base/base.gyp:run_all_unittests',
90         '../base/base.gyp:test_support_base',
91         '../build/linux/system.gyp:dbus',
92         '../testing/gmock.gyp:gmock',
93         '../testing/gtest.gyp:gtest',
94         'dbus',
95         'dbus_test_proto',
96         'dbus_test_support',
97       ],
98       'sources': [
99         'bus_unittest.cc',
100         'dbus_statistics_unittest.cc',
101         'end_to_end_async_unittest.cc',
102         'end_to_end_sync_unittest.cc',
103         'message_unittest.cc',
104         'mock_unittest.cc',
105         'object_manager_unittest.cc',
106         'property_unittest.cc',
107         'signal_sender_verification_unittest.cc',
108         'string_util_unittest.cc',
109         'test_service.cc',
110         'test_service.h',
111         'values_util_unittest.cc',
112       ],
113       'include_dirs': [
114         '..',
115       ],
116     },
117     {
118       'target_name': 'dbus_test_server',
119       'type': 'executable',
120       'dependencies': [
121         '../base/base.gyp:test_support_base',
122         '../base/base.gyp:base',
123         '../build/linux/system.gyp:dbus',
124         'dbus',
125       ],
126       'sources': [
127         'test_server.cc',
128         'test_service.cc',
129         'test_service.h',
130       ],
131       'include_dirs': [
132         '..',
133       ],
134     },
135   ],