Reword "Send notifications" permission bubble to "Show notifications"
[chromium-blink-merge.git] / chromecast / media / media.gyp
blob3ca9effd2e63cca194a9630030518f1e63de13f8
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/media_task_runner.cc',
96         'cma/base/media_task_runner.h',
97       ],
98     },
99     {
100       'target_name': 'cma_backend',
101       'type': '<(component)',
102       'dependencies': [
103         'cma_base',
104         'media_base',
105         '../../base/base.gyp:base',
106         '../../media/media.gyp:media',
107       ],
108       'include_dirs': [
109         '../..',
110       ],
111       'sources': [
112         'cma/backend/audio_pipeline_device.cc',
113         'cma/backend/audio_pipeline_device.h',
114         'cma/backend/media_clock_device.cc',
115         'cma/backend/media_clock_device.h',
116         'cma/backend/media_component_device.cc',
117         'cma/backend/media_component_device.h',
118         'cma/backend/media_pipeline_device.cc',
119         'cma/backend/media_pipeline_device.h',
120         'cma/backend/media_pipeline_device_fake.cc',
121         'cma/backend/media_pipeline_device_fake.h',
122         'cma/backend/media_pipeline_device_params.cc',
123         'cma/backend/media_pipeline_device_params.h',
124         'cma/backend/video_pipeline_device.cc',
125         'cma/backend/video_pipeline_device.h',
126         'cma/backend/video_plane.cc',
127         'cma/backend/video_plane.h',
128         'cma/backend/video_plane_fake.cc',
129         'cma/backend/video_plane_fake.h',
130       ],
131       'conditions': [
132         ['chromecast_branding=="Chrome"', {
133           'dependencies': [
134             '../internal/chromecast_internal.gyp:cma_backend_internal',
135           ],
136         }, {
137           'sources': [
138             'cma/backend/media_pipeline_device_fake_factory.cc',
139             'cma/backend/video_plane_fake_factory.cc',
140           ],
141         }],
142       ],
143     },
144     {
145       'target_name': 'cma_ipc',
146       'type': '<(component)',
147       'dependencies': [
148         '../../base/base.gyp:base',
149       ],
150       'sources': [
151         'cma/ipc/media_memory_chunk.cc',
152         'cma/ipc/media_memory_chunk.h',
153         'cma/ipc/media_message.cc',
154         'cma/ipc/media_message.h',
155         'cma/ipc/media_message_fifo.cc',
156         'cma/ipc/media_message_fifo.h',
157       ],
158     },
159     {
160       'target_name': 'cma_ipc_streamer',
161       'type': '<(component)',
162       'dependencies': [
163         '../../base/base.gyp:base',
164         '../../media/media.gyp:media',
165         'cma_base',
166       ],
167       'sources': [
168         'cma/ipc_streamer/audio_decoder_config_marshaller.cc',
169         'cma/ipc_streamer/audio_decoder_config_marshaller.h',
170         'cma/ipc_streamer/av_streamer_proxy.cc',
171         'cma/ipc_streamer/av_streamer_proxy.h',
172         'cma/ipc_streamer/coded_frame_provider_host.cc',
173         'cma/ipc_streamer/coded_frame_provider_host.h',
174         'cma/ipc_streamer/decoder_buffer_base_marshaller.cc',
175         'cma/ipc_streamer/decoder_buffer_base_marshaller.h',
176         'cma/ipc_streamer/decrypt_config_marshaller.cc',
177         'cma/ipc_streamer/decrypt_config_marshaller.h',
178         'cma/ipc_streamer/video_decoder_config_marshaller.cc',
179         'cma/ipc_streamer/video_decoder_config_marshaller.h',
180       ],
181     },
182     {
183       'target_name': 'cma_pipeline',
184       'type': '<(component)',
185       'dependencies': [
186         'cma_backend',
187         'cma_base',
188         'media_base',
189         'media_cdm',
190         '../../base/base.gyp:base',
191         '../../crypto/crypto.gyp:crypto',
192         '../../media/media.gyp:media',
193       ],
194       'conditions': [
195         ['chromecast_branding=="Chrome"', {
196           'dependencies': [
197             '../internal/cast_system.gyp:openssl',
198           ],
199         }, {
200           'dependencies': [
201             '../../third_party/boringssl/boringssl.gyp:boringssl',
202           ],
203         }],
204       ],
205       'sources': [
206         'cma/pipeline/audio_pipeline.cc',
207         'cma/pipeline/audio_pipeline.h',
208         'cma/pipeline/audio_pipeline_impl.cc',
209         'cma/pipeline/audio_pipeline_impl.h',
210         'cma/pipeline/av_pipeline_client.cc',
211         'cma/pipeline/av_pipeline_client.h',
212         'cma/pipeline/av_pipeline_impl.cc',
213         'cma/pipeline/av_pipeline_impl.h',
214         'cma/pipeline/decrypt_util.cc',
215         'cma/pipeline/decrypt_util.h',
216         'cma/pipeline/load_type.h',
217         'cma/pipeline/media_pipeline.h',
218         'cma/pipeline/media_pipeline_client.cc',
219         'cma/pipeline/media_pipeline_client.h',
220         'cma/pipeline/media_pipeline_impl.cc',
221         'cma/pipeline/media_pipeline_impl.h',
222         'cma/pipeline/video_pipeline.cc',
223         'cma/pipeline/video_pipeline.h',
224         'cma/pipeline/video_pipeline_client.cc',
225         'cma/pipeline/video_pipeline_client.h',
226         'cma/pipeline/video_pipeline_impl.cc',
227         'cma/pipeline/video_pipeline_impl.h',
228       ],
229     },
230     {
231       'target_name': 'cma_filters',
232       'type': '<(component)',
233       'dependencies': [
234         '../../base/base.gyp:base',
235         '../../media/media.gyp:media',
236         'cma_base',
237       ],
238       'sources': [
239         'cma/filters/cma_renderer.cc',
240         'cma/filters/cma_renderer.h',
241         'cma/filters/demuxer_stream_adapter.cc',
242         'cma/filters/demuxer_stream_adapter.h',
243       ],
244     },
245     {
246       'target_name': 'cast_media',
247       'type': 'none',
248       'dependencies': [
249         'cma_backend',
250         'cma_base',
251         'cma_filters',
252         'cma_ipc',
253         'cma_ipc_streamer',
254         'cma_pipeline',
255         'media_cdm',
256       ],
257     },
258     {
259       'target_name': 'cast_media_unittests',
260       'type': '<(gtest_target_type)',
261       'dependencies': [
262         'cast_media',
263         '../../base/base.gyp:base',
264         '../../base/base.gyp:base_i18n',
265         '../../base/base.gyp:test_support_base',
266         '../../chromecast/chromecast.gyp:cast_metrics_test_support',
267         '../../media/media.gyp:media_test_support',
268         '../../testing/gmock.gyp:gmock',
269         '../../testing/gtest.gyp:gtest',
270         '../../testing/gtest.gyp:gtest_main',
271       ],
272       'sources': [
273         'cma/backend/audio_video_pipeline_device_unittest.cc',
274         'cma/base/balanced_media_task_runner_unittest.cc',
275         'cma/base/buffering_controller_unittest.cc',
276         'cma/base/buffering_frame_provider_unittest.cc',
277         'cma/filters/demuxer_stream_adapter_unittest.cc',
278         'cma/ipc/media_message_fifo_unittest.cc',
279         'cma/ipc/media_message_unittest.cc',
280         'cma/ipc_streamer/av_streamer_unittest.cc',
281         'cma/pipeline/audio_video_pipeline_impl_unittest.cc',
282         'cma/test/frame_generator_for_test.cc',
283         'cma/test/frame_generator_for_test.h',
284         'cma/test/frame_segmenter_for_test.cc',
285         'cma/test/frame_segmenter_for_test.h',
286         'cma/test/media_component_device_feeder_for_test.cc',
287         'cma/test/media_component_device_feeder_for_test.h',
288         'cma/test/mock_frame_consumer.cc',
289         'cma/test/mock_frame_consumer.h',
290         'cma/test/mock_frame_provider.cc',
291         'cma/test/mock_frame_provider.h',
292         'cma/test/run_all_unittests.cc',
293       ],
294     },
295   ],