Allow only one bookmark to be added for multiple fast starring
[chromium-blink-merge.git] / components / copresence.gypi
blob2aaf6f72256e63daa78bc19598527db3a9838dcf
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         '../net/net.gyp:net',
13         '../third_party/webrtc/common_audio/common_audio.gyp:common_audio',
14         'audio_modem',
15         'copresence_proto',
16       ],
17       'include_dirs': [
18         '..',
19       ],
20       'sources': [
21         # Note: sources list duplicated in GN build.
22         'copresence/copresence_manager_impl.cc',
23         'copresence/copresence_state_impl.cc',
24         'copresence/copresence_state_impl.h',
25         'copresence/copresence_switches.cc',
26         'copresence/copresence_switches.h',
27         'copresence/handlers/audio/audio_directive_handler.h',
28         'copresence/handlers/audio/audio_directive_handler_impl.cc',
29         'copresence/handlers/audio/audio_directive_handler_impl.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.h',
35         'copresence/handlers/directive_handler_impl.cc',
36         'copresence/handlers/directive_handler_impl.h',
37         'copresence/handlers/gcm_handler.h',
38         'copresence/handlers/gcm_handler_impl.cc',
39         'copresence/handlers/gcm_handler_impl.h',
40         'copresence/public/copresence_constants.h',
41         'copresence/public/copresence_delegate.h',
42         'copresence/public/copresence_manager.h',
43         'copresence/public/copresence_observer.h',
44         'copresence/public/copresence_state.h',
45         'copresence/rpc/http_post.cc',
46         'copresence/rpc/http_post.h',
47         'copresence/rpc/rpc_handler.cc',
48         'copresence/rpc/rpc_handler.h',
49         'copresence/timed_map.h',
50         'copresence/tokens.cc',
51         'copresence/tokens.h',
52       ],
53       'export_dependent_settings': [
54         'copresence_proto',
55       ],
56     },
57     {
58       'target_name': 'copresence_test_support',
59       'type': 'static_library',
60       'dependencies': [
61         'copresence_proto',
62       ],
63       'include_dirs': [
64         '..',
65       ],
66       'sources': [
67         'copresence/test/fake_directive_handler.cc',
68         'copresence/test/fake_directive_handler.h',
69       ],
70       'export_dependent_settings': [
71         'copresence_proto',
72       ],
73     },
74     {
75       # Protobuf compiler / generate rule for copresence.
76       # GN version: //components/copresence/proto
77       # Note: These protos are auto-generated from the protos of the
78       # Copresence server. Currently this strips all formatting and comments
79       # but makes sure that we are always using up to date protos.
80       'target_name': 'copresence_proto',
81       'type': 'static_library',
82       'sources': [
83         'copresence/proto/codes.proto',
84         'copresence/proto/config_data.proto',
85         'copresence/proto/data.proto',
86         'copresence/proto/enums.proto',
87         'copresence/proto/identity.proto',
88         'copresence/proto/push_message.proto',
89         'copresence/proto/rpcs.proto',
90       ],
91       'variables': {
92         'proto_in_dir': 'copresence/proto',
93         'proto_out_dir': 'components/copresence/proto',
94       },
95       'includes': [ '../build/protoc.gypi' ]
96     },
97   ],