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

Side by Side Diff: media/media.gyp

Issue 7003082: Implements RGB to YV12 conversion in YASM. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 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 'use_system_yasm%': 0,
Alpha Left Google 2011/09/01 13:24:45 Don't need this, we always build our own yasm.
10 }, 11 },
11 'targets': [ 12 'targets': [
12 { 13 {
13 'target_name': 'media', 14 'target_name': 'media',
14 'type': '<(component)', 15 'type': '<(component)',
15 'dependencies': [ 16 'dependencies': [
16 'yuv_convert', 17 'yuv_convert',
17 '../base/base.gyp:base', 18 '../base/base.gyp:base',
18 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 19 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
19 '../build/temp_gyp/googleurl.gyp:googleurl', 20 '../build/temp_gyp/googleurl.gyp:googleurl',
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 'Debug': { 374 'Debug': {
374 'xcode_settings': { 375 'xcode_settings': {
375 # gcc on the mac builds horribly unoptimized sse code in debug 376 # gcc on the mac builds horribly unoptimized sse code in debug
376 # mode. Since this is rarely going to be debugged, run with full 377 # mode. Since this is rarely going to be debugged, run with full
377 # optimizations in Debug as well as Release. 378 # optimizations in Debug as well as Release.
378 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 379 'GCC_OPTIMIZATION_LEVEL': '3', # -O3
379 }, 380 },
380 }, 381 },
381 }, 382 },
382 }], 383 }],
384 [ 'target_arch=="ia32" or target_arch=="x64"', {
385 'sources': [
386 'base/simd/convert_rgb_to_yuv_ssse3.asm',
387 'base/simd/convert_yuv_to_rgb_ssse3.asm',
388 ],
389 }],
390 [ 'OS=="win"', {
391 'variables': {
392 'object_suffix': 'obj',
393 'yasm_path': '../third_party/yasm/binaries/win/yasm<(EXECUTABLE_SUFF IX)',
394 'yasm_format': '-fwin32',
395 'yasm_flags': [
396 '-DWIN32',
397 '-DMSVC',
398 ],
399 },
400 }],
401 [ 'OS=="mac"', {
402 'dependencies': [
403 '../third_party/yasm/yasm.gyp:yasm#host',
404 ],
405 'variables': {
406 'object_suffix': 'o',
407 'yasm_path': '<(PRODUCT_DIR)/yasm',
408 'yasm_format': '-fmacho',
409 'yasm_flags': [
410 '-DMACHO',
411 ],
412 },
413 }],
414 [ 'OS=="linux"', {
415 'conditions': [
416 [ 'use_system_yasm==0', {
417 'dependencies': [
418 '../third_party/yasm/yasm.gyp:yasm#host',
419 ],
420 }],
421 ],
422 'variables': {
423 'object_suffix': 'o',
424 'conditions': [
425 [ 'use_system_yasm==1', {
426 'yasm_path': '<!(which yasm)',
427 }, {
428 'yasm_path': '<(PRODUCT_DIR)/yasm',
429 }],
430 [ 'target_arch=="ia32"', {
431 'yasm_format': '-felf',
432 'yasm_flags': [
433 '-DX86_32',
434 '-DELF',
435 ],
436 }, {
437 'yasm_format': '-felf64',
438 'yasm_flags': [
439 '-DARCH_X86_64',
440 '-DELF',
441 ],
442 }],
443 ],
444 },
445 }],
383 ], 446 ],
384 'sources': [ 447 'sources': [
385 'base/yuv_convert_sse2.cc', 448 'base/yuv_convert_sse2.cc',
449 'base/simd/convert_rgb_to_yuv.cc',
450 'base/simd/convert_yuv_to_rgb.cc',
451 ],
452 'rules': [
453 {
454 'rule_name': 'assemble',
455 'extension': 'asm',
456 'inputs': [ '<(yasm_path)', ],
457 'outputs': [
458 '<(SHARED_INTERMEDIATE_DIR)/media/<(RULE_INPUT_ROOT).<(object_suffix )',
459 ],
460 'action': [
461 '<(yasm_path)',
462 '<(yasm_format)',
463 '<@(yasm_flags)',
464 '-DCHROMIUM',
465 '-Isimd/',
466 '-o', '<(SHARED_INTERMEDIATE_DIR)/media/<(RULE_INPUT_ROOT).<(object_ suffix)',
467 '<(RULE_INPUT_PATH)',
468 ],
469 'process_outputs_as_sources': 1,
470 'message': 'Building <(RULE_INPUT_ROOT).<(object_suffix)',
471 },
386 ], 472 ],
387 }, 473 },
388 { 474 {
389 'target_name': 'ffmpeg_unittests', 475 'target_name': 'ffmpeg_unittests',
390 'type': 'executable', 476 'type': 'executable',
391 'dependencies': [ 477 'dependencies': [
392 'media', 478 'media',
393 'media_test_support', 479 'media_test_support',
394 '../base/base.gyp:base', 480 '../base/base.gyp:base',
395 '../base/base.gyp:base_i18n', 481 '../base/base.gyp:base_i18n',
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 'tools/player_x11/gl_video_renderer.h', 832 'tools/player_x11/gl_video_renderer.h',
747 'tools/player_x11/player_x11.cc', 833 'tools/player_x11/player_x11.cc',
748 'tools/player_x11/x11_video_renderer.cc', 834 'tools/player_x11/x11_video_renderer.cc',
749 'tools/player_x11/x11_video_renderer.h', 835 'tools/player_x11/x11_video_renderer.h',
750 ], 836 ],
751 }, 837 },
752 ], 838 ],
753 }], 839 }],
754 ], 840 ],
755 } 841 }
OLDNEW
« media/base/yuv_convert_unittest.cc ('K') | « media/base/yuv_convert_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698