Hook up WebRequestRulesRegistry into old WebRequest API
[chromium-blink-merge.git] / dbus / dbus.gyp
blobe7a2636110e37d52e35f4ca2145d752b348d19d1
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         'file_descriptor.cc',
27         'file_descriptor.h',
28         'message.cc',
29         'message.h',
30         'object_path.cc',
31         'object_path.h',
32         'object_proxy.cc',
33         'object_proxy.h',
34         'property.cc',
35         'property.h',
36         'scoped_dbus_error.h',
37         'values_util.cc',
38         'values_util.h',
39       ],
40     },
41     {
42       # Protobuf compiler / generator test protocol buffer
43       'target_name': 'dbus_test_proto',
44       'type': 'static_library',
45       'sources': [ 'test_proto.proto' ],
46       'variables': {
47         'proto_out_dir': 'dbus',
48       },
49       'includes': [ '../build/protoc.gypi' ],
50     },
51     {
52       # This target contains mocks that can be used to write unit tests
53       # without issuing actual D-Bus calls.
54       'target_name': 'dbus_test_support',
55       'type': 'static_library',
56       'dependencies': [
57         '../build/linux/system.gyp:dbus',
58         '../testing/gmock.gyp:gmock',
59         'dbus',
60       ],
61       'sources': [
62         'mock_bus.cc',
63         'mock_bus.h',
64         'mock_exported_object.cc',
65         'mock_exported_object.h',
66         'mock_object_proxy.cc',
67         'mock_object_proxy.h',
68       ],
69       'include_dirs': [
70         '..',
71       ],
72     },
73     {
74       'target_name': 'dbus_unittests',
75       'type': 'executable',
76       'dependencies': [
77         '../base/base.gyp:run_all_unittests',
78         '../base/base.gyp:test_support_base',
79         '../build/linux/system.gyp:dbus',
80         '../testing/gmock.gyp:gmock',
81         '../testing/gtest.gyp:gtest',
82         'dbus',
83         'dbus_test_proto',
84         'dbus_test_support',
85       ],
86       'sources': [
87         'bus_unittest.cc',
88         'end_to_end_async_unittest.cc',
89         'end_to_end_sync_unittest.cc',
90         'message_unittest.cc',
91         'mock_unittest.cc',
92         'property_unittest.cc',
93         'test_service.cc',
94         'test_service.h',
95         'values_util_unittest.cc',
96       ],
97       'include_dirs': [
98         '..',
99       ],
100     },
101   ],