Android Chromoting: Remove exit-fullscreen button.
[chromium-blink-merge.git] / chromecast / media / media.gyp
blob805f9e8ea3dc230cb309735f42863fd867553dc1
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   'variables': {
7     'chromecast_branding%': 'Chromium',
8   },
9   'targets': [
10     {
11       'target_name': 'media_base',
12       'type': '<(component)',
13       'dependencies': [
14         '../../base/base.gyp:base',
15         '../../crypto/crypto.gyp:crypto',
16         '../../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
17       ],
18       'sources': [
19         'base/decrypt_context.cc',
20         'base/decrypt_context.h',
21         'base/decrypt_context_clearkey.cc',
22         'base/decrypt_context_clearkey.h',
23         'base/key_systems_common.cc',
24         'base/key_systems_common.h',
25         'base/media_caps.cc',
26         'base/media_caps.h',
27         'base/switching_media_renderer.cc',
28         'base/switching_media_renderer.h',
29       ],
30       'conditions': [
31         ['chromecast_branding=="Chrome"', {
32           'dependencies': [
33             '../internal/chromecast_internal.gyp:media_base_internal',
34           ],
35         }, {
36           'sources': [
37             'base/key_systems_common_simple.cc',
38           ],
39         }],
40       ],
41     },
42     {
43       'target_name': 'media_cdm',
44       'type': '<(component)',
45       'dependencies': [
46         'media_base',
47         '../../base/base.gyp:base',
48         '../../media/media.gyp:media',
49       ],
50       'sources': [
51         'cdm/browser_cdm_cast.cc',
52         'cdm/browser_cdm_cast.h',
53       ],
54     },
55     {
56       'target_name': 'cma_base',
57       'type': '<(component)',
58       'dependencies': [
59         '../chromecast.gyp:cast_base',
60         '../../base/base.gyp:base',
61         '../../media/media.gyp:media',
62       ],
63       'include_dirs': [
64         '../..',
65       ],
66       'sources': [
67         'cma/base/balanced_media_task_runner_factory.cc',
68         'cma/base/balanced_media_task_runner_factory.h',
69         'cma/base/buffering_controller.cc',
70         'cma/base/buffering_controller.h',
71         'cma/base/buffering_defs.cc',
72         'cma/base/buffering_defs.h',
73         'cma/base/buffering_frame_provider.cc',
74         'cma/base/buffering_frame_provider.h',
75         'cma/base/buffering_state.cc',
76         'cma/base/buffering_state.h',
77         'cma/base/cma_logging.h',
78         'cma/base/coded_frame_provider.cc',
79         'cma/base/coded_frame_provider.h',
80         'cma/base/decoder_buffer_adapter.cc',
81         'cma/base/decoder_buffer_adapter.h',
82         'cma/base/decoder_buffer_base.cc',
83         'cma/base/decoder_buffer_base.h',
84         'cma/base/media_task_runner.cc',
85         'cma/base/media_task_runner.h',
86       ],
87     },
88     {
89       'target_name': 'cma_backend',
90       'type': '<(component)',
91       'dependencies': [
92         'cma_base',
93         'media_base',
94         '../../base/base.gyp:base',
95         '../../media/media.gyp:media',
96       ],
97       'include_dirs': [
98         '../..',
99       ],
100       'sources': [
101         'cma/backend/audio_pipeline_device.cc',
102         'cma/backend/audio_pipeline_device.h',
103         'cma/backend/media_clock_device.cc',
104         'cma/backend/media_clock_device.h',
105         'cma/backend/media_component_device.cc',
106         'cma/backend/media_component_device.h',
107         'cma/backend/media_pipeline_device.cc',
108         'cma/backend/media_pipeline_device.h',
109         'cma/backend/media_pipeline_device_fake.cc',
110         'cma/backend/media_pipeline_device_fake.h',
111         'cma/backend/media_pipeline_device_params.cc',
112         'cma/backend/media_pipeline_device_params.h',
113         'cma/backend/video_pipeline_device.cc',
114         'cma/backend/video_pipeline_device.h',
115         'cma/backend/video_plane.cc',
116         'cma/backend/video_plane.h',
117         'cma/backend/video_plane_fake.cc',
118         'cma/backend/video_plane_fake.h',
119       ],
120       'conditions': [
121         ['chromecast_branding=="Chrome"', {
122           'dependencies': [
123             '../internal/chromecast_internal.gyp:cma_backend_internal',
124           ],
125         }, {
126           'sources': [
127             'cma/backend/media_pipeline_device_fake_factory.cc',
128             'cma/backend/video_plane_fake_factory.cc',
129           ],
130         }],
131       ],
132     },
133     {
134       'target_name': 'cma_ipc',
135       'type': '<(component)',
136       'dependencies': [
137         '../../base/base.gyp:base',
138       ],
139       'sources': [
140         'cma/ipc/media_memory_chunk.cc',
141         'cma/ipc/media_memory_chunk.h',
142         'cma/ipc/media_message.cc',
143         'cma/ipc/media_message.h',
144         'cma/ipc/media_message_fifo.cc',
145         'cma/ipc/media_message_fifo.h',
146       ],
147     },
148     {
149       'target_name': 'cma_ipc_streamer',
150       'type': '<(component)',
151       'dependencies': [
152         '../../base/base.gyp:base',
153         '../../media/media.gyp:media',
154         'cma_base',
155       ],
156       'sources': [
157         'cma/ipc_streamer/audio_decoder_config_marshaller.cc',
158         'cma/ipc_streamer/audio_decoder_config_marshaller.h',
159         'cma/ipc_streamer/av_streamer_proxy.cc',
160         'cma/ipc_streamer/av_streamer_proxy.h',
161         'cma/ipc_streamer/coded_frame_provider_host.cc',
162         'cma/ipc_streamer/coded_frame_provider_host.h',
163         'cma/ipc_streamer/decoder_buffer_base_marshaller.cc',
164         'cma/ipc_streamer/decoder_buffer_base_marshaller.h',
165         'cma/ipc_streamer/decrypt_config_marshaller.cc',
166         'cma/ipc_streamer/decrypt_config_marshaller.h',
167         'cma/ipc_streamer/video_decoder_config_marshaller.cc',
168         'cma/ipc_streamer/video_decoder_config_marshaller.h',
169       ],
170     },
171     {
172       'target_name': 'cma_pipeline',
173       'type': '<(component)',
174       'dependencies': [
175         'cma_backend',
176         'cma_base',
177         'media_base',
178         'media_cdm',
179         '../../base/base.gyp:base',
180         '../../crypto/crypto.gyp:crypto',
181         '../../media/media.gyp:media',
182       ],
183       'conditions': [
184         ['chromecast_branding=="Chrome"', {
185           'dependencies': [
186             '../internal/cast_system.gyp:openssl',
187           ],
188         }, {
189           'dependencies': [
190             '../../third_party/boringssl/boringssl.gyp:boringssl',
191           ],
192         }],
193       ],
194       'sources': [
195         'cma/pipeline/audio_pipeline.cc',
196         'cma/pipeline/audio_pipeline.h',
197         'cma/pipeline/audio_pipeline_impl.cc',
198         'cma/pipeline/audio_pipeline_impl.h',
199         'cma/pipeline/av_pipeline_client.cc',
200         'cma/pipeline/av_pipeline_client.h',
201         'cma/pipeline/av_pipeline_impl.cc',
202         'cma/pipeline/av_pipeline_impl.h',
203         'cma/pipeline/decrypt_util.cc',
204         'cma/pipeline/decrypt_util.h',
205         'cma/pipeline/load_type.h',
206         'cma/pipeline/media_pipeline.h',
207         'cma/pipeline/media_pipeline_client.cc',
208         'cma/pipeline/media_pipeline_client.h',
209         'cma/pipeline/media_pipeline_impl.cc',
210         'cma/pipeline/media_pipeline_impl.h',
211         'cma/pipeline/video_pipeline.cc',
212         'cma/pipeline/video_pipeline.h',
213         'cma/pipeline/video_pipeline_client.cc',
214         'cma/pipeline/video_pipeline_client.h',
215         'cma/pipeline/video_pipeline_impl.cc',
216         'cma/pipeline/video_pipeline_impl.h',
217       ],
218     },
219     {
220       'target_name': 'cma_filters',
221       'type': '<(component)',
222       'dependencies': [
223         '../../base/base.gyp:base',
224         '../../media/media.gyp:media',
225         'cma_base',
226       ],
227       'sources': [
228         'cma/filters/cma_renderer.cc',
229         'cma/filters/cma_renderer.h',
230         'cma/filters/demuxer_stream_adapter.cc',
231         'cma/filters/demuxer_stream_adapter.h',
232       ],
233     },
234     {
235       'target_name': 'cast_media',
236       'type': 'none',
237       'dependencies': [
238         'cma_backend',
239         'cma_base',
240         'cma_filters',
241         'cma_ipc',
242         'cma_ipc_streamer',
243         'cma_pipeline',
244         'media_cdm',
245       ],
246     },
247     {
248       'target_name': 'cast_media_unittests',
249       'type': '<(gtest_target_type)',
250       'dependencies': [
251         'cast_media',
252         '../../base/base.gyp:base',
253         '../../base/base.gyp:base_i18n',
254         '../../base/base.gyp:test_support_base',
255         '../../chromecast/chromecast.gyp:cast_metrics_test_support',
256         '../../media/media.gyp:media_test_support',
257         '../../testing/gmock.gyp:gmock',
258         '../../testing/gtest.gyp:gtest',
259         '../../testing/gtest.gyp:gtest_main',
260       ],
261       'sources': [
262         'cma/backend/audio_video_pipeline_device_unittest.cc',
263         'cma/base/balanced_media_task_runner_unittest.cc',
264         'cma/base/buffering_controller_unittest.cc',
265         'cma/base/buffering_frame_provider_unittest.cc',
266         'cma/filters/demuxer_stream_adapter_unittest.cc',
267         'cma/ipc/media_message_fifo_unittest.cc',
268         'cma/ipc/media_message_unittest.cc',
269         'cma/ipc_streamer/av_streamer_unittest.cc',
270         'cma/pipeline/audio_video_pipeline_impl_unittest.cc',
271         'cma/test/frame_generator_for_test.cc',
272         'cma/test/frame_generator_for_test.h',
273         'cma/test/frame_segmenter_for_test.cc',
274         'cma/test/frame_segmenter_for_test.h',
275         'cma/test/media_component_device_feeder_for_test.cc',
276         'cma/test/media_component_device_feeder_for_test.h',
277         'cma/test/mock_frame_consumer.cc',
278         'cma/test/mock_frame_consumer.h',
279         'cma/test/mock_frame_provider.cc',
280         'cma/test/mock_frame_provider.h',
281         'cma/test/run_all_unittests.cc',
282       ],
283     },
284   ],