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

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, 6 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,
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 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', 19 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 'Debug': { 314 'Debug': {
314 'xcode_settings': { 315 'xcode_settings': {
315 # gcc on the mac builds horribly unoptimized sse code in debug 316 # gcc on the mac builds horribly unoptimized sse code in debug
316 # mode. Since this is rarely going to be debugged, run with full 317 # mode. Since this is rarely going to be debugged, run with full
317 # optimizations in Debug as well as Release. 318 # optimizations in Debug as well as Release.
318 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 319 'GCC_OPTIMIZATION_LEVEL': '3', # -O3
319 }, 320 },
320 }, 321 },
321 }, 322 },
322 }], 323 }],
324 [ 'target_arch=="ia32" or target_arch=="x64"', {
325 'sources': [
326 'base/simd/convert_row.asm',
327 ],
328 }],
329 [ 'OS=="win"', {
330 'variables': {
331 'object_suffix': 'obj',
332 'yasm_path': '../third_party/yasm/binaries/win/yasm<(EXECUTABLE_SUFF IX)',
333 'yasm_format': '-fwin32',
334 'yasm_flags': [
335 '-DWIN32',
336 '-DMSVC',
337 ],
338 },
339 }],
340 [ 'OS=="mac"', {
341 'dependencies': [
342 '../third_party/yasm/yasm.gyp:yasm#host',
343 ],
344 'variables': {
345 'object_suffix': 'o',
346 'yasm_path': '<(PRODUCT_DIR)/yasm',
347 'yasm_format': '-fmacho',
348 'yasm_flags': [
349 '-DMACHO',
350 ],
351 },
352 }],
353 [ 'OS=="linux"', {
354 'conditions': [
355 [ 'use_system_yasm==0', {
356 'dependencies': [
357 '../third_party/yasm/yasm.gyp:yasm#host',
358 ],
359 }],
360 ],
361 'variables': {
362 'object_suffix': 'o',
363 'conditions': [
364 [ 'use_system_yasm==1', {
365 'yasm_path': '<!(which yasm)',
366 }, {
367 'yasm_path': '<(PRODUCT_DIR)/yasm',
368 }],
369 [ 'target_arch=="ia32"', {
370 'yasm_format': '-felf',
371 'yasm_flag': '-D__X86__',
372 'yasm_flags': [
373 '-D__x86__',
374 '-DELF',
375 ],
376 }, {
377 'yasm_format': '-felf64',
378 'yasm_flag': '-D__x86_64__',
379 'yasm_flags': [
380 '-D__x86_64__',
381 '-DELF',
382 ],
383 }],
384 ],
385 },
386 }],
323 ], 387 ],
324 'sources': [ 388 'sources': [
325 'base/yuv_convert_sse2.cc', 389 'base/yuv_convert_sse2.cc',
326 ], 390 ],
391 'rules': [
392 {
393 'rule_name': 'assemble',
394 'extension': 'asm',
395 'inputs': [ '<(yasm_path)', ],
396 'outputs': [
397 '<(SHARED_INTERMEDIATE_DIR)/media/<(RULE_INPUT_ROOT).<(object_suffix )',
398 ],
399 'action': [
400 '<(yasm_path)',
401 '<(yasm_format)',
402 '<@(yasm_flags)',
403 '-Isimd/',
404 '-o', '<(SHARED_INTERMEDIATE_DIR)/media/<(RULE_INPUT_ROOT).<(object_ suffix)',
405 '<(RULE_INPUT_PATH)',
406 ],
407 'process_outputs_as_sources': 1,
408 'message': 'Building <(RULE_INPUT_ROOT).<(object_suffix)',
409 },
410 ],
327 }, 411 },
328 { 412 {
329 'target_name': 'ffmpeg_unittests', 413 'target_name': 'ffmpeg_unittests',
330 'type': 'executable', 414 'type': 'executable',
331 'dependencies': [ 415 'dependencies': [
332 'media', 416 'media',
333 'media_test_support', 417 'media_test_support',
334 '../base/base.gyp:base', 418 '../base/base.gyp:base',
335 '../base/base.gyp:base_i18n', 419 '../base/base.gyp:base_i18n',
336 '../base/base.gyp:test_support_base', 420 '../base/base.gyp:test_support_base',
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 ], 876 ],
793 }], 877 }],
794 ], 878 ],
795 } 879 }
796 880
797 # Local Variables: 881 # Local Variables:
798 # tab-width:2 882 # tab-width:2
799 # indent-tabs-mode:nil 883 # indent-tabs-mode:nil
800 # End: 884 # End:
801 # vim: set expandtab tabstop=2 shiftwidth=2: 885 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« media/base/simd/convert_row_yuv.inc ('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