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