Move gn build file for sfntly from secondary tree into the main tree.
[chromium-blink-merge.git] / components / proximity_auth.gypi
blobc4e250327aac7867336681217fe72bf3640f0094
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_util.cc",
24         "proximity_auth/bluetooth_util.h",
25         "proximity_auth/bluetooth_util_chromeos.cc",
26         "proximity_auth/client.cc",
27         "proximity_auth/client.h",
28         "proximity_auth/client_observer.h",
29         "proximity_auth/connection.cc",
30         "proximity_auth/connection.h",
31         "proximity_auth/connection_finder.h",
32         "proximity_auth/connection_observer.h",
33         "proximity_auth/proximity_auth_system.cc",
34         "proximity_auth/proximity_auth_system.h",
35         "proximity_auth/remote_device.h",
36         "proximity_auth/remote_status_update.cc",
37         "proximity_auth/remote_status_update.h",
38         "proximity_auth/secure_context.h",
39         "proximity_auth/switches.cc",
40         "proximity_auth/switches.h",
41         "proximity_auth/wire_message.cc",
42         "proximity_auth/wire_message.h",
43       ],
44     },
45     {
46       # GN version: //components/cryptauth/proto
47       'target_name': 'cryptauth_proto',
48       'type': 'static_library',
49       'sources': [
50         'proximity_auth/cryptauth/proto/cryptauth_api.proto',
51         'proximity_auth/cryptauth/proto/securemessage.proto',
52       ],
53       'variables': {
54         'proto_in_dir': 'proximity_auth/cryptauth/proto',
55         'proto_out_dir': 'components/proximity_auth/cryptauth/proto',
56       },
57       'includes': [ '../build/protoc.gypi' ]
58     },
59     {
60       'target_name': 'cryptauth',
61       'type': 'static_library',
62       'include_dirs': [
63         '..',
64       ],
65       'dependencies': [
66         'cryptauth_proto',
67         '../base/base.gyp:base',
68         '../google_apis/google_apis.gyp:google_apis',
69         '../net/net.gyp:net',
70       ],
71       'sources': [
72         "proximity_auth/cryptauth/base64url.cc",
73         "proximity_auth/cryptauth/base64url.h",
74         "proximity_auth/cryptauth/cryptauth_access_token_fetcher.h",
75         "proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.cc",
76         "proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.h",
77         "proximity_auth/cryptauth/cryptauth_api_call_flow.cc",
78         "proximity_auth/cryptauth/cryptauth_api_call_flow.h",
79         "proximity_auth/cryptauth/cryptauth_client.h",
80         "proximity_auth/cryptauth/cryptauth_client_impl.cc",
81         "proximity_auth/cryptauth/cryptauth_client_impl.h",
82         "proximity_auth/cryptauth/cryptauth_enroller.h",
83         "proximity_auth/cryptauth/cryptauth_enroller_impl.cc",
84         "proximity_auth/cryptauth/cryptauth_enroller_impl.h",
85         "proximity_auth/cryptauth/cryptauth_enrollment_utils.cc",
86         "proximity_auth/cryptauth/cryptauth_enrollment_utils.h",
87         "proximity_auth/cryptauth/secure_message_delegate.cc",
88         "proximity_auth/cryptauth/secure_message_delegate.h",
89       ],
90       'export_dependent_settings': [
91         'cryptauth_proto',
92       ],
93     },
94     {
95       'target_name': 'cryptauth_test_support',
96       'type': 'static_library',
97       'include_dirs': [
98         '..',
99       ],
100       'dependencies': [
101         'cryptauth_proto',
102         '../base/base.gyp:base',
103         '../testing/gmock.gyp:gmock',
104       ],
105       'sources': [
106         "proximity_auth/cryptauth/fake_secure_message_delegate.cc",
107         "proximity_auth/cryptauth/fake_secure_message_delegate.h",
108         "proximity_auth/cryptauth/mock_cryptauth_client.cc",
109         "proximity_auth/cryptauth/mock_cryptauth_client.h",
110       ],
111       'export_dependent_settings': [
112         'cryptauth_proto',
113       ],
114     },
115   ],