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