Make Data Reduction Proxy a best effort proxy
[chromium-blink-merge.git] / components / copresence.gypi
blob12355e0d7771bea0e8c547ffc8d2b4896fda3277
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': 'copresence',
9       'type': 'static_library',
10       'dependencies': [
11         '../base/base.gyp:base',
12         '../content/content.gyp:content_common',
13         '../media/media.gyp:media',
14         '../media/media.gyp:shared_memory_support',
15         '../net/net.gyp:net',
16         'copresence_proto',
17       ],
18       'include_dirs': [
19         '..',
20       ],
21       'sources': [
22         # Note: sources list duplicated in GN build.
23         'copresence/copresence_constants.cc',
24         'copresence/copresence_manager_impl.cc',
25         'copresence/copresence_state_impl.cc',
26         'copresence/copresence_state_impl.h',
27         'copresence/copresence_switches.cc',
28         'copresence/copresence_switches.h',
29         'copresence/handlers/audio/audio_directive_handler.h',
30         'copresence/handlers/audio/audio_directive_handler_impl.cc',
31         'copresence/handlers/audio/audio_directive_handler_impl.h',
32         'copresence/handlers/audio/audio_directive_list.cc',
33         'copresence/handlers/audio/audio_directive_list.h',
34         'copresence/handlers/audio/tick_clock_ref_counted.cc',
35         'copresence/handlers/audio/tick_clock_ref_counted.h',
36         'copresence/handlers/directive_handler.h',
37         'copresence/handlers/directive_handler_impl.cc',
38         'copresence/handlers/directive_handler_impl.h',
39         'copresence/handlers/gcm_handler.h',
40         'copresence/handlers/gcm_handler_impl.cc',
41         'copresence/handlers/gcm_handler_impl.h',
42         'copresence/mediums/audio/audio_manager.h',
43         'copresence/mediums/audio/audio_manager_impl.cc',
44         'copresence/mediums/audio/audio_manager_impl.h',
45         'copresence/mediums/audio/audio_player.h',
46         'copresence/mediums/audio/audio_player_impl.cc',
47         'copresence/mediums/audio/audio_player_impl.h',
48         'copresence/mediums/audio/audio_recorder.h',
49         'copresence/mediums/audio/audio_recorder_impl.cc',
50         'copresence/mediums/audio/audio_recorder_impl.h',
51         'copresence/public/copresence_constants.h',
52         'copresence/public/copresence_delegate.h',
53         'copresence/public/copresence_manager.h',
54         'copresence/public/copresence_observer.h',
55         'copresence/public/copresence_state.h',
56         'copresence/public/whispernet_client.h',
57         'copresence/rpc/http_post.cc',
58         'copresence/rpc/http_post.h',
59         'copresence/rpc/rpc_handler.cc',
60         'copresence/rpc/rpc_handler.h',
61         'copresence/timed_map.h',
62         'copresence/tokens.cc',
63         'copresence/tokens.h',
64       ],
65       'export_dependent_settings': [
66         'copresence_proto',
67       ],
68     },
69     {
70       'target_name': 'copresence_test_support',
71       'type': 'static_library',
72       'dependencies': [
73         'copresence_proto',
74       ],
75       'include_dirs': [
76         '..',
77       ],
78       'sources': [
79         'copresence/test/audio_test_support.cc',
80         'copresence/test/audio_test_support.h',
81         'copresence/test/fake_directive_handler.cc',
82         'copresence/test/fake_directive_handler.h',
83         'copresence/test/stub_whispernet_client.cc',
84         'copresence/test/stub_whispernet_client.h',
85       ],
86       'export_dependent_settings': [
87         'copresence_proto',
88       ],
89     },
90     {
91       # Protobuf compiler / generate rule for copresence.
92       # GN version: //components/copresence/proto
93       # Note: These protos are auto-generated from the protos of the
94       # Copresence server. Currently this strips all formatting and comments
95       # but makes sure that we are always using up to date protos.
96       'target_name': 'copresence_proto',
97       'type': 'static_library',
98       'sources': [
99         'copresence/proto/codes.proto',
100         'copresence/proto/config_data.proto',
101         'copresence/proto/data.proto',
102         'copresence/proto/enums.proto',
103         'copresence/proto/identity.proto',
104         'copresence/proto/push_message.proto',
105         'copresence/proto/rpcs.proto',
106       ],
107       'variables': {
108         'proto_in_dir': 'copresence/proto',
109         'proto_out_dir': 'components/copresence/proto',
110       },
111       'includes': [ '../build/protoc.gypi' ]
112     },
113   ],