Extensions: Switch to new permission message system, part IV
[chromium-blink-merge.git] / components / proximity_auth.gypi
blob8a5526c10139924b41fda628a387da06b33ef3b3
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       'target_name': 'proximity_auth',
9       'type': 'static_library',
10       'include_dirs': [
11         '..',
12       ],
13       'dependencies': [
14         '../base/base.gyp:base',
15         '../device/bluetooth/bluetooth.gyp:device_bluetooth',
16         '../net/net.gyp:net',
17       ],
18       'sources': [
19         "proximity_auth/bluetooth_connection.cc",
20         "proximity_auth/bluetooth_connection.h",
21         "proximity_auth/bluetooth_connection_finder.cc",
22         "proximity_auth/bluetooth_connection_finder.h",
23         "proximity_auth/bluetooth_throttler.h",
24         "proximity_auth/bluetooth_throttler_impl.cc",
25         "proximity_auth/bluetooth_throttler_impl.h",
26         "proximity_auth/bluetooth_util.cc",
27         "proximity_auth/bluetooth_util.h",
28         "proximity_auth/bluetooth_util_chromeos.cc",
29         "proximity_auth/ble/proximity_auth_ble_system.cc",
30         "proximity_auth/ble/proximity_auth_ble_system.h",
31         "proximity_auth/client.cc",
32         "proximity_auth/client.h",
33         "proximity_auth/client_observer.h",
34         "proximity_auth/connection.cc",
35         "proximity_auth/connection.h",
36         "proximity_auth/connection_finder.h",
37         "proximity_auth/connection_observer.h",
38         "proximity_auth/proximity_auth_system.cc",
39         "proximity_auth/proximity_auth_system.h",
40         "proximity_auth/remote_device.h",
41         "proximity_auth/remote_status_update.cc",
42         "proximity_auth/remote_status_update.h",
43         "proximity_auth/secure_context.h",
44         "proximity_auth/switches.cc",
45         "proximity_auth/switches.h",
46         "proximity_auth/throttled_bluetooth_connection_finder.cc",
47         "proximity_auth/throttled_bluetooth_connection_finder.h",
48         "proximity_auth/wire_message.cc",
49         "proximity_auth/wire_message.h",
50       ],
51     },
52     {
53       # GN version: //components/cryptauth/proto
54       'target_name': 'cryptauth_proto',
55       'type': 'static_library',
56       'sources': [
57         'proximity_auth/cryptauth/proto/cryptauth_api.proto',
58         'proximity_auth/cryptauth/proto/securemessage.proto',
59       ],
60       'variables': {
61         'proto_in_dir': 'proximity_auth/cryptauth/proto',
62         'proto_out_dir': 'components/proximity_auth/cryptauth/proto',
63       },
64       'includes': [ '../build/protoc.gypi' ]
65     },
66     {
67       'target_name': 'cryptauth',
68       'type': 'static_library',
69       'include_dirs': [
70         '..',
71       ],
72       'dependencies': [
73         'cryptauth_proto',
74         '../base/base.gyp:base',
75         '../google_apis/google_apis.gyp:google_apis',
76         '../net/net.gyp:net',
77       ],
78       'sources': [
79         "proximity_auth/cryptauth/base64url.cc",
80         "proximity_auth/cryptauth/base64url.h",
81         "proximity_auth/cryptauth/cryptauth_access_token_fetcher.h",
82         "proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.cc",
83         "proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.h",
84         "proximity_auth/cryptauth/cryptauth_api_call_flow.cc",
85         "proximity_auth/cryptauth/cryptauth_api_call_flow.h",
86         "proximity_auth/cryptauth/cryptauth_client.h",
87         "proximity_auth/cryptauth/cryptauth_client_impl.cc",
88         "proximity_auth/cryptauth/cryptauth_client_impl.h",
89         "proximity_auth/cryptauth/cryptauth_enroller.h",
90         "proximity_auth/cryptauth/cryptauth_enroller_impl.cc",
91         "proximity_auth/cryptauth/cryptauth_enroller_impl.h",
92         "proximity_auth/cryptauth/cryptauth_enrollment_utils.cc",
93         "proximity_auth/cryptauth/cryptauth_enrollment_utils.h",
94         "proximity_auth/cryptauth/secure_message_delegate.cc",
95         "proximity_auth/cryptauth/secure_message_delegate.h",
96       ],
97       'export_dependent_settings': [
98         'cryptauth_proto',
99       ],
100     },
101     {
102       'target_name': 'cryptauth_test_support',
103       'type': 'static_library',
104       'include_dirs': [
105         '..',
106       ],
107       'dependencies': [
108         'cryptauth_proto',
109         '../base/base.gyp:base',
110         '../testing/gmock.gyp:gmock',
111       ],
112       'sources': [
113         "proximity_auth/cryptauth/fake_secure_message_delegate.cc",
114         "proximity_auth/cryptauth/fake_secure_message_delegate.h",
115         "proximity_auth/cryptauth/mock_cryptauth_client.cc",
116         "proximity_auth/cryptauth/mock_cryptauth_client.h",
117       ],
118       'export_dependent_settings': [
119         'cryptauth_proto',
120       ],
121     },
122     {
123       # GN version: //components/proximity_auth/webui
124       'target_name': 'proximity_auth_webui',
125       'type': 'static_library',
126       'dependencies': [
127         '../base/base.gyp:base',
128         '../content/content.gyp:content_browser',
129         'components_resources.gyp:components_resources',
130         'proximity_auth',
131         'cryptauth',
132       ],
133       'include_dirs': [
134         '..',
135       ],
136       'sources': [
137         'proximity_auth/webui/proximity_auth_ui.cc',
138         'proximity_auth/webui/proximity_auth_ui.h',
139         'proximity_auth/webui/proximity_auth_webui_handler.cc',
140         'proximity_auth/webui/proximity_auth_webui_handler.h',
141         'proximity_auth/webui/url_constants.cc',
142         'proximity_auth/webui/url_constants.h',
143       ],
144     },
145   ],