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

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, 5 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 'player_x11_renderer%': 'x11', 8 'player_x11_renderer%': 'x11',
9 'use_system_yasm%': 0,
Alpha Left Google 2011/08/22 14:16:59 We can drop this and assume we always use our own
9 }, 10 },
10 'targets': [ 11 'targets': [
11 { 12 {
12 'target_name': 'media', 13 'target_name': 'media',
13 'type': 'static_library', 14 'type': 'static_library',
14 'dependencies': [ 15 'dependencies': [
15 'yuv_convert', 16 'yuv_convert',
16 '../base/base.gyp:base', 17 '../base/base.gyp:base',
17 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 18 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
18 '../build/temp_gyp/googleurl.gyp:googleurl', 19 '../build/temp_gyp/googleurl.gyp:googleurl',
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 'Debug': { 337 'Debug': {
337 'xcode_settings': { 338 'xcode_settings': {
338 # gcc on the mac builds horribly unoptimized sse code in debug 339 # gcc on the mac builds horribly unoptimized sse code in debug
339 # mode. Since this is rarely going to be debugged, run with full 340 # mode. Since this is rarely going to be debugged, run with full
340 # optimizations in Debug as well as Release. 341 # optimizations in Debug as well as Release.
341 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 342 'GCC_OPTIMIZATION_LEVEL': '3', # -O3
342 }, 343 },
343 }, 344 },
344 }, 345 },
345 }], 346 }],
347 [ 'target_arch=="ia32" or target_arch=="x64"', {
348 'sources': [
349 'base/simd/yuv_row.asm',
350 ],
351 }],
352 [ 'OS=="win"', {
353 'variables': {
354 'object_suffix': 'obj',
355 'yasm_path': '../third_party/yasm/binaries/win/yasm<(EXECUTABLE_SUFF IX)',
Alpha Left Google 2011/08/22 14:16:59 We can always depend on yasm#host now on all platf
356 'yasm_format': '-fwin32',
357 'yasm_flags': [
358 '-DWIN32',
359 '-DMSVC',
360 ],
361 },
362 }],
363 [ 'OS=="mac"', {
364 'dependencies': [
365 '../third_party/yasm/yasm.gyp:yasm#host',
366 ],
367 'variables': {
368 'object_suffix': 'o',
369 'yasm_path': '<(PRODUCT_DIR)/yasm',
370 'yasm_format': '-fmacho',
371 'yasm_flags': [
372 '-DMACHO',
373 ],
374 },
375 }],
376 [ 'OS=="linux"', {
377 'conditions': [
378 [ 'use_system_yasm==0', {
379 'dependencies': [
380 '../third_party/yasm/yasm.gyp:yasm#host',
381 ],
382 }],
383 ],
384 'variables': {
385 'object_suffix': 'o',
386 'conditions': [
387 [ 'use_system_yasm==1', {
388 'yasm_path': '<!(which yasm)',
389 }, {
390 'yasm_path': '<(PRODUCT_DIR)/yasm',
391 }],
392 [ 'target_arch=="ia32"', {
393 'yasm_format': '-felf',
394 'yasm_flag': '-D__X86__',
395 'yasm_flags': [
396 '-D__x86__',
397 '-DELF',
398 ],
399 }, {
400 'yasm_format': '-felf64',
401 'yasm_flag': '-D__x86_64__',
402 'yasm_flags': [
403 '-D__x86_64__',
404 '-DELF',
405 ],
406 }],
407 ],
408 },
409 }],
346 ], 410 ],
347 'sources': [ 411 'sources': [
348 'base/yuv_convert_sse2.cc', 412 'base/yuv_convert_sse2.cc',
413 'base/simd/yuv_convert.cc',
414 ],
415 'rules': [
416 {
417 'rule_name': 'assemble',
418 'extension': 'asm',
419 'inputs': [ '<(yasm_path)', ],
420 'outputs': [
421 '<(SHARED_INTERMEDIATE_DIR)/media/<(RULE_INPUT_ROOT).<(object_suffix )',
422 ],
423 'action': [
424 '<(yasm_path)',
425 '<(yasm_format)',
426 '<@(yasm_flags)',
427 '-Isimd/',
428 '-o', '<(SHARED_INTERMEDIATE_DIR)/media/<(RULE_INPUT_ROOT).<(object_ suffix)',
429 '<(RULE_INPUT_PATH)',
430 ],
431 'process_outputs_as_sources': 1,
432 'message': 'Building <(RULE_INPUT_ROOT).<(object_suffix)',
433 },
349 ], 434 ],
350 }, 435 },
351 { 436 {
352 'target_name': 'ffmpeg_unittests', 437 'target_name': 'ffmpeg_unittests',
353 'type': 'executable', 438 'type': 'executable',
354 'dependencies': [ 439 'dependencies': [
355 'media', 440 'media',
356 'media_test_support', 441 'media_test_support',
357 '../base/base.gyp:base', 442 '../base/base.gyp:base',
358 '../base/base.gyp:base_i18n', 443 '../base/base.gyp:base_i18n',
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 ], 825 ],
741 }], 826 }],
742 ], 827 ],
743 } 828 }
744 829
745 # Local Variables: 830 # Local Variables:
746 # tab-width:2 831 # tab-width:2
747 # indent-tabs-mode:nil 832 # indent-tabs-mode:nil
748 # End: 833 # End:
749 # vim: set expandtab tabstop=2 shiftwidth=2: 834 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« media/base/yuv_convert.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