Fix a typo in the MB mixin for official builds.
[chromium-blink-merge.git] / components / proximity_auth.gypi
blob35c77d887bd7d1d05e4e05d22260097ff9cd1105
1 # Copyright 2014 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   'targets': [
7     {
8       # GN version: //components/proximity_auth and
9       # //components/proximity_auth/ble.
10       'target_name': 'proximity_auth',
11       'type': 'static_library',
12       'include_dirs': [
13         '..',
14       ],
15       'dependencies': [
16         ':cryptauth',
17         ':cryptauth_proto',
18         ':proximity_auth_logging',
19         '../base/base.gyp:base',
20         '../base/base.gyp:base_prefs',
21         '../device/bluetooth/bluetooth.gyp:device_bluetooth',
22         '../net/net.gyp:net',
23       ],
24       'sources': [
25         "proximity_auth/authenticator.h",
26         "proximity_auth/ble/bluetooth_low_energy_characteristics_finder.cc",
27         "proximity_auth/ble/bluetooth_low_energy_characteristics_finder.h",
28         "proximity_auth/ble/bluetooth_low_energy_connection.cc",
29         "proximity_auth/ble/bluetooth_low_energy_connection.h",
30         "proximity_auth/ble/bluetooth_low_energy_connection_finder.cc",
31         "proximity_auth/ble/bluetooth_low_energy_connection_finder.h",
32         "proximity_auth/ble/bluetooth_low_energy_device_whitelist.cc",
33         "proximity_auth/ble/bluetooth_low_energy_device_whitelist.h",
34         "proximity_auth/ble/remote_attribute.h",
35         "proximity_auth/ble/fake_wire_message.cc",
36         "proximity_auth/ble/fake_wire_message.h",
37         "proximity_auth/ble/pref_names.cc",
38         "proximity_auth/ble/pref_names.h",
39         "proximity_auth/ble/proximity_auth_ble_system.cc",
40         "proximity_auth/ble/proximity_auth_ble_system.h",
41         "proximity_auth/bluetooth_connection.cc",
42         "proximity_auth/bluetooth_connection.h",
43         "proximity_auth/bluetooth_connection_finder.cc",
44         "proximity_auth/bluetooth_connection_finder.h",
45         "proximity_auth/bluetooth_throttler.h",
46         "proximity_auth/bluetooth_throttler_impl.cc",
47         "proximity_auth/bluetooth_throttler_impl.h",
48         "proximity_auth/bluetooth_util.cc",
49         "proximity_auth/bluetooth_util.h",
50         "proximity_auth/bluetooth_util_chromeos.cc",
51         "proximity_auth/client.h",
52         "proximity_auth/client_impl.cc",
53         "proximity_auth/client_impl.h",
54         "proximity_auth/client_observer.h",
55         "proximity_auth/cryptauth_enroller_factory_impl.cc",
56         "proximity_auth/cryptauth_enroller_factory_impl.h",
57         "proximity_auth/connection.cc",
58         "proximity_auth/connection.h",
59         "proximity_auth/connection_finder.h",
60         "proximity_auth/connection_observer.h",
61         "proximity_auth/controller.h",
62         "proximity_auth/device_to_device_authenticator.cc",
63         "proximity_auth/device_to_device_authenticator.h",
64         "proximity_auth/device_to_device_initiator_operations.cc",
65         "proximity_auth/device_to_device_initiator_operations.h",
66         "proximity_auth/device_to_device_secure_context.cc",
67         "proximity_auth/device_to_device_secure_context.h",
68         "proximity_auth/metrics.cc",
69         "proximity_auth/metrics.h",
70         "proximity_auth/proximity_auth_client.h",
71         "proximity_auth/proximity_auth_system.cc",
72         "proximity_auth/proximity_auth_system.h",
73         "proximity_auth/proximity_monitor.h",
74         "proximity_auth/proximity_monitor_impl.cc",
75         "proximity_auth/proximity_monitor_impl.h",
76         "proximity_auth/proximity_monitor_observer.h",
77         "proximity_auth/remote_device.cc",
78         "proximity_auth/remote_device.h",
79         "proximity_auth/remote_status_update.cc",
80         "proximity_auth/remote_status_update.h",
81         "proximity_auth/screenlock_bridge.cc",
82         "proximity_auth/screenlock_bridge.h",
83         "proximity_auth/screenlock_state.h",
84         "proximity_auth/secure_context.h",
85         "proximity_auth/switches.cc",
86         "proximity_auth/switches.h",
87         "proximity_auth/throttled_bluetooth_connection_finder.cc",
88         "proximity_auth/throttled_bluetooth_connection_finder.h",
89         "proximity_auth/unlock_manager.cc",
90         "proximity_auth/unlock_manager.h",
91         "proximity_auth/wire_message.cc",
92         "proximity_auth/wire_message.h",
93       ],
95       'export_dependent_settings': [
96         'cryptauth_proto',
97       ],
98     },
99     {
100       'target_name': 'proximity_auth_test_support',
101       'type': 'static_library',
102       'include_dirs': [
103         '..',
104       ],
105       'dependencies': [
106         ':cryptauth_test_support',
107         '../base/base.gyp:base',
108         '../testing/gmock.gyp:gmock',
109       ],
110       'sources': [
111         "proximity_auth/device_to_device_responder_operations.cc",
112         "proximity_auth/device_to_device_responder_operations.h",
113         "proximity_auth/mock_proximity_auth_client.cc",
114         "proximity_auth/mock_proximity_auth_client.h",
115       ],
116     },
117     {
118       # GN version: //components/proximity_auth/logging
119       'target_name': 'proximity_auth_logging',
120       'type': 'static_library',
121       'include_dirs': [
122         '..',
123       ],
124       'dependencies': [
125         '../base/base.gyp:base',
126       ],
127       'sources': [
128         "proximity_auth/logging/log_buffer.cc",
129         "proximity_auth/logging/log_buffer.h",
130         "proximity_auth/logging/logging.h",
131         "proximity_auth/logging/logging.cc",
132       ]
133     },
134     {
135       # GN version: //components/proximity_auth/cryptauth/proto
136       'target_name': 'cryptauth_proto',
137       'type': 'static_library',
138       'sources': [
139         'proximity_auth/cryptauth/proto/cryptauth_api.proto',
140         'proximity_auth/cryptauth/proto/securemessage.proto',
141       ],
142       'variables': {
143         'proto_in_dir': 'proximity_auth/cryptauth/proto',
144         'proto_out_dir': 'components/proximity_auth/cryptauth/proto',
145       },
146       'includes': [ '../build/protoc.gypi' ]
147     },
148     {
149       'target_name': 'cryptauth',
150       'type': 'static_library',
151       'include_dirs': [
152         '..',
153       ],
154       'dependencies': [
155         'cryptauth_proto',
156         '../base/base.gyp:base',
157         '../crypto/crypto.gyp:crypto',
158         '../components/components.gyp:gcm_driver',
159         '../google_apis/google_apis.gyp:google_apis',
160         '../net/net.gyp:net',
161       ],
162       'sources': [
163         "proximity_auth/cryptauth/base64url.cc",
164         "proximity_auth/cryptauth/base64url.h",
165         "proximity_auth/cryptauth/cryptauth_access_token_fetcher.h",
166         "proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.cc",
167         "proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.h",
168         "proximity_auth/cryptauth/cryptauth_api_call_flow.cc",
169         "proximity_auth/cryptauth/cryptauth_api_call_flow.h",
170         "proximity_auth/cryptauth/cryptauth_client.h",
171         "proximity_auth/cryptauth/cryptauth_client_impl.cc",
172         "proximity_auth/cryptauth/cryptauth_client_impl.h",
173         "proximity_auth/cryptauth/cryptauth_device_manager.cc",
174         "proximity_auth/cryptauth/cryptauth_device_manager.h",
175         "proximity_auth/cryptauth/cryptauth_enroller.h",
176         "proximity_auth/cryptauth/cryptauth_enroller_impl.cc",
177         "proximity_auth/cryptauth/cryptauth_enroller_impl.h",
178         "proximity_auth/cryptauth/cryptauth_enrollment_manager.cc",
179         "proximity_auth/cryptauth/cryptauth_enrollment_manager.h",
180         "proximity_auth/cryptauth/cryptauth_enrollment_utils.cc",
181         "proximity_auth/cryptauth/cryptauth_gcm_manager.cc",
182         "proximity_auth/cryptauth/cryptauth_gcm_manager.h",
183         "proximity_auth/cryptauth/cryptauth_gcm_manager_impl.cc",
184         "proximity_auth/cryptauth/cryptauth_gcm_manager_impl.h",
185         "proximity_auth/cryptauth/pref_names.cc",
186         "proximity_auth/cryptauth/pref_names.h",
187         "proximity_auth/cryptauth/secure_message_delegate.cc",
188         "proximity_auth/cryptauth/secure_message_delegate.h",
189         "proximity_auth/cryptauth/sync_scheduler.cc",
190         "proximity_auth/cryptauth/sync_scheduler.h",
191         "proximity_auth/cryptauth/sync_scheduler_impl.cc",
192         "proximity_auth/cryptauth/sync_scheduler_impl.h",
193       ],
194       'export_dependent_settings': [
195         'cryptauth_proto',
196       ],
197     },
198     {
199       'target_name': 'cryptauth_test_support',
200       'type': 'static_library',
201       'include_dirs': [
202         '..',
203       ],
204       'dependencies': [
205         'cryptauth_proto',
206         '../base/base.gyp:base',
207         '../testing/gmock.gyp:gmock',
208       ],
209       'sources': [
210         "proximity_auth/cryptauth/fake_cryptauth_gcm_manager.cc",
211         "proximity_auth/cryptauth/fake_cryptauth_gcm_manager.h",
212         "proximity_auth/cryptauth/fake_secure_message_delegate.cc",
213         "proximity_auth/cryptauth/fake_secure_message_delegate.h",
214         "proximity_auth/cryptauth/mock_cryptauth_client.cc",
215         "proximity_auth/cryptauth/mock_cryptauth_client.h",
216         "proximity_auth/cryptauth/mock_sync_scheduler.cc",
217         "proximity_auth/cryptauth/mock_sync_scheduler.h",
218       ],
219       'export_dependent_settings': [
220         'cryptauth_proto',
221       ],
222     },
223     {
224       # GN version: //components/proximity_auth/webui
225       'target_name': 'proximity_auth_webui',
226       'type': 'static_library',
227       'dependencies': [
228         '../base/base.gyp:base',
229         '../content/content.gyp:content_browser',
230         '../ui/resources/ui_resources.gyp:ui_resources',
231         'components_resources.gyp:components_resources',
232         'cryptauth',
233         'cryptauth_proto',
234         'proximity_auth',
235       ],
236       'include_dirs': [
237         '..',
238       ],
239       'sources': [
240         'proximity_auth/webui/proximity_auth_ui.cc',
241         'proximity_auth/webui/proximity_auth_ui.h',
242         'proximity_auth/webui/proximity_auth_webui_handler.cc',
243         'proximity_auth/webui/proximity_auth_webui_handler.h',
244         'proximity_auth/webui/reachable_phone_flow.cc',
245         'proximity_auth/webui/reachable_phone_flow.h',
246         'proximity_auth/webui/url_constants.cc',
247         'proximity_auth/webui/url_constants.h',
248       ],
249     },
250   ],