Reland issue 671513010 check sync themes setting patch.
[chromium-blink-merge.git] / components / copresence.gypi
blob0f635e323667a2f7989ce27326e5e1aa66b38c8f
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.cc',
25         'copresence/copresence_manager_impl.cc',
26         'copresence/copresence_switches.cc',
27         'copresence/copresence_switches.h',
28         'copresence/handlers/audio/audio_directive_handler.cc',
29         'copresence/handlers/audio/audio_directive_handler.h',
30         'copresence/handlers/audio/audio_directive_list.cc',
31         'copresence/handlers/audio/audio_directive_list.h',
32         'copresence/handlers/audio/tick_clock_ref_counted.cc',
33         'copresence/handlers/audio/tick_clock_ref_counted.h',
34         'copresence/handlers/directive_handler.cc',
35         'copresence/handlers/directive_handler.h',
36         'copresence/mediums/audio/audio_manager.h',
37         'copresence/mediums/audio/audio_manager_impl.cc',
38         'copresence/mediums/audio/audio_manager_impl.h',
39         'copresence/mediums/audio/audio_player.h',
40         'copresence/mediums/audio/audio_player_impl.cc',
41         'copresence/mediums/audio/audio_player_impl.h',
42         'copresence/mediums/audio/audio_recorder.h',
43         'copresence/mediums/audio/audio_recorder_impl.cc',
44         'copresence/mediums/audio/audio_recorder_impl.h',
45         'copresence/public/copresence_constants.h',
46         'copresence/public/copresence_delegate.h',
47         'copresence/public/copresence_manager.h',
48         'copresence/public/whispernet_client.h',
49         'copresence/rpc/http_post.cc',
50         'copresence/rpc/http_post.h',
51         'copresence/rpc/rpc_handler.cc',
52         'copresence/rpc/rpc_handler.h',
53         'copresence/timed_map.h',
54       ],
55       'export_dependent_settings': [
56         'copresence_proto',
57       ],
58     },
59     {
60       'target_name': 'copresence_test_support',
61       'type': 'static_library',
62       'include_dirs': [
63         '..',
64       ],
65       'sources': [
66         'copresence/test/audio_test_support.cc',
67         'copresence/test/audio_test_support.h',
68       ],
69     },
70     {
71       # Protobuf compiler / generate rule for copresence.
72       # GN version: //components/copresence/proto
73       # Note: These protos are auto-generated from the protos of the
74       # Copresence server. Currently this strips all formatting and comments
75       # but makes sure that we are always using up to date protos.
76       'target_name': 'copresence_proto',
77       'type': 'static_library',
78       'sources': [
79         'copresence/proto/codes.proto',
80         'copresence/proto/data.proto',
81         'copresence/proto/enums.proto',
82         'copresence/proto/identity.proto',
83         'copresence/proto/rpcs.proto',
84       ],
85       'variables': {
86         'proto_in_dir': 'copresence/proto',
87         'proto_out_dir': 'components/copresence/proto',
88       },
89       'includes': [ '../build/protoc.gypi' ]
90     },
91   ],