diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-08 19:32:27 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-08 19:32:27 +0000 |
commit | 67637b8ab2e6bef2ba134048461d14c9ecfff0c6 (patch) | |
tree | 4f8385e55be8edbcf6d3445957c516de50f3a398 /media/media.gyp | |
parent | 018a96fdb1e10160e0f12f066d9389739b37a97e (diff) | |
download | chromium_src-67637b8ab2e6bef2ba134048461d14c9ecfff0c6.zip chromium_src-67637b8ab2e6bef2ba134048461d14c9ecfff0c6.tar.gz chromium_src-67637b8ab2e6bef2ba134048461d14c9ecfff0c6.tar.bz2 |
Runtime check to enable SSE2 color space conversion code
This will make text in chromoting view to looks much nicer.
BUG=72218
TEST=Text looks much better in chromoting
Review URL: http://codereview.chromium.org/6410127
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74154 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/media.gyp')
-rw-r--r-- | media/media.gyp | 75 |
1 files changed, 67 insertions, 8 deletions
diff --git a/media/media.gyp b/media/media.gyp index f33d191..b2d8990 100644 --- a/media/media.gyp +++ b/media/media.gyp @@ -12,6 +12,7 @@ 'target_name': 'media', 'type': '<(library)', 'dependencies': [ + 'yuv_convert', '../base/base.gyp:base', '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', ], @@ -113,14 +114,6 @@ 'base/state_matrix.h', 'base/video_frame.cc', 'base/video_frame.h', - 'base/yuv_convert.cc', - 'base/yuv_convert.h', - 'base/yuv_convert_c.cc', - 'base/yuv_convert_sse2.cc', - 'base/yuv_row_win.cc', - 'base/yuv_row_posix.cc', - 'base/yuv_row_table.cc', - 'base/yuv_row.h', 'ffmpeg/ffmpeg_common.cc', 'ffmpeg/ffmpeg_common.h', 'ffmpeg/ffmpeg_util.cc', @@ -224,6 +217,72 @@ ], }, { + 'target_name': 'cpu_features', + 'type': '<(library)', + 'include_dirs': [ + '..', + ], + 'conditions': [ + [ 'target_arch == "ia32" or target_arch == "x64"', { + 'sources': [ + 'base/cpu_features_x86.cc', + ], + }], + [ 'target_arch == "arm"', { + 'sources': [ + 'base/cpu_features_arm.cc', + ], + }], + ], + 'sources': [ + 'base/cpu_features.h', + ], + }, + { + 'target_name': 'yuv_convert', + 'type': '<(library)', + 'include_dirs': [ + '..', + ], + 'dependencies': [ + 'cpu_features', + ], + 'conditions': [ + [ 'target_arch == "ia32" or target_arch == "x64"', { + 'dependencies': [ + 'yuv_convert_sse2', + ], + }], + ], + 'sources': [ + 'base/yuv_convert.cc', + 'base/yuv_convert.h', + 'base/yuv_convert_internal.h', + 'base/yuv_convert_c.cc', + 'base/yuv_row_win.cc', + 'base/yuv_row_posix.cc', + 'base/yuv_row_table.cc', + 'base/yuv_row.h', + ], + }, + { + 'target_name': 'yuv_convert_sse2', + 'type': '<(library)', + 'include_dirs': [ + '..', + ], + 'conditions': [ + [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { + 'cflags': [ + '-msse2', + ], + }], + ], + 'sources': [ + 'base/yuv_convert_sse2.cc', + ], + }, + { 'target_name': 'ffmpeg_unittests', 'type': 'executable', 'dependencies': [ |