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

Side by Side Diff: media/media.gyp

Issue 1225123006: media/capture: Adding WebmMuxer class and unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@m_crbug262211__MSRecorder__2__libwebm_reland_in_third_party
Patch Set: Created 5 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 # Override to dynamically link the cras (ChromeOS audio) library. 8 # Override to dynamically link the cras (ChromeOS audio) library.
9 'use_cras%': 0, 9 'use_cras%': 0,
10 # Option e.g. for Linux distributions to link pulseaudio directly 10 # Option e.g. for Linux distributions to link pulseaudio directly
11 # (DT_NEEDED) instead of using dlopen. This helps with automated 11 # (DT_NEEDED) instead of using dlopen. This helps with automated
12 # detection of ABI mismatches and prevents silent errors. 12 # detection of ABI mismatches and prevents silent errors.
13 'linux_link_pulseaudio%': 0, 13 'linux_link_pulseaudio%': 0,
14 'conditions': [ 14 'conditions': [
15 ['OS=="android" or OS=="ios"', { 15 ['OS=="android" or OS=="ios"', {
16 # Android and iOS don't use ffmpeg or libvpx. 16 # Android and iOS don't use ffmpeg or libvpx.
17 'media_use_ffmpeg%': 0, 17 'media_use_ffmpeg%': 0,
18 'media_use_libvpx%': 0, 18 'media_use_libvpx%': 0,
19 'media_use_libwebm%': 0,
19 }, { # 'OS!="android" and OS!="ios"' 20 }, { # 'OS!="android" and OS!="ios"'
20 'media_use_ffmpeg%': 1, 21 'media_use_ffmpeg%': 1,
21 'media_use_libvpx%': 1, 22 'media_use_libvpx%': 1,
23 'media_use_libwebm%': 1,
22 }], 24 }],
23 # Enable ALSA and Pulse for runtime selection. 25 # Enable ALSA and Pulse for runtime selection.
24 ['(OS=="linux" or OS=="freebsd" or OS=="solaris") and (embedded!=1 or (chr omecast==1 and target_arch!="arm"))', { 26 ['(OS=="linux" or OS=="freebsd" or OS=="solaris") and (embedded!=1 or (chr omecast==1 and target_arch!="arm"))', {
25 # ALSA is always needed for Web MIDI even if the cras is enabled. 27 # ALSA is always needed for Web MIDI even if the cras is enabled.
26 'use_alsa%': 1, 28 'use_alsa%': 1,
27 'conditions': [ 29 'conditions': [
28 ['use_cras==1', { 30 ['use_cras==1', {
29 'use_pulseaudio%': 0, 31 'use_pulseaudio%': 0,
30 }, { 32 }, {
31 'use_pulseaudio%': 1, 33 'use_pulseaudio%': 1,
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 'base/byte_queue.cc', 255 'base/byte_queue.cc',
254 'base/byte_queue.h', 256 'base/byte_queue.h',
255 'base/cdm_callback_promise.cc', 257 'base/cdm_callback_promise.cc',
256 'base/cdm_callback_promise.h', 258 'base/cdm_callback_promise.h',
257 'base/cdm_config.h', 259 'base/cdm_config.h',
258 'base/cdm_context.cc', 260 'base/cdm_context.cc',
259 'base/cdm_context.h', 261 'base/cdm_context.h',
260 'base/cdm_factory.cc', 262 'base/cdm_factory.cc',
261 'base/cdm_factory.h', 263 'base/cdm_factory.h',
262 'base/cdm_initialized_promise.cc', 264 'base/cdm_initialized_promise.cc',
263 'base/cdm_initialized_promise.h', 265 'base/cdm_initialized_promise.h',
264 'base/cdm_key_information.cc', 266 'base/cdm_key_information.cc',
265 'base/cdm_key_information.h', 267 'base/cdm_key_information.h',
266 'base/cdm_promise.cc', 268 'base/cdm_promise.cc',
267 'base/cdm_promise.h', 269 'base/cdm_promise.h',
268 'base/cdm_promise_adapter.cc', 270 'base/cdm_promise_adapter.cc',
269 'base/cdm_promise_adapter.h', 271 'base/cdm_promise_adapter.h',
270 'base/channel_mixer.cc', 272 'base/channel_mixer.cc',
271 'base/channel_mixer.h', 273 'base/channel_mixer.h',
272 'base/channel_mixing_matrix.cc', 274 'base/channel_mixing_matrix.cc',
273 'base/channel_mixing_matrix.h', 275 'base/channel_mixing_matrix.h',
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 'filters/video_cadence_estimator.cc', 497 'filters/video_cadence_estimator.cc',
496 'filters/video_cadence_estimator.h', 498 'filters/video_cadence_estimator.h',
497 'filters/video_renderer_algorithm.cc', 499 'filters/video_renderer_algorithm.cc',
498 'filters/video_renderer_algorithm.h', 500 'filters/video_renderer_algorithm.h',
499 'filters/vp8_bool_decoder.cc', 501 'filters/vp8_bool_decoder.cc',
500 'filters/vp8_bool_decoder.h', 502 'filters/vp8_bool_decoder.h',
501 'filters/vp8_parser.cc', 503 'filters/vp8_parser.cc',
502 'filters/vp8_parser.h', 504 'filters/vp8_parser.h',
503 'filters/vpx_video_decoder.cc', 505 'filters/vpx_video_decoder.cc',
504 'filters/vpx_video_decoder.h', 506 'filters/vpx_video_decoder.h',
507 'filters/webm_muxer.cc',
508 'filters/webm_muxer.h',
505 'filters/webvtt_util.h', 509 'filters/webvtt_util.h',
506 'filters/wsola_internals.cc', 510 'filters/wsola_internals.cc',
507 'filters/wsola_internals.h', 511 'filters/wsola_internals.h',
508 'formats/common/offset_byte_queue.cc', 512 'formats/common/offset_byte_queue.cc',
509 'formats/common/offset_byte_queue.h', 513 'formats/common/offset_byte_queue.h',
510 'formats/webm/webm_audio_client.cc', 514 'formats/webm/webm_audio_client.cc',
511 'formats/webm/webm_audio_client.h', 515 'formats/webm/webm_audio_client.h',
512 'formats/webm/webm_cluster_parser.cc', 516 'formats/webm/webm_cluster_parser.cc',
513 'formats/webm/webm_cluster_parser.h', 517 'formats/webm/webm_cluster_parser.h',
514 'formats/webm/webm_constants.cc', 518 'formats/webm/webm_constants.cc',
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 'defines': [ 686 'defines': [
683 'MEDIA_DISABLE_LIBVPX', 687 'MEDIA_DISABLE_LIBVPX',
684 ], 688 ],
685 }, 689 },
686 # Exclude the sources that depend on libvpx. 690 # Exclude the sources that depend on libvpx.
687 'sources!': [ 691 'sources!': [
688 'filters/vpx_video_decoder.cc', 692 'filters/vpx_video_decoder.cc',
689 'filters/vpx_video_decoder.h', 693 'filters/vpx_video_decoder.h',
690 ], 694 ],
691 }], 695 }],
696 ['media_use_libwebm==1', {
697 'dependencies': [
698 '<(DEPTH)/third_party/libwebm/libwebm.gyp:libwebm',
699 ],
700 }, { # media_use_libwebm==0
701 # Exclude the sources that depend on libwebm.
702 'sources!': [
703 'filters/webm_muxer.cc',
704 'filters/webm_muxer.h',
705 ],
706 }],
692 ['enable_browser_cdms==1', { 707 ['enable_browser_cdms==1', {
693 'sources': [ 708 'sources': [
694 'base/browser_cdm.cc', 709 'base/browser_cdm.cc',
695 'base/browser_cdm.h', 710 'base/browser_cdm.h',
696 'base/browser_cdm_factory.cc', 711 'base/browser_cdm_factory.cc',
697 'base/browser_cdm_factory.h', 712 'base/browser_cdm_factory.h',
698 ], 713 ],
699 }], 714 }],
700 ['OS=="android"', { 715 ['OS=="android"', {
701 'dependencies': [ 716 'dependencies': [
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 'filters/h264_parser_unittest.cc', 1232 'filters/h264_parser_unittest.cc',
1218 'filters/in_memory_url_protocol_unittest.cc', 1233 'filters/in_memory_url_protocol_unittest.cc',
1219 'filters/jpeg_parser_unittest.cc', 1234 'filters/jpeg_parser_unittest.cc',
1220 'filters/source_buffer_stream_unittest.cc', 1235 'filters/source_buffer_stream_unittest.cc',
1221 'filters/video_cadence_estimator_unittest.cc', 1236 'filters/video_cadence_estimator_unittest.cc',
1222 'filters/video_decoder_selector_unittest.cc', 1237 'filters/video_decoder_selector_unittest.cc',
1223 'filters/video_frame_stream_unittest.cc', 1238 'filters/video_frame_stream_unittest.cc',
1224 'filters/video_renderer_algorithm_unittest.cc', 1239 'filters/video_renderer_algorithm_unittest.cc',
1225 'filters/vp8_bool_decoder_unittest.cc', 1240 'filters/vp8_bool_decoder_unittest.cc',
1226 'filters/vp8_parser_unittest.cc', 1241 'filters/vp8_parser_unittest.cc',
1242 'filters/webm_muxer_unittest.cc',
1227 'formats/common/offset_byte_queue_unittest.cc', 1243 'formats/common/offset_byte_queue_unittest.cc',
1228 'formats/webm/cluster_builder.cc', 1244 'formats/webm/cluster_builder.cc',
1229 'formats/webm/cluster_builder.h', 1245 'formats/webm/cluster_builder.h',
1230 'formats/webm/opus_packet_builder.cc', 1246 'formats/webm/opus_packet_builder.cc',
1231 'formats/webm/opus_packet_builder.h', 1247 'formats/webm/opus_packet_builder.h',
1232 'formats/webm/tracks_builder.cc', 1248 'formats/webm/tracks_builder.cc',
1233 'formats/webm/tracks_builder.h', 1249 'formats/webm/tracks_builder.h',
1234 'formats/webm/webm_cluster_parser_unittest.cc', 1250 'formats/webm/webm_cluster_parser_unittest.cc',
1235 'formats/webm/webm_content_encodings_client_unittest.cc', 1251 'formats/webm/webm_content_encodings_client_unittest.cc',
1236 'formats/webm/webm_parser_unittest.cc', 1252 'formats/webm/webm_parser_unittest.cc',
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 'filters/ffmpeg_aac_bitstream_converter_unittest.cc', 1288 'filters/ffmpeg_aac_bitstream_converter_unittest.cc',
1273 'filters/ffmpeg_demuxer_unittest.cc', 1289 'filters/ffmpeg_demuxer_unittest.cc',
1274 'filters/ffmpeg_glue_unittest.cc', 1290 'filters/ffmpeg_glue_unittest.cc',
1275 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc', 1291 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
1276 'filters/ffmpeg_video_decoder_unittest.cc', 1292 'filters/ffmpeg_video_decoder_unittest.cc',
1277 'filters/in_memory_url_protocol_unittest.cc', 1293 'filters/in_memory_url_protocol_unittest.cc',
1278 'test/pipeline_integration_test.cc', 1294 'test/pipeline_integration_test.cc',
1279 'test/pipeline_integration_test_base.cc', 1295 'test/pipeline_integration_test_base.cc',
1280 ], 1296 ],
1281 }], 1297 }],
1298 ['media_use_libwebm==1', {
1299 'dependencies': [
1300 '<(DEPTH)/third_party/libwebm/libwebm.gyp:libwebm',
1301 ],
1302 }, { # media_use_libwebm==0
1303 # Exclude the sources that depend on libwebm.
1304 'sources!': [
1305 'filters/webm_muxer_unittest.cc',
1306 ],
1307 }],
1308
1282 ['(os_posix==1 and OS!="mac") or (OS=="win" and component!="shared_libra ry" and win_use_allocator_shim==1)', { 1309 ['(os_posix==1 and OS!="mac") or (OS=="win" and component!="shared_libra ry" and win_use_allocator_shim==1)', {
1283 'conditions': [ 1310 'conditions': [
1284 ['use_allocator!="none"', { 1311 ['use_allocator!="none"', {
1285 'dependencies': [ 1312 'dependencies': [
1286 '../base/allocator/allocator.gyp:allocator', 1313 '../base/allocator/allocator.gyp:allocator',
1287 ], 1314 ],
1288 }], 1315 }],
1289 ], 1316 ],
1290 }], 1317 }],
1291 ['OS=="android"', { 1318 ['OS=="android"', {
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
1985 'dependencies': [ 2012 'dependencies': [
1986 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', 2013 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
1987 ], 2014 ],
1988 }], 2015 }],
1989 ], 2016 ],
1990 }, 2017 },
1991 ], 2018 ],
1992 }], 2019 }],
1993 ], 2020 ],
1994 } 2021 }
OLDNEW
« media/filters/webm_muxer.cc ('K') | « media/filters/webm_muxer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698