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

Side by Side Diff: media/media.gyp

Issue 12047101: Move screen capturers from remoting/capturer to media/video/capturer/screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | media/video/capture/screen/DEPS » ('j') | 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': [ 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 # Android and iOS don't use libvpx. 16 # Android and iOS don't use libvpx.
17 'use_libvpx%': 0, 17 'use_libvpx%': 0,
18 }, { # 'OS != "android" and OS != "ios"' 18 }, { # 'OS != "android" and OS != "ios"'
19 'use_ffmpeg%': 1, 19 'use_ffmpeg%': 1,
20 'use_libvpx%': 1, 20 'use_libvpx%': 1,
21 }], 21 }],
22 # Screen capturer works only on Windows, OSX and Linux.
23 ['OS=="win" or OS=="mac" or OS=="linux"', {
24 'screen_capture_supported%': 1,
25 }, {
26 'screen_capture_supported%': 0,
27 }],
22 ], 28 ],
23 }, 29 },
24 'targets': [ 30 'targets': [
25 { 31 {
26 'target_name': 'media', 32 'target_name': 'media',
27 'type': '<(component)', 33 'type': '<(component)',
28 'dependencies': [ 34 'dependencies': [
29 '../base/base.gyp:base', 35 '../base/base.gyp:base',
30 '../build/temp_gyp/googleurl.gyp:googleurl', 36 '../build/temp_gyp/googleurl.gyp:googleurl',
31 '../crypto/crypto.gyp:crypto', 37 '../crypto/crypto.gyp:crypto',
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 'filters/vpx_video_decoder.cc', 325 'filters/vpx_video_decoder.cc',
320 'filters/vpx_video_decoder.h', 326 'filters/vpx_video_decoder.h',
321 'video/capture/fake_video_capture_device.cc', 327 'video/capture/fake_video_capture_device.cc',
322 'video/capture/fake_video_capture_device.h', 328 'video/capture/fake_video_capture_device.h',
323 'video/capture/linux/video_capture_device_linux.cc', 329 'video/capture/linux/video_capture_device_linux.cc',
324 'video/capture/linux/video_capture_device_linux.h', 330 'video/capture/linux/video_capture_device_linux.h',
325 'video/capture/mac/video_capture_device_mac.h', 331 'video/capture/mac/video_capture_device_mac.h',
326 'video/capture/mac/video_capture_device_mac.mm', 332 'video/capture/mac/video_capture_device_mac.mm',
327 'video/capture/mac/video_capture_device_qtkit_mac.h', 333 'video/capture/mac/video_capture_device_qtkit_mac.h',
328 'video/capture/mac/video_capture_device_qtkit_mac.mm', 334 'video/capture/mac/video_capture_device_qtkit_mac.mm',
335 'video/capture/screen/differ.cc',
336 'video/capture/screen/differ.h',
337 'video/capture/screen/differ_block.cc',
338 'video/capture/screen/differ_block.h',
339 'video/capture/screen/linux/x_server_pixel_buffer.cc',
340 'video/capture/screen/linux/x_server_pixel_buffer.h',
341 'video/capture/screen/mac/desktop_configuration.mm',
342 'video/capture/screen/mac/desktop_configuration.h',
343 'video/capture/screen/mac/scoped_pixel_buffer_object.cc',
344 'video/capture/screen/mac/scoped_pixel_buffer_object.h',
345 'video/capture/screen/mouse_cursor_shape.cc',
346 'video/capture/screen/mouse_cursor_shape.h',
347 'video/capture/screen/screen_capture_data.cc',
348 'video/capture/screen/screen_capture_data.h',
349 'video/capture/screen/screen_capture_frame.cc',
350 'video/capture/screen/screen_capture_frame.h',
351 'video/capture/screen/screen_capture_frame_queue.cc',
352 'video/capture/screen/screen_capture_frame_queue.h',
353 'video/capture/screen/screen_capturer.h',
354 'video/capture/screen/screen_capturer_fake.cc',
355 'video/capture/screen/screen_capturer_fake.h',
356 'video/capture/screen/screen_capturer_helper.cc',
357 'video/capture/screen/screen_capturer_helper.h',
358 'video/capture/screen/screen_capturer_linux.cc',
359 'video/capture/screen/screen_capturer_mac.mm',
360 'video/capture/screen/screen_capturer_win.cc',
361 'video/capture/screen/shared_buffer.cc',
362 'video/capture/screen/shared_buffer.h',
363 'video/capture/screen/shared_buffer_factory.h',
364 'video/capture/screen/win/desktop.cc',
365 'video/capture/screen/win/desktop.h',
366 'video/capture/screen/win/scoped_thread_desktop.cc',
367 'video/capture/screen/win/scoped_thread_desktop.h',
329 'video/capture/video_capture.h', 368 'video/capture/video_capture.h',
330 'video/capture/video_capture_device.h', 369 'video/capture/video_capture_device.h',
331 'video/capture/video_capture_device_dummy.cc', 370 'video/capture/video_capture_device_dummy.cc',
332 'video/capture/video_capture_device_dummy.h', 371 'video/capture/video_capture_device_dummy.h',
333 'video/capture/video_capture_proxy.cc', 372 'video/capture/video_capture_proxy.cc',
334 'video/capture/video_capture_proxy.h', 373 'video/capture/video_capture_proxy.h',
335 'video/capture/video_capture_types.h', 374 'video/capture/video_capture_types.h',
336 'video/capture/win/capability_list_win.cc', 375 'video/capture/win/capability_list_win.cc',
337 'video/capture/win/capability_list_win.h', 376 'video/capture/win/capability_list_win.h',
338 'video/capture/win/filter_base_win.cc', 377 'video/capture/win/filter_base_win.cc',
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 ['OS=="linux"', { 553 ['OS=="linux"', {
515 'variables': { 554 'variables': {
516 'conditions': [ 555 'conditions': [
517 ['sysroot!=""', { 556 ['sysroot!=""', {
518 'pkg-config': '../build/linux/pkg-config-wrapper "<(sysroot)" "< (target_arch)"', 557 'pkg-config': '../build/linux/pkg-config-wrapper "<(sysroot)" "< (target_arch)"',
519 }, { 558 }, {
520 'pkg-config': 'pkg-config' 559 'pkg-config': 'pkg-config'
521 }], 560 }],
522 ], 561 ],
523 }, 562 },
563 'link_settings': {
564 'libraries': [
565 '-lX11',
566 '-lXdamage',
567 '-lXext',
568 '-lXfixes',
569 ],
570 },
524 'conditions': [ 571 'conditions': [
525 ['use_cras == 1', { 572 ['use_cras == 1', {
526 'cflags': [ 573 'cflags': [
527 '<!@(<(pkg-config) --cflags libcras)', 574 '<!@(<(pkg-config) --cflags libcras)',
528 ], 575 ],
529 'link_settings': { 576 'link_settings': {
530 'libraries': [ 577 'libraries': [
531 '<!@(<(pkg-config) --libs libcras)', 578 '<!@(<(pkg-config) --libs libcras)',
532 ], 579 ],
533 }, 580 },
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 ['os_posix == 1 and OS != "android"', { 616 ['os_posix == 1 and OS != "android"', {
570 # Video capture isn't supported in Android yet. 617 # Video capture isn't supported in Android yet.
571 'sources!': [ 618 'sources!': [
572 'video/capture/video_capture_device_dummy.cc', 619 'video/capture/video_capture_device_dummy.cc',
573 'video/capture/video_capture_device_dummy.h', 620 'video/capture/video_capture_device_dummy.h',
574 ], 621 ],
575 }], 622 }],
576 ['OS=="mac"', { 623 ['OS=="mac"', {
577 'link_settings': { 624 'link_settings': {
578 'libraries': [ 625 'libraries': [
626 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
579 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', 627 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
580 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
581 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', 628 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
582 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework', 629 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
630 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
583 '$(SDKROOT)/System/Library/Frameworks/QTKit.framework', 631 '$(SDKROOT)/System/Library/Frameworks/QTKit.framework',
584 ], 632 ],
585 }, 633 },
586 }], 634 }],
587 ['OS=="win"', { 635 ['OS=="win"', {
588 'sources!': [ 636 'sources!': [
589 'audio/pulse/pulse_output.cc', 637 'audio/pulse/pulse_output.cc',
590 'audio/pulse/pulse_output.h', 638 'audio/pulse/pulse_output.h',
591 'video/capture/video_capture_device_dummy.cc', 639 'video/capture/video_capture_device_dummy.cc',
592 'video/capture/video_capture_device_dummy.h', 640 'video/capture/video_capture_device_dummy.h',
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 'mp4/es_descriptor.cc', 685 'mp4/es_descriptor.cc',
638 'mp4/es_descriptor.h', 686 'mp4/es_descriptor.h',
639 'mp4/mp4_stream_parser.cc', 687 'mp4/mp4_stream_parser.cc',
640 'mp4/mp4_stream_parser.h', 688 'mp4/mp4_stream_parser.h',
641 'mp4/offset_byte_queue.cc', 689 'mp4/offset_byte_queue.cc',
642 'mp4/offset_byte_queue.h', 690 'mp4/offset_byte_queue.h',
643 'mp4/track_run_iterator.cc', 691 'mp4/track_run_iterator.cc',
644 'mp4/track_run_iterator.h', 692 'mp4/track_run_iterator.h',
645 ], 693 ],
646 }], 694 }],
695 [ 'screen_capture_supported==0', {
696 'sources/': [
697 ['exclude', '^video/capture/screen/'],
698 ],
699 }],
700 [ 'screen_capture_supported==1 and (target_arch=="ia32" or target_arch== "x64")', {
701 'dependencies': [
702 'differ_block_sse2',
703 ],
704 }],
705 ['toolkit_uses_gtk==1', {
706 'dependencies': [
707 '../build/linux/system.gyp:gtk',
708 ],
709 }],
647 ], 710 ],
648 'target_conditions': [ 711 'target_conditions': [
649 ['OS == "ios"', { 712 ['OS == "ios"', {
650 'sources/': [ 713 'sources/': [
651 # Pull in specific Mac files for iOS (which have been filtered out 714 # Pull in specific Mac files for iOS (which have been filtered out
652 # by file name rules). 715 # by file name rules).
653 ['include', '^audio/mac/audio_input_mac\\.'], 716 ['include', '^audio/mac/audio_input_mac\\.'],
654 ], 717 ],
655 }], 718 }],
656 ], 719 ],
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 'audio/win/audio_unified_win_unittest.cc', 761 'audio/win/audio_unified_win_unittest.cc',
699 'audio/win/core_audio_util_win_unittest.cc', 762 'audio/win/core_audio_util_win_unittest.cc',
700 'base/audio_bus_unittest.cc', 763 'base/audio_bus_unittest.cc',
701 'base/audio_converter_unittest.cc', 764 'base/audio_converter_unittest.cc',
702 'base/audio_fifo_unittest.cc', 765 'base/audio_fifo_unittest.cc',
703 'base/audio_pull_fifo_unittest.cc', 766 'base/audio_pull_fifo_unittest.cc',
704 'base/audio_renderer_mixer_input_unittest.cc', 767 'base/audio_renderer_mixer_input_unittest.cc',
705 'base/audio_renderer_mixer_unittest.cc', 768 'base/audio_renderer_mixer_unittest.cc',
706 'base/audio_splicer_unittest.cc', 769 'base/audio_splicer_unittest.cc',
707 'base/audio_timestamp_helper_unittest.cc', 770 'base/audio_timestamp_helper_unittest.cc',
771 'base/bind_to_loop_unittest.cc',
708 'base/bit_reader_unittest.cc', 772 'base/bit_reader_unittest.cc',
709 'base/bind_to_loop_unittest.cc',
710 'base/channel_mixer_unittest.cc', 773 'base/channel_mixer_unittest.cc',
711 'base/clock_unittest.cc', 774 'base/clock_unittest.cc',
712 'base/data_buffer_unittest.cc', 775 'base/data_buffer_unittest.cc',
776 'base/decoder_buffer_queue_unittest.cc',
713 'base/decoder_buffer_unittest.cc', 777 'base/decoder_buffer_unittest.cc',
714 'base/decoder_buffer_queue_unittest.cc',
715 'base/djb2_unittest.cc', 778 'base/djb2_unittest.cc',
716 'base/filter_collection_unittest.cc', 779 'base/filter_collection_unittest.cc',
717 'base/gmock_callback_support_unittest.cc', 780 'base/gmock_callback_support_unittest.cc',
718 'base/multi_channel_resampler_unittest.cc', 781 'base/multi_channel_resampler_unittest.cc',
719 'base/pipeline_unittest.cc', 782 'base/pipeline_unittest.cc',
720 'base/ranges_unittest.cc', 783 'base/ranges_unittest.cc',
721 'base/run_all_unittests.cc', 784 'base/run_all_unittests.cc',
722 'base/seekable_buffer_unittest.cc', 785 'base/seekable_buffer_unittest.cc',
723 'base/sinc_resampler_unittest.cc', 786 'base/sinc_resampler_unittest.cc',
724 'base/test_data_util.cc', 787 'base/test_data_util.cc',
(...skipping 20 matching lines...) Expand all
745 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc', 808 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
746 'filters/ffmpeg_video_decoder_unittest.cc', 809 'filters/ffmpeg_video_decoder_unittest.cc',
747 'filters/file_data_source_unittest.cc', 810 'filters/file_data_source_unittest.cc',
748 'filters/h264_to_annex_b_bitstream_converter_unittest.cc', 811 'filters/h264_to_annex_b_bitstream_converter_unittest.cc',
749 'filters/pipeline_integration_test.cc', 812 'filters/pipeline_integration_test.cc',
750 'filters/pipeline_integration_test_base.cc', 813 'filters/pipeline_integration_test_base.cc',
751 'filters/skcanvas_video_renderer_unittest.cc', 814 'filters/skcanvas_video_renderer_unittest.cc',
752 'filters/source_buffer_stream_unittest.cc', 815 'filters/source_buffer_stream_unittest.cc',
753 'filters/video_decoder_selector_unittest.cc', 816 'filters/video_decoder_selector_unittest.cc',
754 'filters/video_renderer_base_unittest.cc', 817 'filters/video_renderer_base_unittest.cc',
818 'video/capture/screen/differ_block_unittest.cc',
819 'video/capture/screen/differ_unittest.cc',
820 'video/capture/screen/shared_buffer_unittest.cc',
821 'video/capture/screen/screen_capturer_helper_unittest.cc',
822 'video/capture/screen/screen_capturer_mac_unittest.cc',
823 'video/capture/screen/screen_capturer_unittest.cc',
755 'video/capture/video_capture_device_unittest.cc', 824 'video/capture/video_capture_device_unittest.cc',
756 'webm/cluster_builder.cc', 825 'webm/cluster_builder.cc',
757 'webm/cluster_builder.h', 826 'webm/cluster_builder.h',
758 'webm/webm_cluster_parser_unittest.cc', 827 'webm/webm_cluster_parser_unittest.cc',
759 'webm/webm_content_encodings_client_unittest.cc', 828 'webm/webm_content_encodings_client_unittest.cc',
760 'webm/webm_parser_unittest.cc', 829 'webm/webm_parser_unittest.cc',
761 ], 830 ],
762 'conditions': [ 831 'conditions': [
763 ['arm_neon == 1', { 832 ['arm_neon == 1', {
764 'defines': [ 833 'defines': [
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 'USE_CRAS', 903 'USE_CRAS',
835 ], 904 ],
836 }], 905 }],
837 ], 906 ],
838 }], 907 }],
839 [ 'target_arch=="ia32" or target_arch=="x64"', { 908 [ 'target_arch=="ia32" or target_arch=="x64"', {
840 'sources': [ 909 'sources': [
841 'base/simd/convert_rgb_to_yuv_unittest.cc', 910 'base/simd/convert_rgb_to_yuv_unittest.cc',
842 ], 911 ],
843 }], 912 }],
913 [ 'screen_capture_supported == 0', {
914 'sources/': [
915 ['exclude', '^video/capture/screen/'],
916 ],
917 }],
844 ['proprietary_codecs==1 or branding=="Chrome"', { 918 ['proprietary_codecs==1 or branding=="Chrome"', {
845 'sources': [ 919 'sources': [
846 'mp4/aac_unittest.cc', 920 'mp4/aac_unittest.cc',
847 'mp4/avc_unittest.cc', 921 'mp4/avc_unittest.cc',
848 'mp4/box_reader_unittest.cc', 922 'mp4/box_reader_unittest.cc',
849 'mp4/es_descriptor_unittest.cc', 923 'mp4/es_descriptor_unittest.cc',
850 'mp4/mp4_stream_parser_unittest.cc', 924 'mp4/mp4_stream_parser_unittest.cc',
851 'mp4/offset_byte_queue_unittest.cc', 925 'mp4/offset_byte_queue_unittest.cc',
852 'mp4/track_run_iterator_unittest.cc', 926 'mp4/track_run_iterator_unittest.cc',
853 ], 927 ],
854 }], 928 }],
855 ], 929 ],
856 }, 930 },
857 { 931 {
858 'target_name': 'media_test_support', 932 'target_name': 'media_test_support',
859 'type': 'static_library', 933 'type': 'static_library',
860 'dependencies': [ 934 'dependencies': [
861 'media', 935 'media',
862 '../base/base.gyp:base', 936 '../base/base.gyp:base',
937 '../skia/skia.gyp:skia',
863 '../testing/gmock.gyp:gmock', 938 '../testing/gmock.gyp:gmock',
864 '../testing/gtest.gyp:gtest', 939 '../testing/gtest.gyp:gtest',
865 ], 940 ],
866 'sources': [ 941 'sources': [
867 'audio/mock_audio_manager.cc', 942 'audio/mock_audio_manager.cc',
868 'audio/mock_audio_manager.h', 943 'audio/mock_audio_manager.h',
869 'audio/test_audio_input_controller_factory.cc', 944 'audio/test_audio_input_controller_factory.cc',
870 'audio/test_audio_input_controller_factory.h', 945 'audio/test_audio_input_controller_factory.h',
871 'base/fake_audio_render_callback.cc', 946 'base/fake_audio_render_callback.cc',
872 'base/fake_audio_render_callback.h', 947 'base/fake_audio_render_callback.h',
873 'base/gmock_callback_support.h', 948 'base/gmock_callback_support.h',
874 'base/mock_audio_renderer_sink.cc', 949 'base/mock_audio_renderer_sink.cc',
875 'base/mock_audio_renderer_sink.h', 950 'base/mock_audio_renderer_sink.h',
876 'base/mock_data_source_host.cc', 951 'base/mock_data_source_host.cc',
877 'base/mock_data_source_host.h', 952 'base/mock_data_source_host.h',
878 'base/mock_demuxer_host.cc', 953 'base/mock_demuxer_host.cc',
879 'base/mock_demuxer_host.h', 954 'base/mock_demuxer_host.h',
880 'base/mock_filters.cc', 955 'base/mock_filters.cc',
881 'base/mock_filters.h', 956 'base/mock_filters.h',
882 'base/test_helpers.cc', 957 'base/test_helpers.cc',
883 'base/test_helpers.h', 958 'base/test_helpers.h',
959 'video/capture/screen/screen_capturer_mock_objects.cc',
960 'video/capture/screen/screen_capturer_mock_objects.h',
961 ],
962 'conditions': [
963 [ 'screen_capture_supported == 0', {
964 'sources/': [
965 ['exclude', '^video/capture/screen/'],
966 ],
967 }],
884 ], 968 ],
885 }, 969 },
886 ], 970 ],
887 'conditions': [ 971 'conditions': [
888 ['OS != "ios"', { 972 ['OS != "ios"', {
889 'targets': [ 973 'targets': [
890 { 974 {
891 # Minimal target for NaCl and other renderer side media clients which 975 # Minimal target for NaCl and other renderer side media clients which
892 # only need to send audio data across the shared memory to the browser 976 # only need to send audio data across the shared memory to the browser
893 # process. 977 # process.
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 'dependencies': [ 1423 'dependencies': [
1340 '../base/base.gyp:base', 1424 '../base/base.gyp:base',
1341 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', 1425 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1342 'media', 1426 'media',
1343 ], 1427 ],
1344 'sources': [ 1428 'sources': [
1345 'tools/media_bench/media_bench.cc', 1429 'tools/media_bench/media_bench.cc',
1346 ], 1430 ],
1347 }, 1431 },
1348 ], 1432 ],
1349 }] 1433 }],
1434 [ 'screen_capture_supported==1 and (target_arch=="ia32" or target_arch=="x64 ")', {
1435 'targets': [
1436 {
1437 'target_name': 'differ_block_sse2',
1438 'type': 'static_library',
1439 'conditions': [
1440 [ 'os_posix == 1 and OS != "mac"', {
1441 'cflags': [
1442 '-msse2',
1443 ],
1444 }],
1445 ],
1446 'include_dirs': [
1447 '..',
1448 ],
1449 'sources': [
1450 'video/capture/screen/differ_block_sse2.cc',
1451 'video/capture/screen/differ_block_sse2.h',
1452 ],
1453 }, # end of target differ_block_sse2
1454 ],
1455 }],
1350 ], 1456 ],
1351 } 1457 }
OLDNEW
« no previous file with comments | « no previous file | media/video/capture/screen/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698