Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: chromecast/media/media.gyp

Issue 1257013003: Load CMA backend from shared library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit test + android fixes Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 'chromecast_branding%': 'Chromium', 8 'chromecast_branding%': 'Chromium',
9 'libcast_media_gyp%': '', 9 'libcast_media_gyp%': '',
10 'use_default_libcast_media%': 1, 10 'use_default_libcast_media%': 1,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 'type': '<(component)', 82 'type': '<(component)',
83 'dependencies': [ 83 'dependencies': [
84 '../chromecast.gyp:cast_base', 84 '../chromecast.gyp:cast_base',
85 '../../base/base.gyp:base', 85 '../../base/base.gyp:base',
86 '../../media/media.gyp:media', 86 '../../media/media.gyp:media',
87 ], 87 ],
88 'include_dirs': [ 88 'include_dirs': [
89 '../..', 89 '../..',
90 ], 90 ],
91 'sources': [ 91 'sources': [
92 'cma/base/backend_client_callbacks.cc',
93 'cma/base/backend_client_callbacks.h',
92 'cma/base/balanced_media_task_runner_factory.cc', 94 'cma/base/balanced_media_task_runner_factory.cc',
93 'cma/base/balanced_media_task_runner_factory.h', 95 'cma/base/balanced_media_task_runner_factory.h',
94 'cma/base/buffering_controller.cc', 96 'cma/base/buffering_controller.cc',
95 'cma/base/buffering_controller.h', 97 'cma/base/buffering_controller.h',
96 'cma/base/buffering_defs.cc', 98 'cma/base/buffering_defs.cc',
97 'cma/base/buffering_defs.h', 99 'cma/base/buffering_defs.h',
98 'cma/base/buffering_frame_provider.cc', 100 'cma/base/buffering_frame_provider.cc',
99 'cma/base/buffering_frame_provider.h', 101 'cma/base/buffering_frame_provider.h',
100 'cma/base/buffering_state.cc', 102 'cma/base/buffering_state.cc',
101 'cma/base/buffering_state.h', 103 'cma/base/buffering_state.h',
102 'cma/base/cma_logging.h', 104 'cma/base/cma_logging.h',
103 'cma/base/coded_frame_provider.cc', 105 'cma/base/coded_frame_provider.cc',
104 'cma/base/coded_frame_provider.h', 106 'cma/base/coded_frame_provider.h',
105 'cma/base/decoder_buffer_adapter.cc', 107 'cma/base/decoder_buffer_adapter.cc',
106 'cma/base/decoder_buffer_adapter.h', 108 'cma/base/decoder_buffer_adapter.h',
107 'cma/base/decoder_buffer_base.cc', 109 'cma/base/decoder_buffer_impl.cc',
108 'cma/base/decoder_buffer_base.h', 110 'cma/base/decoder_buffer_impl.h',
109 'cma/base/decoder_config_adapter.cc', 111 'cma/base/decoder_config_adapter.cc',
110 'cma/base/decoder_config_adapter.h', 112 'cma/base/decoder_config_adapter.h',
113 'cma/base/decrypt_config_impl.cc',
114 'cma/base/decrypt_config_impl.h',
111 'cma/base/media_task_runner.cc', 115 'cma/base/media_task_runner.cc',
112 'cma/base/media_task_runner.h', 116 'cma/base/media_task_runner.h',
113 'cma/base/simple_media_task_runner.cc', 117 'cma/base/simple_media_task_runner.cc',
114 'cma/base/simple_media_task_runner.h', 118 'cma/base/simple_media_task_runner.h',
115 ], 119 ],
116 }, 120 },
117 { 121 {
118 'target_name': 'cma_backend', 122 'target_name': 'default_cma_backend',
119 'type': '<(component)', 123 'type': '<(component)',
120 'dependencies': [ 124 'dependencies': [
121 'cma_base', 125 '../chromecast.gyp:cast_base',
122 'media_base',
123 '../../base/base.gyp:base', 126 '../../base/base.gyp:base',
124 '../../media/media.gyp:media',
125 ], 127 ],
126 'include_dirs': [ 128 'include_dirs': [
127 '../..', 129 '../..',
128 ], 130 ],
129 'sources': [ 131 'sources': [
130 'cma/backend/audio_pipeline_device.cc',
131 'cma/backend/audio_pipeline_device.h',
132 'cma/backend/audio_pipeline_device_default.cc', 132 'cma/backend/audio_pipeline_device_default.cc',
133 'cma/backend/audio_pipeline_device_default.h', 133 'cma/backend/audio_pipeline_device_default.h',
134 'cma/backend/media_clock_device.cc',
135 'cma/backend/media_clock_device.h',
136 'cma/backend/media_clock_device_default.cc', 134 'cma/backend/media_clock_device_default.cc',
137 'cma/backend/media_clock_device_default.h', 135 'cma/backend/media_clock_device_default.h',
138 'cma/backend/media_component_device.cc',
139 'cma/backend/media_component_device.h',
140 'cma/backend/media_component_device_default.cc', 136 'cma/backend/media_component_device_default.cc',
141 'cma/backend/media_component_device_default.h', 137 'cma/backend/media_component_device_default.h',
142 'cma/backend/media_pipeline_device.cc', 138 'cma/backend/media_pipeline_backend_default.cc',
143 'cma/backend/media_pipeline_device.h', 139 'cma/backend/media_pipeline_backend_default.h',
144 'cma/backend/media_pipeline_device_factory.h',
145 'cma/backend/media_pipeline_device_factory_default.cc',
146 'cma/backend/media_pipeline_device_factory_default.h',
147 'cma/backend/media_pipeline_device_params.cc',
148 'cma/backend/media_pipeline_device_params.h',
149 'cma/backend/video_pipeline_device.cc',
150 'cma/backend/video_pipeline_device_default.cc', 140 'cma/backend/video_pipeline_device_default.cc',
151 'cma/backend/video_pipeline_device_default.h', 141 'cma/backend/video_pipeline_device_default.h',
152 'cma/backend/video_pipeline_device.h',
153 ],
154 'conditions': [
155 ['chromecast_branding=="Chrome"', {
156 'dependencies': [
157 '../internal/chromecast_internal.gyp:cma_backend_internal',
158 ],
159 }, {
160 'sources': [
161 'cma/backend/media_pipeline_device_factory_simple.cc'
162 ],
163 }],
164 ], 142 ],
165 }, 143 },
166 { 144 {
167 'target_name': 'cma_ipc', 145 'target_name': 'cma_ipc',
168 'type': '<(component)', 146 'type': '<(component)',
169 'dependencies': [ 147 'dependencies': [
170 '../../base/base.gyp:base', 148 '../../base/base.gyp:base',
171 ], 149 ],
172 'sources': [ 150 'sources': [
173 'cma/ipc/media_memory_chunk.cc', 151 'cma/ipc/media_memory_chunk.cc',
(...skipping 24 matching lines...) Expand all
198 'cma/ipc_streamer/decrypt_config_marshaller.cc', 176 'cma/ipc_streamer/decrypt_config_marshaller.cc',
199 'cma/ipc_streamer/decrypt_config_marshaller.h', 177 'cma/ipc_streamer/decrypt_config_marshaller.h',
200 'cma/ipc_streamer/video_decoder_config_marshaller.cc', 178 'cma/ipc_streamer/video_decoder_config_marshaller.cc',
201 'cma/ipc_streamer/video_decoder_config_marshaller.h', 179 'cma/ipc_streamer/video_decoder_config_marshaller.h',
202 ], 180 ],
203 }, 181 },
204 { 182 {
205 'target_name': 'cma_pipeline', 183 'target_name': 'cma_pipeline',
206 'type': '<(component)', 184 'type': '<(component)',
207 'dependencies': [ 185 'dependencies': [
208 'cma_backend',
209 'cma_base', 186 'cma_base',
210 'media_base', 187 'media_base',
211 'media_cdm', 188 'media_cdm',
212 '../../base/base.gyp:base', 189 '../../base/base.gyp:base',
213 '../../crypto/crypto.gyp:crypto', 190 '../../crypto/crypto.gyp:crypto',
214 '../../media/media.gyp:media', 191 '../../media/media.gyp:media',
215 '../../third_party/boringssl/boringssl.gyp:boringssl', 192 '../../third_party/boringssl/boringssl.gyp:boringssl',
216 ], 193 ],
217 'sources': [ 194 'sources': [
218 'cma/pipeline/audio_pipeline.cc', 195 'cma/pipeline/audio_pipeline.cc',
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 'cma/filters/demuxer_stream_adapter.cc', 230 'cma/filters/demuxer_stream_adapter.cc',
254 'cma/filters/demuxer_stream_adapter.h', 231 'cma/filters/demuxer_stream_adapter.h',
255 'cma/filters/hole_frame_factory.cc', 232 'cma/filters/hole_frame_factory.cc',
256 'cma/filters/hole_frame_factory.h', 233 'cma/filters/hole_frame_factory.h',
257 ], 234 ],
258 }, 235 },
259 { 236 {
260 'target_name': 'cast_media', 237 'target_name': 'cast_media',
261 'type': 'none', 238 'type': 'none',
262 'dependencies': [ 239 'dependencies': [
263 'cma_backend',
264 'cma_base', 240 'cma_base',
265 'cma_filters', 241 'cma_filters',
266 'cma_ipc', 242 'cma_ipc',
267 'cma_ipc_streamer', 243 'cma_ipc_streamer',
268 'cma_pipeline', 244 'cma_pipeline',
245 'default_cma_backend',
269 'media_cdm', 246 'media_cdm',
270 ], 247 ],
271 }, 248 },
272 { 249 {
273 'target_name': 'cast_media_unittests', 250 'target_name': 'cast_media_unittests',
274 'type': '<(gtest_target_type)', 251 'type': '<(gtest_target_type)',
275 'dependencies': [ 252 'dependencies': [
276 'cast_media', 253 'cast_media',
277 '../../base/base.gyp:base', 254 '../../base/base.gyp:base',
278 '../../base/base.gyp:base_i18n', 255 '../../base/base.gyp:base_i18n',
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 ], 291 ],
315 }, 292 },
316 ], # end of targets 293 ], # end of targets
317 'conditions': [ 294 'conditions': [
318 ['use_default_libcast_media==1', { 295 ['use_default_libcast_media==1', {
319 'targets': [ 296 'targets': [
320 { 297 {
321 'target_name': 'libcast_media_1.0', 298 'target_name': 'libcast_media_1.0',
322 'type': 'shared_library', 299 'type': 'shared_library',
323 'dependencies': [ 300 'dependencies': [
324 '../../chromecast/chromecast.gyp:cast_public_api' 301 '../../chromecast/chromecast.gyp:cast_public_api',
302 'default_cma_backend'
325 ], 303 ],
326 'include_dirs': [ 304 'include_dirs': [
327 '../..', 305 '../..',
328 ], 306 ],
329 'sources': [ 307 'sources': [
330 'base/cast_media_default.cc', 308 'base/cast_media_default.cc',
331 ], 309 ],
332 } 310 }
333 ] 311 ]
334 }], 312 }],
335 ], 313 ],
336 } 314 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698