summaryrefslogtreecommitdiffstats
path: root/components/proximity_auth.gypi
blob: 13486d477d4608af6114531e1890bf505ab64b2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'targets': [
    {
      # GN version: //components/proximity_auth and
      # //components/proximity_auth/ble.
      'target_name': 'proximity_auth',
      'type': 'static_library',
      'include_dirs': [
        '..',
      ],
      'dependencies': [
        ':cryptauth',
        ':cryptauth_proto',
        ':proximity_auth_logging',
        '../base/base.gyp:base',
        '../device/bluetooth/bluetooth.gyp:device_bluetooth',
        '../net/net.gyp:net',
        'prefs/prefs.gyp:prefs',
      ],
      'sources': [
        "proximity_auth/authenticator.h",
        "proximity_auth/ble/bluetooth_low_energy_characteristics_finder.cc",
        "proximity_auth/ble/bluetooth_low_energy_characteristics_finder.h",
        "proximity_auth/ble/bluetooth_low_energy_connection.cc",
        "proximity_auth/ble/bluetooth_low_energy_connection.h",
        "proximity_auth/ble/bluetooth_low_energy_connection_finder.cc",
        "proximity_auth/ble/bluetooth_low_energy_connection_finder.h",
        "proximity_auth/ble/bluetooth_low_energy_device_whitelist.cc",
        "proximity_auth/ble/bluetooth_low_energy_device_whitelist.h",
        "proximity_auth/ble/remote_attribute.h",
        "proximity_auth/ble/fake_wire_message.cc",
        "proximity_auth/ble/fake_wire_message.h",
        "proximity_auth/ble/pref_names.cc",
        "proximity_auth/ble/pref_names.h",
        "proximity_auth/bluetooth_connection.cc",
        "proximity_auth/bluetooth_connection.h",
        "proximity_auth/bluetooth_connection_finder.cc",
        "proximity_auth/bluetooth_connection_finder.h",
        "proximity_auth/bluetooth_throttler.h",
        "proximity_auth/bluetooth_throttler_impl.cc",
        "proximity_auth/bluetooth_throttler_impl.h",
        "proximity_auth/bluetooth_util.cc",
        "proximity_auth/bluetooth_util.h",
        "proximity_auth/bluetooth_util_chromeos.cc",
        "proximity_auth/cryptauth_enroller_factory_impl.cc",
        "proximity_auth/cryptauth_enroller_factory_impl.h",
        "proximity_auth/connection.cc",
        "proximity_auth/connection.h",
        "proximity_auth/connection_finder.h",
        "proximity_auth/connection_observer.h",
        "proximity_auth/device_to_device_authenticator.cc",
        "proximity_auth/device_to_device_authenticator.h",
        "proximity_auth/device_to_device_initiator_operations.cc",
        "proximity_auth/device_to_device_initiator_operations.h",
        "proximity_auth/device_to_device_secure_context.cc",
        "proximity_auth/device_to_device_secure_context.h",
        "proximity_auth/messenger.h",
        "proximity_auth/messenger_impl.cc",
        "proximity_auth/messenger_impl.h",
        "proximity_auth/messenger_observer.h",
        "proximity_auth/metrics.cc",
        "proximity_auth/metrics.h",
        "proximity_auth/proximity_auth_client.h",
        "proximity_auth/proximity_auth_pref_manager.cc",
        "proximity_auth/proximity_auth_pref_manager.h",
        "proximity_auth/proximity_auth_pref_names.cc",
        "proximity_auth/proximity_auth_pref_names.h",
        "proximity_auth/proximity_auth_system.cc",
        "proximity_auth/proximity_auth_system.h",
        "proximity_auth/proximity_monitor.h",
        "proximity_auth/proximity_monitor_impl.cc",
        "proximity_auth/proximity_monitor_impl.h",
        "proximity_auth/proximity_monitor_observer.h",
        "proximity_auth/remote_device.cc",
        "proximity_auth/remote_device.h",
        "proximity_auth/remote_device_loader.cc",
        "proximity_auth/remote_device_loader.h",
        "proximity_auth/remote_device_life_cycle.h",
        "proximity_auth/remote_device_life_cycle_impl.h",
        "proximity_auth/remote_device_life_cycle_impl.cc",
        "proximity_auth/remote_status_update.cc",
        "proximity_auth/remote_status_update.h",
        "proximity_auth/screenlock_bridge.cc",
        "proximity_auth/screenlock_bridge.h",
        "proximity_auth/screenlock_state.h",
        "proximity_auth/secure_context.h",
        "proximity_auth/switches.cc",
        "proximity_auth/switches.h",
        "proximity_auth/throttled_bluetooth_connection_finder.cc",
        "proximity_auth/throttled_bluetooth_connection_finder.h",
        "proximity_auth/unlock_manager.cc",
        "proximity_auth/unlock_manager.h",
        "proximity_auth/wire_message.cc",
        "proximity_auth/wire_message.h",
      ],

      'export_dependent_settings': [
        'cryptauth_proto',
      ],
    },
    {
      'target_name': 'proximity_auth_test_support',
      'type': 'static_library',
      'include_dirs': [
        '..',
      ],
      'dependencies': [
        ':cryptauth_test_support',
        '../base/base.gyp:base',
        '../testing/gmock.gyp:gmock',
      ],
      'sources': [
        "proximity_auth/device_to_device_responder_operations.cc",
        "proximity_auth/device_to_device_responder_operations.h",
        "proximity_auth/fake_connection.cc",
        "proximity_auth/fake_connection.h",
        "proximity_auth/fake_secure_context.cc",
        "proximity_auth/fake_secure_context.h",
        "proximity_auth/mock_proximity_auth_client.cc",
        "proximity_auth/mock_proximity_auth_client.h",
        "proximity_auth/proximity_auth_test_util.cc",
        "proximity_auth/proximity_auth_test_util.h",
      ],
    },
    {
      # GN version: //components/proximity_auth/logging
      'target_name': 'proximity_auth_logging',
      'type': 'static_library',
      'include_dirs': [
        '..',
      ],
      'dependencies': [
        '../base/base.gyp:base',
      ],
      'sources': [
        "proximity_auth/logging/log_buffer.cc",
        "proximity_auth/logging/log_buffer.h",
        "proximity_auth/logging/logging.h",
        "proximity_auth/logging/logging.cc",
      ]
    },
    {
      # GN version: //components/proximity_auth/cryptauth/proto
      'target_name': 'cryptauth_proto',
      'type': 'static_library',
      'sources': [
        'proximity_auth/cryptauth/proto/cryptauth_api.proto',
        'proximity_auth/cryptauth/proto/securemessage.proto',
      ],
      'variables': {
        'proto_in_dir': 'proximity_auth/cryptauth/proto',
        'proto_out_dir': 'components/proximity_auth/cryptauth/proto',
      },
      'includes': [ '../build/protoc.gypi' ]
    },
    {
      'target_name': 'cryptauth',
      'type': 'static_library',
      'include_dirs': [
        '..',
      ],
      'dependencies': [
        'cryptauth_proto',
        '../base/base.gyp:base',
        '../crypto/crypto.gyp:crypto',
        '../components/components.gyp:gcm_driver',
        '../google_apis/google_apis.gyp:google_apis',
        '../net/net.gyp:net',
      ],
      'sources': [
        "proximity_auth/cryptauth/cryptauth_access_token_fetcher.h",
        "proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.cc",
        "proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.h",
        "proximity_auth/cryptauth/cryptauth_api_call_flow.cc",
        "proximity_auth/cryptauth/cryptauth_api_call_flow.h",
        "proximity_auth/cryptauth/cryptauth_client.h",
        "proximity_auth/cryptauth/cryptauth_client_impl.cc",
        "proximity_auth/cryptauth/cryptauth_client_impl.h",
        "proximity_auth/cryptauth/cryptauth_device_manager.cc",
        "proximity_auth/cryptauth/cryptauth_device_manager.h",
        "proximity_auth/cryptauth/cryptauth_enroller.h",
        "proximity_auth/cryptauth/cryptauth_enroller_impl.cc",
        "proximity_auth/cryptauth/cryptauth_enroller_impl.h",
        "proximity_auth/cryptauth/cryptauth_enrollment_manager.cc",
        "proximity_auth/cryptauth/cryptauth_enrollment_manager.h",
        "proximity_auth/cryptauth/cryptauth_enrollment_utils.cc",
        "proximity_auth/cryptauth/cryptauth_gcm_manager.cc",
        "proximity_auth/cryptauth/cryptauth_gcm_manager.h",
        "proximity_auth/cryptauth/cryptauth_gcm_manager_impl.cc",
        "proximity_auth/cryptauth/cryptauth_gcm_manager_impl.h",
        "proximity_auth/cryptauth/pref_names.cc",
        "proximity_auth/cryptauth/pref_names.h",
        "proximity_auth/cryptauth/secure_message_delegate.cc",
        "proximity_auth/cryptauth/secure_message_delegate.h",
        "proximity_auth/cryptauth/switches.cc",
        "proximity_auth/cryptauth/switches.h",
        "proximity_auth/cryptauth/sync_scheduler.cc",
        "proximity_auth/cryptauth/sync_scheduler.h",
        "proximity_auth/cryptauth/sync_scheduler_impl.cc",
        "proximity_auth/cryptauth/sync_scheduler_impl.h",
      ],
      'export_dependent_settings': [
        'cryptauth_proto',
      ],
    },
    {
      'target_name': 'cryptauth_test_support',
      'type': 'static_library',
      'include_dirs': [
        '..',
      ],
      'dependencies': [
        'cryptauth_proto',
        '../base/base.gyp:base',
        '../testing/gmock.gyp:gmock',
      ],
      'sources': [
        "proximity_auth/cryptauth/fake_cryptauth_gcm_manager.cc",
        "proximity_auth/cryptauth/fake_cryptauth_gcm_manager.h",
        "proximity_auth/cryptauth/fake_secure_message_delegate.cc",
        "proximity_auth/cryptauth/fake_secure_message_delegate.h",
        "proximity_auth/cryptauth/mock_cryptauth_client.cc",
        "proximity_auth/cryptauth/mock_cryptauth_client.h",
        "proximity_auth/cryptauth/mock_sync_scheduler.cc",
        "proximity_auth/cryptauth/mock_sync_scheduler.h",
      ],
      'export_dependent_settings': [
        'cryptauth_proto',
      ],
    },
    {
      # GN version: //components/proximity_auth/webui
      'target_name': 'proximity_auth_webui',
      'type': 'static_library',
      'dependencies': [
        '../base/base.gyp:base',
        '../content/content.gyp:content_browser',
        '../ui/resources/ui_resources.gyp:ui_resources',
        'components_resources.gyp:components_resources',
        'cryptauth',
        'cryptauth_proto',
        'proximity_auth',
      ],
      'include_dirs': [
        '..',
      ],
      'sources': [
        'proximity_auth/webui/proximity_auth_ui.cc',
        'proximity_auth/webui/proximity_auth_ui.h',
        'proximity_auth/webui/proximity_auth_webui_handler.cc',
        'proximity_auth/webui/proximity_auth_webui_handler.h',
        'proximity_auth/webui/reachable_phone_flow.cc',
        'proximity_auth/webui/reachable_phone_flow.h',
        'proximity_auth/webui/url_constants.cc',
        'proximity_auth/webui/url_constants.h',
      ],
    },
  ],
}