base: Make it possible to replace the MessageLoop's task runner
[chromium-blink-merge.git] / components / proximity_auth.gypi
blobc31910eac543a5877f95794c5fad9d5a9de28c8f
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         ':proximity_auth_logging',
18         '../base/base.gyp:base',
19         '../device/bluetooth/bluetooth.gyp:device_bluetooth',
20         '../net/net.gyp:net',
21       ],
22       'sources': [
23         "proximity_auth/ble/bluetooth_low_energy_characteristics_finder.cc",
24         "proximity_auth/ble/bluetooth_low_energy_characteristics_finder.h",
25         "proximity_auth/ble/bluetooth_low_energy_connection.cc",
26         "proximity_auth/ble/bluetooth_low_energy_connection.h",
27         "proximity_auth/ble/bluetooth_low_energy_connection_finder.cc",
28         "proximity_auth/ble/bluetooth_low_energy_connection_finder.h",
29         "proximity_auth/ble/remote_attribute.h",
30         "proximity_auth/ble/fake_wire_message.cc",
31         "proximity_auth/ble/fake_wire_message.h",
32         "proximity_auth/ble/proximity_auth_ble_system.cc",
33         "proximity_auth/ble/proximity_auth_ble_system.h",
34         "proximity_auth/bluetooth_connection.cc",
35         "proximity_auth/bluetooth_connection.h",
36         "proximity_auth/bluetooth_connection_finder.cc",
37         "proximity_auth/bluetooth_connection_finder.h",
38         "proximity_auth/bluetooth_throttler.h",
39         "proximity_auth/bluetooth_throttler_impl.cc",
40         "proximity_auth/bluetooth_throttler_impl.h",
41         "proximity_auth/bluetooth_util.cc",
42         "proximity_auth/bluetooth_util.h",
43         "proximity_auth/bluetooth_util_chromeos.cc",
44         "proximity_auth/client.h",
45         "proximity_auth/client_impl.cc",
46         "proximity_auth/client_impl.h",
47         "proximity_auth/client_observer.h",
48         "proximity_auth/connection.cc",
49         "proximity_auth/connection.h",
50         "proximity_auth/connection_finder.h",
51         "proximity_auth/connection_observer.h",
52         "proximity_auth/metrics.cc",
53         "proximity_auth/metrics.h",
54         "proximity_auth/proximity_auth_client.h",
55         "proximity_auth/proximity_auth_system.cc",
56         "proximity_auth/proximity_auth_system.h",
57         "proximity_auth/proximity_monitor.h",
58         "proximity_auth/proximity_monitor_impl.cc",
59         "proximity_auth/proximity_monitor_impl.h",
60         "proximity_auth/proximity_monitor_observer.h",
61         "proximity_auth/remote_device.h",
62         "proximity_auth/remote_status_update.cc",
63         "proximity_auth/remote_status_update.h",
64         "proximity_auth/screenlock_bridge.cc",
65         "proximity_auth/screenlock_bridge.h",
66         "proximity_auth/screenlock_state.h",
67         "proximity_auth/secure_context.h",
68         "proximity_auth/switches.cc",
69         "proximity_auth/switches.h",
70         "proximity_auth/throttled_bluetooth_connection_finder.cc",
71         "proximity_auth/throttled_bluetooth_connection_finder.h",
72         "proximity_auth/wire_message.cc",
73         "proximity_auth/wire_message.h",
74       ],
75     },
76     {
77       # GN version: //components/proximity_auth/logging
78       'target_name': 'proximity_auth_logging',
79       'type': 'static_library',
80       'include_dirs': [
81         '..',
82       ],
83       'dependencies': [
84         '../base/base.gyp:base',
85       ],
86       'sources': [
87         "proximity_auth/logging/log_buffer.cc",
88         "proximity_auth/logging/log_buffer.h",
89         "proximity_auth/logging/logging.h",
90         "proximity_auth/logging/logging.cc",
91       ]
92     },
93     {
94       # GN version: //components/proximity_auth/cryptauth/proto
95       'target_name': 'cryptauth_proto',
96       'type': 'static_library',
97       'sources': [
98         'proximity_auth/cryptauth/proto/cryptauth_api.proto',
99         'proximity_auth/cryptauth/proto/securemessage.proto',
100       ],
101       'variables': {
102         'proto_in_dir': 'proximity_auth/cryptauth/proto',
103         'proto_out_dir': 'components/proximity_auth/cryptauth/proto',
104       },
105       'includes': [ '../build/protoc.gypi' ]
106     },
107     {
108       'target_name': 'cryptauth',
109       'type': 'static_library',
110       'include_dirs': [
111         '..',
112       ],
113       'dependencies': [
114         'cryptauth_proto',
115         '../base/base.gyp:base',
116         '../crypto/crypto.gyp:crypto',
117         '../google_apis/google_apis.gyp:google_apis',
118         '../net/net.gyp:net',
119       ],
120       'sources': [
121         "proximity_auth/cryptauth/base64url.cc",
122         "proximity_auth/cryptauth/base64url.h",
123         "proximity_auth/cryptauth/cryptauth_access_token_fetcher.h",
124         "proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.cc",
125         "proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.h",
126         "proximity_auth/cryptauth/cryptauth_api_call_flow.cc",
127         "proximity_auth/cryptauth/cryptauth_api_call_flow.h",
128         "proximity_auth/cryptauth/cryptauth_client.h",
129         "proximity_auth/cryptauth/cryptauth_client_impl.cc",
130         "proximity_auth/cryptauth/cryptauth_client_impl.h",
131         "proximity_auth/cryptauth/cryptauth_device_manager.cc",
132         "proximity_auth/cryptauth/cryptauth_device_manager.h",
133         "proximity_auth/cryptauth/cryptauth_enroller.h",
134         "proximity_auth/cryptauth/cryptauth_enroller_impl.cc",
135         "proximity_auth/cryptauth/cryptauth_enroller_impl.h",
136         "proximity_auth/cryptauth/cryptauth_enrollment_manager.cc",
137         "proximity_auth/cryptauth/cryptauth_enrollment_manager.h",
138         "proximity_auth/cryptauth/cryptauth_enrollment_utils.cc",
139         "proximity_auth/cryptauth/pref_names.cc",
140         "proximity_auth/cryptauth/pref_names.h",
141         "proximity_auth/cryptauth/secure_message_delegate.cc",
142         "proximity_auth/cryptauth/secure_message_delegate.h",
143         "proximity_auth/cryptauth/sync_scheduler.cc",
144         "proximity_auth/cryptauth/sync_scheduler.h",
145         "proximity_auth/cryptauth/sync_scheduler_impl.cc",
146         "proximity_auth/cryptauth/sync_scheduler_impl.h",
147       ],
148       'export_dependent_settings': [
149         'cryptauth_proto',
150       ],
151     },
152     {
153       'target_name': 'cryptauth_test_support',
154       'type': 'static_library',
155       'include_dirs': [
156         '..',
157       ],
158       'dependencies': [
159         'cryptauth_proto',
160         '../base/base.gyp:base',
161         '../testing/gmock.gyp:gmock',
162       ],
163       'sources': [
164         "proximity_auth/cryptauth/fake_secure_message_delegate.cc",
165         "proximity_auth/cryptauth/fake_secure_message_delegate.h",
166         "proximity_auth/cryptauth/mock_cryptauth_client.cc",
167         "proximity_auth/cryptauth/mock_cryptauth_client.h",
168         "proximity_auth/cryptauth/mock_sync_scheduler.cc",
169         "proximity_auth/cryptauth/mock_sync_scheduler.h",
170       ],
171       'export_dependent_settings': [
172         'cryptauth_proto',
173       ],
174     },
175     {
176       # GN version: //components/proximity_auth/webui
177       'target_name': 'proximity_auth_webui',
178       'type': 'static_library',
179       'dependencies': [
180         '../base/base.gyp:base',
181         '../content/content.gyp:content_browser',
182         '../ui/resources/ui_resources.gyp:ui_resources',
183         'components_resources.gyp:components_resources',
184         'cryptauth',
185         'proximity_auth',
186       ],
187       'include_dirs': [
188         '..',
189       ],
190       'sources': [
191         'proximity_auth/webui/cryptauth_enroller_factory_impl.cc',
192         'proximity_auth/webui/cryptauth_enroller_factory_impl.h',
193         'proximity_auth/webui/proximity_auth_ui.cc',
194         'proximity_auth/webui/proximity_auth_ui.h',
195         'proximity_auth/webui/proximity_auth_ui_delegate.h',
196         'proximity_auth/webui/proximity_auth_webui_handler.cc',
197         'proximity_auth/webui/proximity_auth_webui_handler.h',
198         'proximity_auth/webui/url_constants.cc',
199         'proximity_auth/webui/url_constants.h',
200       ],
201     },
202   ],