Move pending tile priorities to active on tree activation
[chromium-blink-merge.git] / dbus / dbus.gyp
blob0ca5a2c8f7006fc0174d96a6d9636b6175e9ed32
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_path.cc',
37         'object_path.h',
38         'object_proxy.cc',
39         'object_proxy.h',
40         'property.cc',
41         'property.h',
42         'scoped_dbus_error.h',
43         'string_util.cc',
44         'string_util.h',
45         'values_util.cc',
46         'values_util.h',
47       ],
48     },
49     {
50       # Protobuf compiler / generator test protocol buffer
51       'target_name': 'dbus_test_proto',
52       'type': 'static_library',
53       'sources': [ 'test_proto.proto' ],
54       'variables': {
55         'proto_out_dir': 'dbus',
56       },
57       'includes': [ '../build/protoc.gypi' ],
58     },
59     {
60       # This target contains mocks that can be used to write unit tests
61       # without issuing actual D-Bus calls.
62       'target_name': 'dbus_test_support',
63       'type': 'static_library',
64       'dependencies': [
65         '../build/linux/system.gyp:dbus',
66         '../testing/gmock.gyp:gmock',
67         'dbus',
68       ],
69       'sources': [
70         'mock_bus.cc',
71         'mock_bus.h',
72         'mock_exported_object.cc',
73         'mock_exported_object.h',
74         'mock_object_proxy.cc',
75         'mock_object_proxy.h',
76       ],
77       'include_dirs': [
78         '..',
79       ],
80     },
81     {
82       'target_name': 'dbus_unittests',
83       'type': 'executable',
84       'dependencies': [
85         '../base/base.gyp:run_all_unittests',
86         '../base/base.gyp:test_support_base',
87         '../build/linux/system.gyp:dbus',
88         '../testing/gmock.gyp:gmock',
89         '../testing/gtest.gyp:gtest',
90         'dbus',
91         'dbus_test_proto',
92         'dbus_test_support',
93       ],
94       'sources': [
95         'bus_unittest.cc',
96         'dbus_statistics_unittest.cc',
97         'end_to_end_async_unittest.cc',
98         'end_to_end_sync_unittest.cc',
99         'message_unittest.cc',
100         'mock_unittest.cc',
101         'property_unittest.cc',
102         'signal_sender_verification_unittest.cc',
103         'string_util_unittest.cc',
104         'test_service.cc',
105         'test_service.h',
106         'values_util_unittest.cc',
107       ],
108       'include_dirs': [
109         '..',
110       ],
111     },
112     {
113       'target_name': 'dbus_test_server',
114       'type': 'executable',
115       'dependencies': [
116         '../base/base.gyp:test_support_base',
117         '../base/base.gyp:base',
118         '../build/linux/system.gyp:dbus',
119         'dbus',
120       ],
121       'sources': [
122         'test_server.cc',
123         'test_service.cc',
124         'test_service.h',
125       ],
126       'include_dirs': [
127         '..',
128       ],
129     },
130   ],