Allow only one bookmark to be added for multiple fast starring
[chromium-blink-merge.git] / components / proximity_auth.gypi
blob3b4307df79370a117178a4013c1d5396e3ea6421
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/connection.cc",
56         "proximity_auth/connection.h",
57         "proximity_auth/connection_finder.h",
58         "proximity_auth/connection_observer.h",
59         "proximity_auth/device_to_device_authenticator.cc",
60         "proximity_auth/device_to_device_authenticator.h",
61         "proximity_auth/device_to_device_initiator_operations.cc",
62         "proximity_auth/device_to_device_initiator_operations.h",
63         "proximity_auth/device_to_device_secure_context.cc",
64         "proximity_auth/device_to_device_secure_context.h",
65         "proximity_auth/metrics.cc",
66         "proximity_auth/metrics.h",
67         "proximity_auth/proximity_auth_client.h",
68         "proximity_auth/proximity_auth_system.cc",
69         "proximity_auth/proximity_auth_system.h",
70         "proximity_auth/proximity_monitor.h",
71         "proximity_auth/proximity_monitor_impl.cc",
72         "proximity_auth/proximity_monitor_impl.h",
73         "proximity_auth/proximity_monitor_observer.h",
74         "proximity_auth/remote_device.cc",
75         "proximity_auth/remote_device.h",
76         "proximity_auth/remote_status_update.cc",
77         "proximity_auth/remote_status_update.h",
78         "proximity_auth/screenlock_bridge.cc",
79         "proximity_auth/screenlock_bridge.h",
80         "proximity_auth/screenlock_state.h",
81         "proximity_auth/secure_context.h",
82         "proximity_auth/switches.cc",
83         "proximity_auth/switches.h",
84         "proximity_auth/throttled_bluetooth_connection_finder.cc",
85         "proximity_auth/throttled_bluetooth_connection_finder.h",
86         "proximity_auth/wire_message.cc",
87         "proximity_auth/wire_message.h",
88       ],
90       'export_dependent_settings': [
91         'cryptauth_proto',
92       ],
93     },
94     {
95       'target_name': 'proximity_auth_test_support',
96       'type': 'static_library',
97       'include_dirs': [
98         '..',
99       ],
100       'dependencies': [
101         ':cryptauth_test_support',
102         '../base/base.gyp:base',
103       ],
104       'sources': [
105         "proximity_auth/device_to_device_responder_operations.cc",
106         "proximity_auth/device_to_device_responder_operations.h",
107       ],
108     },
109     {
110       # GN version: //components/proximity_auth/logging
111       'target_name': 'proximity_auth_logging',
112       'type': 'static_library',
113       'include_dirs': [
114         '..',
115       ],
116       'dependencies': [
117         '../base/base.gyp:base',
118       ],
119       'sources': [
120         "proximity_auth/logging/log_buffer.cc",
121         "proximity_auth/logging/log_buffer.h",
122         "proximity_auth/logging/logging.h",
123         "proximity_auth/logging/logging.cc",
124       ]
125     },
126     {
127       # GN version: //components/proximity_auth/cryptauth/proto
128       'target_name': 'cryptauth_proto',
129       'type': 'static_library',
130       'sources': [
131         'proximity_auth/cryptauth/proto/cryptauth_api.proto',
132         'proximity_auth/cryptauth/proto/securemessage.proto',
133       ],
134       'variables': {
135         'proto_in_dir': 'proximity_auth/cryptauth/proto',
136         'proto_out_dir': 'components/proximity_auth/cryptauth/proto',
137       },
138       'includes': [ '../build/protoc.gypi' ]
139     },
140     {
141       'target_name': 'cryptauth',
142       'type': 'static_library',
143       'include_dirs': [
144         '..',
145       ],
146       'dependencies': [
147         'cryptauth_proto',
148         '../base/base.gyp:base',
149         '../crypto/crypto.gyp:crypto',
150         '../components/components.gyp:gcm_driver',
151         '../google_apis/google_apis.gyp:google_apis',
152         '../net/net.gyp:net',
153       ],
154       'sources': [
155         "proximity_auth/cryptauth/base64url.cc",
156         "proximity_auth/cryptauth/base64url.h",
157         "proximity_auth/cryptauth/cryptauth_access_token_fetcher.h",
158         "proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.cc",
159         "proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.h",
160         "proximity_auth/cryptauth/cryptauth_api_call_flow.cc",
161         "proximity_auth/cryptauth/cryptauth_api_call_flow.h",
162         "proximity_auth/cryptauth/cryptauth_client.h",
163         "proximity_auth/cryptauth/cryptauth_client_impl.cc",
164         "proximity_auth/cryptauth/cryptauth_client_impl.h",
165         "proximity_auth/cryptauth/cryptauth_device_manager.cc",
166         "proximity_auth/cryptauth/cryptauth_device_manager.h",
167         "proximity_auth/cryptauth/cryptauth_enroller.h",
168         "proximity_auth/cryptauth/cryptauth_enroller_impl.cc",
169         "proximity_auth/cryptauth/cryptauth_enroller_impl.h",
170         "proximity_auth/cryptauth/cryptauth_enrollment_manager.cc",
171         "proximity_auth/cryptauth/cryptauth_enrollment_manager.h",
172         "proximity_auth/cryptauth/cryptauth_enrollment_utils.cc",
173         "proximity_auth/cryptauth/cryptauth_gcm_manager.cc",
174         "proximity_auth/cryptauth/cryptauth_gcm_manager.h",
175         "proximity_auth/cryptauth/cryptauth_gcm_manager_impl.cc",
176         "proximity_auth/cryptauth/cryptauth_gcm_manager_impl.h",
177         "proximity_auth/cryptauth/pref_names.cc",
178         "proximity_auth/cryptauth/pref_names.h",
179         "proximity_auth/cryptauth/secure_message_delegate.cc",
180         "proximity_auth/cryptauth/secure_message_delegate.h",
181         "proximity_auth/cryptauth/sync_scheduler.cc",
182         "proximity_auth/cryptauth/sync_scheduler.h",
183         "proximity_auth/cryptauth/sync_scheduler_impl.cc",
184         "proximity_auth/cryptauth/sync_scheduler_impl.h",
185       ],
186       'export_dependent_settings': [
187         'cryptauth_proto',
188       ],
189     },
190     {
191       'target_name': 'cryptauth_test_support',
192       'type': 'static_library',
193       'include_dirs': [
194         '..',
195       ],
196       'dependencies': [
197         'cryptauth_proto',
198         '../base/base.gyp:base',
199         '../testing/gmock.gyp:gmock',
200       ],
201       'sources': [
202         "proximity_auth/cryptauth/fake_cryptauth_gcm_manager.cc",
203         "proximity_auth/cryptauth/fake_cryptauth_gcm_manager.h",
204         "proximity_auth/cryptauth/fake_secure_message_delegate.cc",
205         "proximity_auth/cryptauth/fake_secure_message_delegate.h",
206         "proximity_auth/cryptauth/mock_cryptauth_client.cc",
207         "proximity_auth/cryptauth/mock_cryptauth_client.h",
208         "proximity_auth/cryptauth/mock_sync_scheduler.cc",
209         "proximity_auth/cryptauth/mock_sync_scheduler.h",
210       ],
211       'export_dependent_settings': [
212         'cryptauth_proto',
213       ],
214     },
215     {
216       # GN version: //components/proximity_auth/webui
217       'target_name': 'proximity_auth_webui',
218       'type': 'static_library',
219       'dependencies': [
220         '../base/base.gyp:base',
221         '../content/content.gyp:content_browser',
222         '../ui/resources/ui_resources.gyp:ui_resources',
223         'components_resources.gyp:components_resources',
224         'cryptauth',
225         'cryptauth_proto',
226         'proximity_auth',
227       ],
228       'include_dirs': [
229         '..',
230       ],
231       'sources': [
232         'proximity_auth/webui/cryptauth_enroller_factory_impl.cc',
233         'proximity_auth/webui/cryptauth_enroller_factory_impl.h',
234         'proximity_auth/webui/proximity_auth_ui.cc',
235         'proximity_auth/webui/proximity_auth_ui.h',
236         'proximity_auth/webui/proximity_auth_ui_delegate.h',
237         'proximity_auth/webui/proximity_auth_webui_handler.cc',
238         'proximity_auth/webui/proximity_auth_webui_handler.h',
239         'proximity_auth/webui/reachable_phone_flow.cc',
240         'proximity_auth/webui/reachable_phone_flow.h',
241         'proximity_auth/webui/url_constants.cc',
242         'proximity_auth/webui/url_constants.h',
243       ],
244     },
245   ],