Allow setting different memory limits for different stream types
[chromium-blink-merge.git] / dbus / dbus.gyp
bloba69e8fd4060e6855407f53ea150692d21bc14f20
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         'util.cc',
48         'util.h',
49         'values_util.cc',
50         'values_util.h',
51       ],
52     },
53     {
54       # Protobuf compiler / generator test protocol buffer
55       'target_name': 'dbus_test_proto',
56       'type': 'static_library',
57       'sources': [ 'test_proto.proto' ],
58       'variables': {
59         'proto_out_dir': 'dbus',
60       },
61       'includes': [ '../build/protoc.gypi' ],
62     },
63     {
64       # This target contains mocks that can be used to write unit tests
65       # without issuing actual D-Bus calls.
66       'target_name': 'dbus_test_support',
67       'type': 'static_library',
68       'dependencies': [
69         '../build/linux/system.gyp:dbus',
70         '../testing/gmock.gyp:gmock',
71         'dbus',
72       ],
73       'sources': [
74         'mock_bus.cc',
75         'mock_bus.h',
76         'mock_exported_object.cc',
77         'mock_exported_object.h',
78         'mock_object_manager.cc',
79         'mock_object_manager.h',
80         'mock_object_proxy.cc',
81         'mock_object_proxy.h',
82       ],
83       'include_dirs': [
84         '..',
85       ],
86     },
87     {
88       'target_name': 'dbus_unittests',
89       'type': 'executable',
90       'dependencies': [
91         '../base/base.gyp:test_support_base',
92         '../build/linux/system.gyp:dbus',
93         '../testing/gmock.gyp:gmock',
94         '../testing/gtest.gyp:gtest',
95         'dbus',
96         'dbus_test_proto',
97         'dbus_test_support',
98       ],
99       'sources': [
100         'bus_unittest.cc',
101         'dbus_statistics_unittest.cc',
102         'end_to_end_async_unittest.cc',
103         'end_to_end_sync_unittest.cc',
104         'message_unittest.cc',
105         'mock_unittest.cc',
106         'object_manager_unittest.cc',
107         'object_proxy_unittest.cc',
108         'property_unittest.cc',
109         'run_all_unittests.cc',
110         'signal_sender_verification_unittest.cc',
111         'string_util_unittest.cc',
112         'test_service.cc',
113         'test_service.h',
114         'util_unittest.cc',
115         'values_util_unittest.cc',
116       ],
117       'include_dirs': [
118         '..',
119       ],
120     },
121     {
122       'target_name': 'dbus_test_server',
123       'type': 'executable',
124       'dependencies': [
125         '../base/base.gyp:test_support_base',
126         '../base/base.gyp:base',
127         '../build/linux/system.gyp:dbus',
128         'dbus',
129       ],
130       'sources': [
131         'test_server.cc',
132         'test_service.cc',
133         'test_service.h',
134       ],
135       'include_dirs': [
136         '..',
137       ],
138     },
139   ],