OLD | NEW |
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': [ | 12 'conditions': [ |
13 ['OS == "android" or OS == "ios"', { | 13 ['OS == "android" or OS == "ios"', { |
14 # Android and iOS don't use ffmpeg. | 14 # Android and iOS don't use ffmpeg. |
15 'use_ffmpeg%': 0, | 15 'use_ffmpeg%': 0, |
16 }, { # 'OS != "android" and OS != "ios"' | 16 }, { # 'OS != "android" and OS != "ios"' |
17 'use_ffmpeg%': 1, | 17 'use_ffmpeg%': 1, |
18 }], | 18 }], |
| 19 # Screen capturer works only on Windows, OSX and Linux. |
| 20 ['OS=="win" or OS=="mac" or OS=="linux"', { |
| 21 'screen_capture_supported%': 1, |
| 22 }, { |
| 23 'screen_capture_supported%': 0, |
| 24 }], |
19 ], | 25 ], |
20 }, | 26 }, |
21 'targets': [ | 27 'targets': [ |
22 { | 28 { |
23 'target_name': 'media', | 29 'target_name': 'media', |
24 'type': '<(component)', | 30 'type': '<(component)', |
25 'dependencies': [ | 31 'dependencies': [ |
26 '../base/base.gyp:base', | 32 '../base/base.gyp:base', |
27 '../build/temp_gyp/googleurl.gyp:googleurl', | 33 '../build/temp_gyp/googleurl.gyp:googleurl', |
28 '../crypto/crypto.gyp:crypto', | 34 '../crypto/crypto.gyp:crypto', |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 'filters/video_renderer_base.cc', | 320 'filters/video_renderer_base.cc', |
315 'filters/video_renderer_base.h', | 321 'filters/video_renderer_base.h', |
316 'video/capture/fake_video_capture_device.cc', | 322 'video/capture/fake_video_capture_device.cc', |
317 'video/capture/fake_video_capture_device.h', | 323 'video/capture/fake_video_capture_device.h', |
318 'video/capture/linux/video_capture_device_linux.cc', | 324 'video/capture/linux/video_capture_device_linux.cc', |
319 'video/capture/linux/video_capture_device_linux.h', | 325 'video/capture/linux/video_capture_device_linux.h', |
320 'video/capture/mac/video_capture_device_mac.h', | 326 'video/capture/mac/video_capture_device_mac.h', |
321 'video/capture/mac/video_capture_device_mac.mm', | 327 'video/capture/mac/video_capture_device_mac.mm', |
322 'video/capture/mac/video_capture_device_qtkit_mac.h', | 328 'video/capture/mac/video_capture_device_qtkit_mac.h', |
323 'video/capture/mac/video_capture_device_qtkit_mac.mm', | 329 'video/capture/mac/video_capture_device_qtkit_mac.mm', |
| 330 'video/capture/screen/differ.cc', |
| 331 'video/capture/screen/differ.h', |
| 332 'video/capture/screen/differ_block.cc', |
| 333 'video/capture/screen/differ_block.h', |
| 334 'video/capture/screen/linux/x_server_pixel_buffer.cc', |
| 335 'video/capture/screen/linux/x_server_pixel_buffer.h', |
| 336 'video/capture/screen/mac/scoped_pixel_buffer_object.cc', |
| 337 'video/capture/screen/mac/scoped_pixel_buffer_object.h', |
| 338 'video/capture/screen/mouse_cursor_shape.cc', |
| 339 'video/capture/screen/mouse_cursor_shape.h', |
| 340 'video/capture/screen/screen_capture_data.cc', |
| 341 'video/capture/screen/screen_capture_data.h', |
| 342 'video/capture/screen/screen_capture_frame.cc', |
| 343 'video/capture/screen/screen_capture_frame.h', |
| 344 'video/capture/screen/screen_capture_frame_queue.cc', |
| 345 'video/capture/screen/screen_capture_frame_queue.h', |
| 346 'video/capture/screen/screen_capturer.h', |
| 347 'video/capture/screen/screen_capturer_fake.cc', |
| 348 'video/capture/screen/screen_capturer_fake.h', |
| 349 'video/capture/screen/screen_capturer_helper.cc', |
| 350 'video/capture/screen/screen_capturer_helper.h', |
| 351 'video/capture/screen/screen_capturer_linux.cc', |
| 352 'video/capture/screen/screen_capturer_mac.mm', |
| 353 'video/capture/screen/screen_capturer_win.cc', |
| 354 'video/capture/screen/shared_buffer.cc', |
| 355 'video/capture/screen/shared_buffer.h', |
| 356 'video/capture/screen/shared_buffer_factory.h', |
| 357 'video/capture/screen/win/desktop.cc', |
| 358 'video/capture/screen/win/desktop.h', |
| 359 'video/capture/screen/win/scoped_thread_desktop.cc', |
| 360 'video/capture/screen/win/scoped_thread_desktop.h', |
324 'video/capture/video_capture.h', | 361 'video/capture/video_capture.h', |
325 'video/capture/video_capture_device.h', | 362 'video/capture/video_capture_device.h', |
326 'video/capture/video_capture_device_dummy.cc', | 363 'video/capture/video_capture_device_dummy.cc', |
327 'video/capture/video_capture_device_dummy.h', | 364 'video/capture/video_capture_device_dummy.h', |
328 'video/capture/video_capture_proxy.cc', | 365 'video/capture/video_capture_proxy.cc', |
329 'video/capture/video_capture_proxy.h', | 366 'video/capture/video_capture_proxy.h', |
330 'video/capture/video_capture_types.h', | 367 'video/capture/video_capture_types.h', |
331 'video/capture/win/capability_list_win.cc', | 368 'video/capture/win/capability_list_win.cc', |
332 'video/capture/win/capability_list_win.h', | 369 'video/capture/win/capability_list_win.h', |
333 'video/capture/win/filter_base_win.cc', | 370 'video/capture/win/filter_base_win.cc', |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 ['OS=="linux"', { | 535 ['OS=="linux"', { |
499 'variables': { | 536 'variables': { |
500 'conditions': [ | 537 'conditions': [ |
501 ['sysroot!=""', { | 538 ['sysroot!=""', { |
502 'pkg-config': '../build/linux/pkg-config-wrapper "<(sysroot)" "<
(target_arch)"', | 539 'pkg-config': '../build/linux/pkg-config-wrapper "<(sysroot)" "<
(target_arch)"', |
503 }, { | 540 }, { |
504 'pkg-config': 'pkg-config' | 541 'pkg-config': 'pkg-config' |
505 }], | 542 }], |
506 ], | 543 ], |
507 }, | 544 }, |
| 545 'link_settings': { |
| 546 'libraries': [ |
| 547 '-lX11', |
| 548 '-lXdamage', |
| 549 '-lXext', |
| 550 '-lXfixes', |
| 551 ], |
| 552 }, |
508 'conditions': [ | 553 'conditions': [ |
509 ['use_cras == 1', { | 554 ['use_cras == 1', { |
510 'cflags': [ | 555 'cflags': [ |
511 '<!@(<(pkg-config) --cflags libcras)', | 556 '<!@(<(pkg-config) --cflags libcras)', |
512 ], | 557 ], |
513 'link_settings': { | 558 'link_settings': { |
514 'libraries': [ | 559 'libraries': [ |
515 '<!@(<(pkg-config) --libs libcras)', | 560 '<!@(<(pkg-config) --libs libcras)', |
516 ], | 561 ], |
517 }, | 562 }, |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 'mp4/es_descriptor.cc', | 666 'mp4/es_descriptor.cc', |
622 'mp4/es_descriptor.h', | 667 'mp4/es_descriptor.h', |
623 'mp4/mp4_stream_parser.cc', | 668 'mp4/mp4_stream_parser.cc', |
624 'mp4/mp4_stream_parser.h', | 669 'mp4/mp4_stream_parser.h', |
625 'mp4/offset_byte_queue.cc', | 670 'mp4/offset_byte_queue.cc', |
626 'mp4/offset_byte_queue.h', | 671 'mp4/offset_byte_queue.h', |
627 'mp4/track_run_iterator.cc', | 672 'mp4/track_run_iterator.cc', |
628 'mp4/track_run_iterator.h', | 673 'mp4/track_run_iterator.h', |
629 ], | 674 ], |
630 }], | 675 }], |
| 676 [ 'screen_capture_supported == 0', { |
| 677 'sources/': [ |
| 678 ['exclude', '^video/capture/screen/'], |
| 679 ], |
| 680 }], |
| 681 [ 'target_arch == "ia32" or target_arch == "x64"', { |
| 682 'dependencies': [ |
| 683 'differ_block_sse2', |
| 684 ], |
| 685 }], |
| 686 ['toolkit_uses_gtk==1', { |
| 687 'dependencies': [ |
| 688 '../build/linux/system.gyp:gtk', |
| 689 ], |
| 690 }], |
631 ], | 691 ], |
632 'target_conditions': [ | 692 'target_conditions': [ |
633 ['OS == "ios"', { | 693 ['OS == "ios"', { |
634 'sources/': [ | 694 'sources/': [ |
635 # Pull in specific Mac files for iOS (which have been filtered out | 695 # Pull in specific Mac files for iOS (which have been filtered out |
636 # by file name rules). | 696 # by file name rules). |
637 ['include', '^audio/mac/audio_input_mac\\.'], | 697 ['include', '^audio/mac/audio_input_mac\\.'], |
638 ], | 698 ], |
639 }], | 699 }], |
640 ], | 700 ], |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 'audio/win/audio_unified_win_unittest.cc', | 742 'audio/win/audio_unified_win_unittest.cc', |
683 'audio/win/core_audio_util_win_unittest.cc', | 743 'audio/win/core_audio_util_win_unittest.cc', |
684 'base/audio_bus_unittest.cc', | 744 'base/audio_bus_unittest.cc', |
685 'base/audio_converter_unittest.cc', | 745 'base/audio_converter_unittest.cc', |
686 'base/audio_fifo_unittest.cc', | 746 'base/audio_fifo_unittest.cc', |
687 'base/audio_pull_fifo_unittest.cc', | 747 'base/audio_pull_fifo_unittest.cc', |
688 'base/audio_renderer_mixer_input_unittest.cc', | 748 'base/audio_renderer_mixer_input_unittest.cc', |
689 'base/audio_renderer_mixer_unittest.cc', | 749 'base/audio_renderer_mixer_unittest.cc', |
690 'base/audio_splicer_unittest.cc', | 750 'base/audio_splicer_unittest.cc', |
691 'base/audio_timestamp_helper_unittest.cc', | 751 'base/audio_timestamp_helper_unittest.cc', |
| 752 'base/bind_to_loop_unittest.cc', |
692 'base/bit_reader_unittest.cc', | 753 'base/bit_reader_unittest.cc', |
693 'base/bind_to_loop_unittest.cc', | |
694 'base/channel_mixer_unittest.cc', | 754 'base/channel_mixer_unittest.cc', |
695 'base/clock_unittest.cc', | 755 'base/clock_unittest.cc', |
696 'base/data_buffer_unittest.cc', | 756 'base/data_buffer_unittest.cc', |
| 757 'base/decoder_buffer_queue_unittest.cc', |
697 'base/decoder_buffer_unittest.cc', | 758 'base/decoder_buffer_unittest.cc', |
698 'base/decoder_buffer_queue_unittest.cc', | |
699 'base/djb2_unittest.cc', | 759 'base/djb2_unittest.cc', |
700 'base/filter_collection_unittest.cc', | 760 'base/filter_collection_unittest.cc', |
701 'base/gmock_callback_support_unittest.cc', | 761 'base/gmock_callback_support_unittest.cc', |
702 'base/multi_channel_resampler_unittest.cc', | 762 'base/multi_channel_resampler_unittest.cc', |
703 'base/pipeline_unittest.cc', | 763 'base/pipeline_unittest.cc', |
704 'base/ranges_unittest.cc', | 764 'base/ranges_unittest.cc', |
705 'base/run_all_unittests.cc', | 765 'base/run_all_unittests.cc', |
706 'base/seekable_buffer_unittest.cc', | 766 'base/seekable_buffer_unittest.cc', |
707 'base/sinc_resampler_unittest.cc', | 767 'base/sinc_resampler_unittest.cc', |
708 'base/test_data_util.cc', | 768 'base/test_data_util.cc', |
(...skipping 20 matching lines...) Expand all Loading... |
729 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc', | 789 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc', |
730 'filters/ffmpeg_video_decoder_unittest.cc', | 790 'filters/ffmpeg_video_decoder_unittest.cc', |
731 'filters/file_data_source_unittest.cc', | 791 'filters/file_data_source_unittest.cc', |
732 'filters/h264_to_annex_b_bitstream_converter_unittest.cc', | 792 'filters/h264_to_annex_b_bitstream_converter_unittest.cc', |
733 'filters/pipeline_integration_test.cc', | 793 'filters/pipeline_integration_test.cc', |
734 'filters/pipeline_integration_test_base.cc', | 794 'filters/pipeline_integration_test_base.cc', |
735 'filters/skcanvas_video_renderer_unittest.cc', | 795 'filters/skcanvas_video_renderer_unittest.cc', |
736 'filters/source_buffer_stream_unittest.cc', | 796 'filters/source_buffer_stream_unittest.cc', |
737 'filters/video_decoder_selector_unittest.cc', | 797 'filters/video_decoder_selector_unittest.cc', |
738 'filters/video_renderer_base_unittest.cc', | 798 'filters/video_renderer_base_unittest.cc', |
| 799 'video/capture/screen/differ_block_unittest.cc', |
| 800 'video/capture/screen/differ_unittest.cc', |
| 801 'video/capture/screen/shared_buffer_unittest.cc', |
| 802 'video/capture/screen/screen_capturer_helper_unittest.cc', |
| 803 'video/capture/screen/screen_capturer_mac_unittest.cc', |
| 804 'video/capture/screen/screen_capturer_unittest.cc', |
739 'video/capture/video_capture_device_unittest.cc', | 805 'video/capture/video_capture_device_unittest.cc', |
740 'webm/cluster_builder.cc', | 806 'webm/cluster_builder.cc', |
741 'webm/cluster_builder.h', | 807 'webm/cluster_builder.h', |
742 'webm/webm_cluster_parser_unittest.cc', | 808 'webm/webm_cluster_parser_unittest.cc', |
743 'webm/webm_content_encodings_client_unittest.cc', | 809 'webm/webm_content_encodings_client_unittest.cc', |
744 'webm/webm_parser_unittest.cc', | 810 'webm/webm_parser_unittest.cc', |
745 ], | 811 ], |
746 'conditions': [ | 812 'conditions': [ |
747 ['arm_neon == 1', { | 813 ['arm_neon == 1', { |
748 'defines': [ | 814 'defines': [ |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 'USE_CRAS', | 884 'USE_CRAS', |
819 ], | 885 ], |
820 }], | 886 }], |
821 ], | 887 ], |
822 }], | 888 }], |
823 [ 'target_arch=="ia32" or target_arch=="x64"', { | 889 [ 'target_arch=="ia32" or target_arch=="x64"', { |
824 'sources': [ | 890 'sources': [ |
825 'base/simd/convert_rgb_to_yuv_unittest.cc', | 891 'base/simd/convert_rgb_to_yuv_unittest.cc', |
826 ], | 892 ], |
827 }], | 893 }], |
| 894 [ 'screen_capture_supported == 0', { |
| 895 'sources/': [ |
| 896 ['exclude', '^video/capture/screen/'], |
| 897 ], |
| 898 }], |
828 ['proprietary_codecs==1 or branding=="Chrome"', { | 899 ['proprietary_codecs==1 or branding=="Chrome"', { |
829 'sources': [ | 900 'sources': [ |
830 'mp4/aac_unittest.cc', | 901 'mp4/aac_unittest.cc', |
831 'mp4/avc_unittest.cc', | 902 'mp4/avc_unittest.cc', |
832 'mp4/box_reader_unittest.cc', | 903 'mp4/box_reader_unittest.cc', |
833 'mp4/es_descriptor_unittest.cc', | 904 'mp4/es_descriptor_unittest.cc', |
834 'mp4/mp4_stream_parser_unittest.cc', | 905 'mp4/mp4_stream_parser_unittest.cc', |
835 'mp4/offset_byte_queue_unittest.cc', | 906 'mp4/offset_byte_queue_unittest.cc', |
836 'mp4/track_run_iterator_unittest.cc', | 907 'mp4/track_run_iterator_unittest.cc', |
837 ], | 908 ], |
838 }], | 909 }], |
839 ], | 910 ], |
840 }, | 911 }, |
841 { | 912 { |
842 'target_name': 'media_test_support', | 913 'target_name': 'media_test_support', |
843 'type': 'static_library', | 914 'type': 'static_library', |
844 'dependencies': [ | 915 'dependencies': [ |
845 'media', | 916 'media', |
846 '../base/base.gyp:base', | 917 '../base/base.gyp:base', |
| 918 '../skia/skia.gyp:skia', |
847 '../testing/gmock.gyp:gmock', | 919 '../testing/gmock.gyp:gmock', |
848 '../testing/gtest.gyp:gtest', | 920 '../testing/gtest.gyp:gtest', |
849 ], | 921 ], |
850 'sources': [ | 922 'sources': [ |
851 'audio/mock_audio_manager.cc', | 923 'audio/mock_audio_manager.cc', |
852 'audio/mock_audio_manager.h', | 924 'audio/mock_audio_manager.h', |
853 'audio/test_audio_input_controller_factory.cc', | 925 'audio/test_audio_input_controller_factory.cc', |
854 'audio/test_audio_input_controller_factory.h', | 926 'audio/test_audio_input_controller_factory.h', |
855 'base/fake_audio_render_callback.cc', | 927 'base/fake_audio_render_callback.cc', |
856 'base/fake_audio_render_callback.h', | 928 'base/fake_audio_render_callback.h', |
857 'base/gmock_callback_support.h', | 929 'base/gmock_callback_support.h', |
858 'base/mock_audio_renderer_sink.cc', | 930 'base/mock_audio_renderer_sink.cc', |
859 'base/mock_audio_renderer_sink.h', | 931 'base/mock_audio_renderer_sink.h', |
860 'base/mock_data_source_host.cc', | 932 'base/mock_data_source_host.cc', |
861 'base/mock_data_source_host.h', | 933 'base/mock_data_source_host.h', |
862 'base/mock_demuxer_host.cc', | 934 'base/mock_demuxer_host.cc', |
863 'base/mock_demuxer_host.h', | 935 'base/mock_demuxer_host.h', |
864 'base/mock_filters.cc', | 936 'base/mock_filters.cc', |
865 'base/mock_filters.h', | 937 'base/mock_filters.h', |
866 'base/test_helpers.cc', | 938 'base/test_helpers.cc', |
867 'base/test_helpers.h', | 939 'base/test_helpers.h', |
| 940 'video/capture/screen/screen_capturer_mock_objects.cc', |
| 941 'video/capture/screen/screen_capturer_mock_objects.h', |
| 942 ], |
| 943 'conditions': [ |
| 944 [ 'screen_capture_supported == 0', { |
| 945 'sources/': [ |
| 946 ['exclude', '^video/capture/screen/'], |
| 947 ], |
| 948 }], |
868 ], | 949 ], |
869 }, | 950 }, |
| 951 { |
| 952 'target_name': 'differ_block_sse2', |
| 953 'type': 'static_library', |
| 954 'conditions': [ |
| 955 [ 'os_posix == 1 and OS != "mac"', { |
| 956 'cflags': [ |
| 957 '-msse2', |
| 958 ], |
| 959 }], |
| 960 ], |
| 961 'include_dirs': [ |
| 962 '..', |
| 963 ], |
| 964 'sources': [ |
| 965 'video/capture/screen/differ_block_sse2.cc', |
| 966 'video/capture/screen/differ_block_sse2.h', |
| 967 ], |
| 968 }, # end of target differ_block_sse2 |
870 ], | 969 ], |
871 'conditions': [ | 970 'conditions': [ |
872 ['OS != "ios"', { | 971 ['OS != "ios"', { |
873 'targets': [ | 972 'targets': [ |
874 { | 973 { |
875 # Minimal target for NaCl and other renderer side media clients which | 974 # Minimal target for NaCl and other renderer side media clients which |
876 # only need to send audio data across the shared memory to the browser | 975 # only need to send audio data across the shared memory to the browser |
877 # process. | 976 # process. |
878 'target_name': 'shared_memory_support', | 977 'target_name': 'shared_memory_support', |
879 'type': '<(component)', | 978 'type': '<(component)', |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1366 'media', | 1465 'media', |
1367 ], | 1466 ], |
1368 'sources': [ | 1467 'sources': [ |
1369 'tools/media_bench/media_bench.cc', | 1468 'tools/media_bench/media_bench.cc', |
1370 ], | 1469 ], |
1371 }, | 1470 }, |
1372 ], | 1471 ], |
1373 }] | 1472 }] |
1374 ], | 1473 ], |
1375 } | 1474 } |
OLD | NEW |