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