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

Side by Side Diff: media/media.gyp

Issue 10919092: Build supported media targets on iOS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Nit Created 8 years, 3 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
« media/base/media_stub.cc ('K') | « media/base/media_stub.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 PulseAudio library. 8 # Override to dynamically link the PulseAudio library.
9 'use_pulseaudio%': 0, 9 'use_pulseaudio%': 0,
10 # Override to dynamically link the cras (ChromeOS audio) library. 10 # Override to dynamically link the cras (ChromeOS audio) library.
11 'use_cras%': 0, 11 'use_cras%': 0,
12 'conditions': [
13 ['OS == "android" or OS == "ios"', {
14 # Android and iOS don't use ffmpeg.
15 'use_ffmpeg%': 0,
16 }, { # 'OS != "android" and OS != "ios"'
17 'use_ffmpeg%': 1,
18 }],
19 ],
12 }, 20 },
13 'targets': [ 21 'targets': [
14 { 22 {
15 'target_name': 'media', 23 'target_name': 'media',
16 'type': '<(component)', 24 'type': '<(component)',
17 'dependencies': [ 25 'dependencies': [
18 '../base/base.gyp:base', 26 '../base/base.gyp:base',
19 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
20 '../build/temp_gyp/googleurl.gyp:googleurl', 27 '../build/temp_gyp/googleurl.gyp:googleurl',
21 '../crypto/crypto.gyp:crypto', 28 '../crypto/crypto.gyp:crypto',
22 'shared_memory_support',
23 '../ui/ui.gyp:ui', 29 '../ui/ui.gyp:ui',
24 'yuv_convert',
25 ], 30 ],
26 'defines': [ 31 'defines': [
27 'MEDIA_IMPLEMENTATION', 32 'MEDIA_IMPLEMENTATION',
28 ], 33 ],
29 'include_dirs': [ 34 'include_dirs': [
30 '..', 35 '..',
31 ], 36 ],
32 'sources': [ 37 'sources': [
33 'audio/android/audio_manager_android.cc', 38 'audio/android/audio_manager_android.cc',
34 'audio/android/audio_manager_android.h', 39 'audio/android/audio_manager_android.h',
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 'base/decrypt_config.h', 173 'base/decrypt_config.h',
169 'base/demuxer.cc', 174 'base/demuxer.cc',
170 'base/demuxer.h', 175 'base/demuxer.h',
171 'base/demuxer_stream.cc', 176 'base/demuxer_stream.cc',
172 'base/demuxer_stream.h', 177 'base/demuxer_stream.h',
173 'base/djb2.cc', 178 'base/djb2.cc',
174 'base/djb2.h', 179 'base/djb2.h',
175 'base/filter_collection.cc', 180 'base/filter_collection.cc',
176 'base/filter_collection.h', 181 'base/filter_collection.h',
177 'base/media.h', 182 'base/media.h',
178 'base/media_android.cc',
179 'base/media_log.cc', 183 'base/media_log.cc',
180 'base/media_log.h', 184 'base/media_log.h',
181 'base/media_log_event.h', 185 'base/media_log_event.h',
182 'base/media_posix.cc', 186 'base/media_posix.cc',
183 'base/media_switches.cc', 187 'base/media_switches.cc',
184 'base/media_switches.h', 188 'base/media_switches.h',
185 'base/media_win.cc', 189 'base/media_win.cc',
186 'base/message_loop_factory.cc', 190 'base/message_loop_factory.cc',
187 'base/message_loop_factory.h', 191 'base/message_loop_factory.h',
188 'base/multi_channel_resampler.cc', 192 'base/multi_channel_resampler.cc',
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 'webm/webm_stream_parser.h', 305 'webm/webm_stream_parser.h',
302 'webm/webm_tracks_parser.cc', 306 'webm/webm_tracks_parser.cc',
303 'webm/webm_tracks_parser.h', 307 'webm/webm_tracks_parser.h',
304 ], 308 ],
305 'direct_dependent_settings': { 309 'direct_dependent_settings': {
306 'include_dirs': [ 310 'include_dirs': [
307 '..', 311 '..',
308 ], 312 ],
309 }, 313 },
310 'conditions': [ 314 'conditions': [
311 # Android doesn't use ffmpeg, so make the dependency conditional 315 ['OS != "ios"', {
312 # and exclude the sources which depend on ffmpeg. 316 'dependencies': [
313 ['OS != "android"', { 317 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations',
318 'shared_memory_support',
319 'yuv_convert',
320 ],
321 }],
322 ['use_ffmpeg == 1', {
314 'dependencies': [ 323 'dependencies': [
315 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', 324 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
316 ], 325 ],
317 }], 326 }, { # use_ffmpeg == 0
318 ['OS == "android"', { 327 # Exclude the sources that depend on ffmpeg.
319 'sources!': [ 328 'sources!': [
320 'base/media_posix.cc', 329 'base/media_posix.cc',
321 'ffmpeg/ffmpeg_common.cc', 330 'ffmpeg/ffmpeg_common.cc',
322 'ffmpeg/ffmpeg_common.h', 331 'ffmpeg/ffmpeg_common.h',
323 'ffmpeg/file_protocol.cc', 332 'ffmpeg/file_protocol.cc',
324 'ffmpeg/file_protocol.h', 333 'ffmpeg/file_protocol.h',
325 'filters/audio_file_reader.cc', 334 'filters/audio_file_reader.cc',
326 'filters/audio_file_reader.h', 335 'filters/audio_file_reader.h',
327 'filters/chunk_demuxer.cc', 336 'filters/chunk_demuxer.cc',
328 'filters/chunk_demuxer.h', 337 'filters/chunk_demuxer.h',
329 'filters/chunk_demuxer_client.h', 338 'filters/chunk_demuxer_client.h',
330 'filters/ffmpeg_audio_decoder.cc', 339 'filters/ffmpeg_audio_decoder.cc',
331 'filters/ffmpeg_audio_decoder.h', 340 'filters/ffmpeg_audio_decoder.h',
332 'filters/ffmpeg_demuxer.cc', 341 'filters/ffmpeg_demuxer.cc',
333 'filters/ffmpeg_demuxer.h', 342 'filters/ffmpeg_demuxer.h',
334 'filters/ffmpeg_glue.cc', 343 'filters/ffmpeg_glue.cc',
335 'filters/ffmpeg_glue.h', 344 'filters/ffmpeg_glue.h',
336 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc', 345 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc',
337 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h', 346 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h',
338 'filters/ffmpeg_video_decoder.cc', 347 'filters/ffmpeg_video_decoder.cc',
339 'filters/ffmpeg_video_decoder.h', 348 'filters/ffmpeg_video_decoder.h',
340 'filters/gpu_video_decoder.cc', 349 'filters/gpu_video_decoder.cc',
341 'filters/gpu_video_decoder.h', 350 'filters/gpu_video_decoder.h',
342 'webm/webm_cluster_parser.cc', 351 'webm/webm_cluster_parser.cc',
343 'webm/webm_cluster_parser.h', 352 'webm/webm_cluster_parser.h',
344 'webm/webm_stream_parser.cc', 353 'webm/webm_stream_parser.cc',
345 'webm/webm_stream_parser.h', 354 'webm/webm_stream_parser.h',
346 ], 355 ],
347 }], 356 }],
357 ['OS == "ios"', {
358 'includes': [
359 # For shared_memory_support_sources variable.
360 'shared_memory_support.gypi',
361 ],
362 'sources': [
363 'base/media_stub.cc',
364 # These sources are normally built via a dependency on the
365 # shared_memory_support target, but that target is not built on iOS.
366 # Instead, directly build only the files that are needed for iOS.
367 '<@(shared_memory_support_sources)',
368 ],
369 'sources/': [
370 # iOS support is limited to audio input only.
scherkus (not reviewing) 2012/09/05 15:39:22 should audio/mac/audio_input_mac\\. be listed here
blundell 2012/09/05 15:54:49 We are not using audio_input_mac. Stay tuned for a
scherkus (not reviewing) 2012/09/05 15:56:56 SGTM! On 2012/09/05 15:54:49, blundell wrote:
371 ['exclude', '.*'],
372 ['include', '^audio/audio_buffers_state\\.'],
373 ['include', '^audio/audio_input_controller\\.'],
374 ['include', '^audio/audio_io\\.h$'],
375 ['include', '^audio/audio_manager\\.'],
376 ['include', '^audio/audio_manager_base\\.'],
377 ['include', '^audio/audio_parameters\\.'],
378 ['include', '^audio/fake_audio_input_stream\\.'],
379 ['include', '^audio/fake_audio_output_stream\\.'],
380 ['include', '^base/channel_layout\\.'],
381 ['include', '^base/media\\.h$'],
382 ['include', '^base/media_stub\\.cc$'],
383 ],
384 'link_settings': {
385 'libraries': [
386 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
387 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
388 ],
389 },
390 }],
348 ['OS == "android"', { 391 ['OS == "android"', {
392 'sources': [
393 'base/media_stub.cc',
394 ],
349 'link_settings': { 395 'link_settings': {
350 'libraries': [ 396 'libraries': [
351 '-lOpenSLES', 397 '-lOpenSLES',
352 ], 398 ],
353 }, 399 },
354 }], 400 }],
355 # A simple WebM encoder for animated avatars on ChromeOS. 401 # A simple WebM encoder for animated avatars on ChromeOS.
356 ['chromeos==1', { 402 ['chromeos==1', {
357 'dependencies': [ 403 'dependencies': [
358 '../skia/skia.gyp:skia', 404 '../skia/skia.gyp:skia',
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 ], 537 ],
492 }], 538 }],
493 ], 539 ],
494 }, 540 },
495 { 541 {
496 'target_name': 'media_unittests', 542 'target_name': 'media_unittests',
497 'type': '<(gtest_target_type)', 543 'type': '<(gtest_target_type)',
498 'dependencies': [ 544 'dependencies': [
499 'media', 545 'media',
500 'media_test_support', 546 'media_test_support',
501 'shared_memory_support',
502 'yuv_convert',
503 '../base/base.gyp:base', 547 '../base/base.gyp:base',
504 '../base/base.gyp:base_i18n', 548 '../base/base.gyp:base_i18n',
505 '../base/base.gyp:test_support_base', 549 '../base/base.gyp:test_support_base',
506 '../testing/gmock.gyp:gmock', 550 '../testing/gmock.gyp:gmock',
507 '../testing/gtest.gyp:gtest', 551 '../testing/gtest.gyp:gtest',
508 '../ui/ui.gyp:ui', 552 '../ui/ui.gyp:ui',
509 ], 553 ],
510 'sources': [ 554 'sources': [
511 'audio/async_socket_io_handler_unittest.cc', 555 'audio/async_socket_io_handler_unittest.cc',
512 'audio/audio_input_controller_unittest.cc', 556 'audio/audio_input_controller_unittest.cc',
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 'filters/source_buffer_stream_unittest.cc', 613 'filters/source_buffer_stream_unittest.cc',
570 'filters/video_renderer_base_unittest.cc', 614 'filters/video_renderer_base_unittest.cc',
571 'video/capture/video_capture_device_unittest.cc', 615 'video/capture/video_capture_device_unittest.cc',
572 'webm/cluster_builder.cc', 616 'webm/cluster_builder.cc',
573 'webm/cluster_builder.h', 617 'webm/cluster_builder.h',
574 'webm/webm_cluster_parser_unittest.cc', 618 'webm/webm_cluster_parser_unittest.cc',
575 'webm/webm_content_encodings_client_unittest.cc', 619 'webm/webm_content_encodings_client_unittest.cc',
576 'webm/webm_parser_unittest.cc', 620 'webm/webm_parser_unittest.cc',
577 ], 621 ],
578 'conditions': [ 622 'conditions': [
579 ['os_posix==1 and OS!="mac"', { 623 ['OS != "ios"', {
624 'dependencies': [
625 'shared_memory_support',
626 'yuv_convert',
627 ],
628 }],
629 ['use_ffmpeg == 1', {
630 'dependencies': [
631 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
632 ],
633 }],
634 ['os_posix==1 and OS!="mac" and OS!="ios"', {
580 'conditions': [ 635 'conditions': [
581 ['linux_use_tcmalloc==1', { 636 ['linux_use_tcmalloc==1', {
582 'dependencies': [ 637 'dependencies': [
583 '../base/allocator/allocator.gyp:allocator', 638 '../base/allocator/allocator.gyp:allocator',
584 ], 639 ],
585 }], 640 }],
586 ], 641 ],
587 }], 642 }],
643 ['OS == "ios"', {
644 'sources/': [
645 ['exclude', '.*'],
646 ['include', '^audio/audio_parameters_unittest\\.cc$'],
647 ['include', '^base/mock_reader\\.h$'],
648 ['include', '^base/run_all_unittests\\.cc$'],
649 ],
650 }],
588 ['OS=="android"', { 651 ['OS=="android"', {
589 'sources!': [ 652 'sources!': [
590 'audio/audio_input_volume_unittest.cc', 653 'audio/audio_input_volume_unittest.cc',
591 'base/test_data_util.cc', 654 'base/test_data_util.cc',
592 'base/test_data_util.h', 655 'base/test_data_util.h',
593 'ffmpeg/ffmpeg_common_unittest.cc', 656 'ffmpeg/ffmpeg_common_unittest.cc',
594 'filters/chunk_demuxer_unittest.cc', 657 'filters/chunk_demuxer_unittest.cc',
595 'filters/ffmpeg_audio_decoder_unittest.cc', 658 'filters/ffmpeg_audio_decoder_unittest.cc',
596 'filters/ffmpeg_demuxer_unittest.cc', 659 'filters/ffmpeg_demuxer_unittest.cc',
597 'filters/ffmpeg_glue_unittest.cc', 660 'filters/ffmpeg_glue_unittest.cc',
598 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc', 661 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
599 'filters/ffmpeg_video_decoder_unittest.cc', 662 'filters/ffmpeg_video_decoder_unittest.cc',
600 'filters/pipeline_integration_test.cc', 663 'filters/pipeline_integration_test.cc',
601 'filters/pipeline_integration_test_base.cc', 664 'filters/pipeline_integration_test_base.cc',
602 'mp4/mp4_stream_parser_unittest.cc', 665 'mp4/mp4_stream_parser_unittest.cc',
603 'webm/webm_cluster_parser_unittest.cc', 666 'webm/webm_cluster_parser_unittest.cc',
604 ], 667 ],
605 'conditions': [ 668 'conditions': [
606 ['gtest_target_type == "shared_library"', { 669 ['gtest_target_type == "shared_library"', {
607 'dependencies': [ 670 'dependencies': [
608 '../testing/android/native_test.gyp:native_test_native_code', 671 '../testing/android/native_test.gyp:native_test_native_code',
609 ], 672 ],
610 }], 673 }],
611 ], 674 ],
612 }, { # OS!=android
613 'dependencies': [
614 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
615 ],
616 }], 675 }],
617 ['OS == "linux"', { 676 ['OS == "linux"', {
618 'conditions': [ 677 'conditions': [
619 ['use_cras == 1', { 678 ['use_cras == 1', {
620 'sources': [ 679 'sources': [
621 'audio/linux/cras_input_unittest.cc', 680 'audio/linux/cras_input_unittest.cc',
622 'audio/linux/cras_output_unittest.cc', 681 'audio/linux/cras_output_unittest.cc',
623 ], 682 ],
624 'defines': [ 683 'defines': [
625 'USE_CRAS', 684 'USE_CRAS',
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 'media', 1242 'media',
1184 ], 1243 ],
1185 'sources': [ 1244 'sources': [
1186 'tools/media_bench/media_bench.cc', 1245 'tools/media_bench/media_bench.cc',
1187 ], 1246 ],
1188 }, 1247 },
1189 ], 1248 ],
1190 }] 1249 }]
1191 ], 1250 ],
1192 } 1251 }
OLDNEW
« media/base/media_stub.cc ('K') | « media/base/media_stub.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698