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

Side by Side Diff: content/content_common.gypi

Issue 828063009: Clean up V4L2 codec-related flags and defines (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 'dependencies': [ 6 'dependencies': [
7 '../base/base.gyp:base', 7 '../base/base.gyp:base',
8 '../components/tracing.gyp:tracing', 8 '../components/tracing.gyp:tracing',
9 '../gpu/command_buffer/command_buffer.gyp:gles2_utils', 9 '../gpu/command_buffer/command_buffer.gyp:gles2_utils',
10 '../net/net.gyp:net', 10 '../net/net.gyp:net',
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 'common/gpu/media/android_video_encode_accelerator.h', 755 'common/gpu/media/android_video_encode_accelerator.h',
756 ], 756 ],
757 }], 757 }],
758 ['enable_webrtc==1', { 758 ['enable_webrtc==1', {
759 'dependencies': [ 759 'dependencies': [
760 '../third_party/libjingle/libjingle.gyp:libjingle', 760 '../third_party/libjingle/libjingle.gyp:libjingle',
761 ], 761 ],
762 }], 762 }],
763 ['use_v4lplugin==1 and chromeos==1', { 763 ['use_v4lplugin==1 and chromeos==1', {
764 'defines': [ 764 'defines': [
765 'USE_LIBV4L2', 765 'USE_LIBV4L2'
766 ], 766 ],
767 'variables': { 767 'variables': {
768 'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py', 768 'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
769 'extra_header': 'common/gpu/media/v4l2_stub_header.fragment', 769 'extra_header': 'common/gpu/media/v4l2_stub_header.fragment',
770 'sig_files': ['common/gpu/media/v4l2.sig'], 770 'sig_files': ['common/gpu/media/v4l2.sig'],
771 'outfile_type': 'posix_stubs', 771 'outfile_type': 'posix_stubs',
772 'stubs_filename_root': 'v4l2_stubs', 772 'stubs_filename_root': 'v4l2_stubs',
773 'project_path': 'content/common/gpu/media', 773 'project_path': 'content/common/gpu/media',
774 'intermediate_dir': '<(INTERMEDIATE_DIR)', 774 'intermediate_dir': '<(INTERMEDIATE_DIR)',
775 'output_root': '<(SHARED_INTERMEDIATE_DIR)/v4l2', 775 'output_root': '<(SHARED_INTERMEDIATE_DIR)/v4l2',
(...skipping 22 matching lines...) Expand all
798 '-s', '<(stubs_filename_root)', 798 '-s', '<(stubs_filename_root)',
799 '-p', '<(project_path)', 799 '-p', '<(project_path)',
800 '<@(_inputs)', 800 '<@(_inputs)',
801 ], 801 ],
802 'process_outputs_as_sources': 1, 802 'process_outputs_as_sources': 1,
803 'message': 'Generating libv4l2 stubs for dynamic loading', 803 'message': 'Generating libv4l2 stubs for dynamic loading',
804 }, 804 },
805 ], 805 ],
806 }], 806 }],
807 ['chromeos==1 and use_v4l2_codec==1', { 807 ['chromeos==1 and use_v4l2_codec==1', {
808 'direct_dependent_settings': {
Pawel Osciak 2015/01/21 09:07:01 Could you please split the CL into two, one includ
809 'defines': [
810 'USE_V4L2_CODEC'
piman 2015/01/20 19:22:49 Why is this needed? USE_V4L2_CODEC is not used in
henryhsu 2015/01/21 01:36:06 video_decode_accelerator_unittest uses this defini
811 ],
812 },
808 'defines': [ 813 'defines': [
809 'USE_V4L2_CODEC', 814 'USE_V4L2_CODEC'
810 ], 815 ],
811 }], 816 }],
812 ['chromeos==1 and (target_arch=="arm" or (use_ozone==1 and use_v4l2_codec==1 ))', { 817 ['chromeos==1 and (target_arch=="arm" or (use_ozone==1 and use_v4l2_codec==1 ))', {
813 'dependencies': [ 818 'dependencies': [
814 '../media/media.gyp:media', 819 '../media/media.gyp:media',
815 ], 820 ],
816 'sources': [ 821 'sources': [
817 'common/gpu/media/generic_v4l2_video_device.cc', 822 'common/gpu/media/generic_v4l2_video_device.cc',
818 'common/gpu/media/generic_v4l2_video_device.h', 823 'common/gpu/media/generic_v4l2_video_device.h',
819 'common/gpu/media/v4l2_image_processor.cc', 824 'common/gpu/media/v4l2_image_processor.cc',
820 'common/gpu/media/v4l2_image_processor.h', 825 'common/gpu/media/v4l2_image_processor.h',
821 'common/gpu/media/v4l2_video_decode_accelerator.cc', 826 'common/gpu/media/v4l2_video_decode_accelerator.cc',
822 'common/gpu/media/v4l2_video_decode_accelerator.h', 827 'common/gpu/media/v4l2_video_decode_accelerator.h',
823 'common/gpu/media/v4l2_video_device.cc', 828 'common/gpu/media/v4l2_video_device.cc',
824 'common/gpu/media/v4l2_video_device.h', 829 'common/gpu/media/v4l2_video_device.h',
825 'common/gpu/media/v4l2_video_encode_accelerator.cc', 830 'common/gpu/media/v4l2_video_encode_accelerator.cc',
826 'common/gpu/media/v4l2_video_encode_accelerator.h', 831 'common/gpu/media/v4l2_video_encode_accelerator.h',
832 'common/gpu/media/accelerated_video_decoder.h',
Pawel Osciak 2015/01/22 08:30:02 Order please.
833 'common/gpu/media/h264_decoder.cc',
834 'common/gpu/media/h264_decoder.h',
835 'common/gpu/media/h264_dpb.cc',
836 'common/gpu/media/h264_dpb.h',
837 'common/gpu/media/v4l2_slice_video_decode_accelerator.cc',
838 'common/gpu/media/v4l2_slice_video_decode_accelerator.h',
839 'common/gpu/media/vp8_decoder.cc',
840 'common/gpu/media/vp8_decoder.h',
841 'common/gpu/media/vp8_picture.cc',
842 'common/gpu/media/vp8_picture.h',
827 ], 843 ],
828 'include_dirs': [ 844 'include_dirs': [
829 '<(DEPTH)/third_party/khronos', 845 '<(DEPTH)/third_party/khronos',
830 ], 846 ],
831 'conditions': [ 847 'conditions': [
832 ['target_arch == "arm"', { 848 ['target_arch == "arm"', {
833 'sources': [ 849 'sources': [
834 'common/gpu/media/tegra_v4l2_video_device.cc', 850 'common/gpu/media/tegra_v4l2_video_device.cc',
835 'common/gpu/media/tegra_v4l2_video_device.h', 851 'common/gpu/media/tegra_v4l2_video_device.h',
836 ], 852 ],
837 'conditions': [
838 ['use_v4lplugin==1', {
839 'sources': [
840 'common/gpu/media/accelerated_video_decoder.h',
841 'common/gpu/media/h264_decoder.cc',
842 'common/gpu/media/h264_decoder.h',
843 'common/gpu/media/h264_dpb.cc',
844 'common/gpu/media/h264_dpb.h',
845 'common/gpu/media/v4l2_slice_video_decode_accelerator.cc',
846 'common/gpu/media/v4l2_slice_video_decode_accelerator.h',
847 'common/gpu/media/vp8_decoder.cc',
848 'common/gpu/media/vp8_decoder.h',
849 'common/gpu/media/vp8_picture.cc',
850 'common/gpu/media/vp8_picture.h',
851 ],
852 }],
853 ],
854 }], 853 }],
855 ], 854 ],
856 }], 855 }],
857 ['target_arch != "arm" and chromeos == 1', { 856 ['target_arch != "arm" and chromeos == 1', {
858 'dependencies': [ 857 'dependencies': [
859 '../media/media.gyp:media', 858 '../media/media.gyp:media',
860 '../third_party/libyuv/libyuv.gyp:libyuv', 859 '../third_party/libyuv/libyuv.gyp:libyuv',
861 ], 860 ],
862 'sources': [ 861 'sources': [
863 'common/gpu/media/va_surface.h', 862 'common/gpu/media/va_surface.h',
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 'common/gpu/client/gpu_memory_buffer_impl_ozone.cc', 1032 'common/gpu/client/gpu_memory_buffer_impl_ozone.cc',
1034 'common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc', 1033 'common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc',
1035 'common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h', 1034 'common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h',
1036 'common/gpu/gpu_memory_buffer_factory_ozone.cc', 1035 'common/gpu/gpu_memory_buffer_factory_ozone.cc',
1037 'common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc', 1036 'common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc',
1038 'common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h', 1037 'common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h',
1039 ], 1038 ],
1040 }], 1039 }],
1041 ], 1040 ],
1042 } 1041 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698