blob: c2c1a3f6399f40971845da9d91b64fa78f63161b [file] [log] [blame]
[email protected]af4ac5de82012-04-05 00:50:271# 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.
4
5{
6 'variables': {
7 'chromium_code': 1,
8 },
9 'targets': [
10 {
11 'target_name': 'chromeos',
12 'type': '<(component)',
13 'dependencies': [
14 '../base/base.gyp:base',
[email protected]64e199252012-04-06 01:54:3615 '../build/linux/system.gyp:dbus',
16 '../dbus/dbus.gyp:dbus',
17 '../net/net.gyp:net',
18 'power_state_control_proto',
19 'power_supply_properties_proto',
[email protected]af4ac5de82012-04-05 00:50:2720 ],
21 'sources': [
22 'chromeos_export.h',
[email protected]66149a5c2012-05-11 19:14:2723 'chromeos_switches.cc',
24 'chromeos_switches.h',
[email protected]64e199252012-04-06 01:54:3625 'dbus/blocking_method_caller.cc',
26 'dbus/blocking_method_caller.h',
27 'dbus/bluetooth_adapter_client.cc',
28 'dbus/bluetooth_adapter_client.h',
29 'dbus/bluetooth_agent_service_provider.cc',
30 'dbus/bluetooth_agent_service_provider.h',
31 'dbus/bluetooth_device_client.cc',
32 'dbus/bluetooth_device_client.h',
33 'dbus/bluetooth_input_client.cc',
34 'dbus/bluetooth_input_client.h',
35 'dbus/bluetooth_manager_client.cc',
36 'dbus/bluetooth_manager_client.h',
37 'dbus/bluetooth_node_client.cc',
38 'dbus/bluetooth_node_client.h',
39 'dbus/bluetooth_property.cc',
40 'dbus/bluetooth_property.h',
41 'dbus/cashew_client.cc',
42 'dbus/cashew_client.h',
43 'dbus/cros_disks_client.cc',
44 'dbus/cros_disks_client.h',
45 'dbus/cryptohome_client.cc',
46 'dbus/cryptohome_client.h',
47 'dbus/dbus_client_implementation_type.h',
48 'dbus/dbus_method_call_status.h',
49 'dbus/dbus_thread_manager.cc',
50 'dbus/dbus_thread_manager.h',
51 'dbus/debug_daemon_client.cc',
52 'dbus/debug_daemon_client.h',
[email protected]3e87a6c2012-04-19 08:18:4853 'dbus/gsm_sms_client.cc',
54 'dbus/gsm_sms_client.h',
[email protected]64e199252012-04-06 01:54:3655 'dbus/flimflam_ipconfig_client.cc',
56 'dbus/flimflam_ipconfig_client.h',
57 'dbus/flimflam_client_helper.cc',
58 'dbus/flimflam_client_helper.h',
[email protected]0e589042012-04-17 04:40:1359 'dbus/flimflam_device_client.cc',
60 'dbus/flimflam_device_client.h',
[email protected]5c40dce2012-04-11 08:01:5961 'dbus/flimflam_manager_client.cc',
62 'dbus/flimflam_manager_client.h',
[email protected]64e199252012-04-06 01:54:3663 'dbus/flimflam_network_client.cc',
64 'dbus/flimflam_network_client.h',
65 'dbus/flimflam_profile_client.cc',
66 'dbus/flimflam_profile_client.h',
[email protected]d4c6bf02012-04-18 06:10:3867 'dbus/flimflam_service_client.cc',
68 'dbus/flimflam_service_client.h',
[email protected]64e199252012-04-06 01:54:3669 'dbus/image_burner_client.cc',
70 'dbus/image_burner_client.h',
71 'dbus/introspectable_client.cc',
72 'dbus/introspectable_client.h',
73 'dbus/power_manager_client.cc',
74 'dbus/power_manager_client.h',
[email protected]af4ac5de82012-04-05 00:50:2775 'dbus/power_supply_status.cc',
76 'dbus/power_supply_status.h',
[email protected]64e199252012-04-06 01:54:3677 'dbus/session_manager_client.cc',
78 'dbus/session_manager_client.h',
79 'dbus/speech_synthesizer_client.cc',
80 'dbus/speech_synthesizer_client.h',
81 'dbus/update_engine_client.cc',
82 'dbus/update_engine_client.h',
[email protected]af4ac5de82012-04-05 00:50:2783 ],
84 },
[email protected]64e199252012-04-06 01:54:3685 {
86 # This target contains mocks that can be used to write unit tests.
87 'target_name': 'chromeos_test_support',
88 'type': 'static_library',
89 'dependencies': [
90 '../build/linux/system.gyp:dbus',
91 '../testing/gmock.gyp:gmock',
92 'chromeos',
93 ],
94 'sources': [
95 'dbus/mock_bluetooth_adapter_client.cc',
96 'dbus/mock_bluetooth_adapter_client.h',
97 'dbus/mock_bluetooth_device_client.cc',
98 'dbus/mock_bluetooth_device_client.h',
99 'dbus/mock_bluetooth_input_client.cc',
100 'dbus/mock_bluetooth_input_client.h',
101 'dbus/mock_bluetooth_manager_client.cc',
102 'dbus/mock_bluetooth_manager_client.h',
103 'dbus/mock_bluetooth_node_client.cc',
104 'dbus/mock_bluetooth_node_client.h',
105 'dbus/mock_cros_disks_client.cc',
106 'dbus/mock_cros_disks_client.h',
107 'dbus/mock_cashew_client.cc',
108 'dbus/mock_cashew_client.h',
109 'dbus/mock_cryptohome_client.cc',
110 'dbus/mock_cryptohome_client.h',
111 'dbus/mock_dbus_thread_manager.cc',
112 'dbus/mock_dbus_thread_manager.h',
113 'dbus/mock_debug_daemon_client.cc',
114 'dbus/mock_debug_daemon_client.h',
[email protected]0e589042012-04-17 04:40:13115 'dbus/mock_flimflam_device_client.cc',
116 'dbus/mock_flimflam_device_client.h',
[email protected]64e199252012-04-06 01:54:36117 'dbus/mock_flimflam_ipconfig_client.cc',
118 'dbus/mock_flimflam_ipconfig_client.h',
[email protected]5c40dce2012-04-11 08:01:59119 'dbus/mock_flimflam_manager_client.cc',
120 'dbus/mock_flimflam_manager_client.h',
[email protected]64e199252012-04-06 01:54:36121 'dbus/mock_flimflam_network_client.cc',
122 'dbus/mock_flimflam_network_client.h',
123 'dbus/mock_flimflam_profile_client.cc',
124 'dbus/mock_flimflam_profile_client.h',
[email protected]d4c6bf02012-04-18 06:10:38125 'dbus/mock_flimflam_service_client.cc',
126 'dbus/mock_flimflam_service_client.h',
[email protected]3e87a6c2012-04-19 08:18:48127 'dbus/mock_gsm_sms_client.cc',
128 'dbus/mock_gsm_sms_client.h',
[email protected]64e199252012-04-06 01:54:36129 'dbus/mock_image_burner_client.cc',
130 'dbus/mock_image_burner_client.h',
131 'dbus/mock_introspectable_client.cc',
132 'dbus/mock_introspectable_client.h',
133 'dbus/mock_power_manager_client.cc',
134 'dbus/mock_power_manager_client.h',
135 'dbus/mock_session_manager_client.cc',
136 'dbus/mock_session_manager_client.h',
137 'dbus/mock_speech_synthesizer_client.cc',
138 'dbus/mock_speech_synthesizer_client.h',
139 'dbus/mock_update_engine_client.cc',
140 'dbus/mock_update_engine_client.h',
141 ],
142 'include_dirs': [
143 '..',
144 ],
145 },
146 {
147 'target_name': 'chromeos_unittests',
148 'type': 'executable',
149 'dependencies': [
150 '../base/base.gyp:run_all_unittests',
151 '../base/base.gyp:test_support_base',
152 '../build/linux/system.gyp:dbus',
153 '../dbus/dbus.gyp:dbus_test_support',
154 '../testing/gmock.gyp:gmock',
155 '../testing/gtest.gyp:gtest',
156 'chromeos_test_support',
157 ],
158 'sources': [
159 'dbus/blocking_method_caller_unittest.cc',
160 'dbus/flimflam_client_unittest_base.cc',
161 'dbus/flimflam_client_unittest_base.h',
[email protected]0e589042012-04-17 04:40:13162 'dbus/flimflam_device_client_unittest.cc',
[email protected]f12784d22012-04-20 04:09:01163 'dbus/flimflam_ipconfig_client_unittest.cc',
[email protected]5c40dce2012-04-11 08:01:59164 'dbus/flimflam_manager_client_unittest.cc',
[email protected]64e199252012-04-06 01:54:36165 'dbus/flimflam_network_client_unittest.cc',
[email protected]18929a9d32012-04-17 02:08:01166 'dbus/flimflam_profile_client_unittest.cc',
[email protected]d4c6bf02012-04-18 06:10:38167 'dbus/flimflam_service_client_unittest.cc',
[email protected]3e87a6c2012-04-19 08:18:48168 'dbus/gsm_sms_client_unittest.cc',
[email protected]64e199252012-04-06 01:54:36169 ],
170 'include_dirs': [
171 '..',
172 ],
173 },
174 {
175 # Protobuf compiler / generator for the PowerSupplyProperties protocol
176 # buffer.
177 'target_name': 'power_state_control_proto',
178 'type': 'static_library',
179 'sources': [
180 '../third_party/cros_system_api/dbus/power_state_control.proto',
181 ],
182 'variables': {
183 'proto_in_dir': '../third_party/cros_system_api/dbus/',
184 'proto_out_dir': 'chromeos/dbus',
185 },
186 'includes': ['../build/protoc.gypi'],
187 },
188 {
189 # Protobuf compiler / generator for the PowerSupplyProperties protocol
190 # buffer.
191 'target_name': 'power_supply_properties_proto',
192 'type': 'static_library',
193 'sources': [
194 '../third_party/cros_system_api/dbus/power_supply_properties.proto',
195 ],
196 'variables': {
197 'proto_in_dir': '../third_party/cros_system_api/dbus/',
198 'proto_out_dir': 'chromeos/dbus',
199 },
200 'includes': ['../build/protoc.gypi'],
201 },
202 ],
[email protected]af4ac5de82012-04-05 00:50:27203}