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

Side by Side Diff: media/media.gyp

Issue 1541513002: Switch from build-time to run-time flags for Project Spitzer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « media/base/BUILD.gn ('k') | media/media_options.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 # Override to dynamically link the cras (ChromeOS audio) library. 8 # Override to dynamically link the cras (ChromeOS audio) library.
9 'use_cras%': 0, 9 'use_cras%': 0,
10 # Option e.g. for Linux distributions to link pulseaudio directly 10 # Option e.g. for Linux distributions to link pulseaudio directly
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 'filters/ffmpeg_video_decoder.h', 741 'filters/ffmpeg_video_decoder.h',
742 ], 742 ],
743 'defines': [ 743 'defines': [
744 'DISABLE_USER_INPUT_MONITOR', 744 'DISABLE_USER_INPUT_MONITOR',
745 ], 745 ],
746 'conditions': [ 746 'conditions': [
747 ['media_use_ffmpeg == 1', { 747 ['media_use_ffmpeg == 1', {
748 'defines': [ 748 'defines': [
749 # On Android, FFmpeg is built without video decoders. We only 749 # On Android, FFmpeg is built without video decoders. We only
750 # support hardware video decoding. 750 # support hardware video decoding.
751 'ENABLE_MEDIA_PIPELINE_ON_ANDROID',
752 'DISABLE_FFMPEG_VIDEO_DECODERS', 751 'DISABLE_FFMPEG_VIDEO_DECODERS',
753 ], 752 ],
754 'direct_dependent_settings': { 753 'direct_dependent_settings': {
755 'defines': [ 754 'defines': [
756 'ENABLE_MEDIA_PIPELINE_ON_ANDROID',
757 'DISABLE_FFMPEG_VIDEO_DECODERS', 755 'DISABLE_FFMPEG_VIDEO_DECODERS',
758 ], 756 ],
759 }, 757 },
760 }, { # media_use_ffmpeg == 0
761 'sources!': [
762 'filters/opus_audio_decoder.cc',
763 'filters/opus_audio_decoder.h',
764 ],
765 }], 758 }],
766 ], 759 ],
767 }], 760 }],
768 # For VaapiVideoEncodeAccelerator. 761 # For VaapiVideoEncodeAccelerator.
769 ['target_arch != "arm" and chromeos == 1', { 762 ['target_arch != "arm" and chromeos == 1', {
770 'sources': [ 763 'sources': [
771 'filters/h264_bitstream_buffer.cc', 764 'filters/h264_bitstream_buffer.cc',
772 'filters/h264_bitstream_buffer.h', 765 'filters/h264_bitstream_buffer.h',
773 ], 766 ],
774 }], 767 }],
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
1348 'sources!': [ 1341 'sources!': [
1349 'ffmpeg/ffmpeg_common_unittest.cc', 1342 'ffmpeg/ffmpeg_common_unittest.cc',
1350 'filters/audio_decoder_unittest.cc', 1343 'filters/audio_decoder_unittest.cc',
1351 'filters/ffmpeg_aac_bitstream_converter_unittest.cc', 1344 'filters/ffmpeg_aac_bitstream_converter_unittest.cc',
1352 'filters/ffmpeg_demuxer_unittest.cc', 1345 'filters/ffmpeg_demuxer_unittest.cc',
1353 'filters/ffmpeg_glue_unittest.cc', 1346 'filters/ffmpeg_glue_unittest.cc',
1354 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc', 1347 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
1355 ], 1348 ],
1356 }], 1349 }],
1357 # Even if FFmpeg is enabled on Android we don't want these. 1350 # Even if FFmpeg is enabled on Android we don't want these.
1358 # TODO(watk): Refactor tests that could be made to run on Android. 1351 # TODO(watk): Refactor tests that could be made to run on Android. See
1352 # http://crbug.com/570762
1359 ['media_use_ffmpeg==0 or OS=="android"', { 1353 ['media_use_ffmpeg==0 or OS=="android"', {
1360 'sources!': [ 1354 'sources!': [
1361 'base/audio_video_metadata_extractor_unittest.cc', 1355 'base/audio_video_metadata_extractor_unittest.cc',
1362 'base/container_names_unittest.cc',
1363 'base/media_file_checker_unittest.cc', 1356 'base/media_file_checker_unittest.cc',
1364 'filters/audio_file_reader_unittest.cc',
1365 'filters/blocking_url_protocol_unittest.cc',
1366 'filters/ffmpeg_video_decoder_unittest.cc', 1357 'filters/ffmpeg_video_decoder_unittest.cc',
1367 'filters/in_memory_url_protocol_unittest.cc',
1368 'test/pipeline_integration_test.cc', 1358 'test/pipeline_integration_test.cc',
1369 'test/pipeline_integration_test_base.cc', 1359 'test/pipeline_integration_test_base.cc',
1360
1361 # These tests are confused by Android always having proprietary
1362 # codecs enabled, but ffmpeg_branding=Chromium. These should be
1363 # fixed, see http://crbug.com/570762.
1364 'filters/audio_decoder_unittest.cc',
1365 'filters/audio_file_reader_unittest.cc',
1366 'filters/ffmpeg_demuxer_unittest.cc',
1370 ], 1367 ],
1371 }], 1368 }],
1372 1369
1373 ['(os_posix==1 and OS!="mac") or (OS=="win" and component!="shared_libra ry" and win_use_allocator_shim==1)', { 1370 ['(os_posix==1 and OS!="mac") or (OS=="win" and component!="shared_libra ry" and win_use_allocator_shim==1)', {
1374 'conditions': [ 1371 'conditions': [
1375 ['use_allocator!="none"', { 1372 ['use_allocator!="none"', {
1376 'dependencies': [ 1373 'dependencies': [
1377 '../base/allocator/allocator.gyp:allocator', 1374 '../base/allocator/allocator.gyp:allocator',
1378 ], 1375 ],
1379 }], 1376 }],
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 'base/yuv_convert_perftest.cc', 1471 'base/yuv_convert_perftest.cc',
1475 'test/pipeline_integration_perftest.cc', 1472 'test/pipeline_integration_perftest.cc',
1476 'test/pipeline_integration_test_base.cc', 1473 'test/pipeline_integration_test_base.cc',
1477 ], 1474 ],
1478 'conditions': [ 1475 'conditions': [
1479 ['arm_neon==1', { 1476 ['arm_neon==1', {
1480 'defines': [ 1477 'defines': [
1481 'USE_NEON' 1478 'USE_NEON'
1482 ], 1479 ],
1483 }], 1480 }],
1481 ['OS=="android" or media_use_ffmpeg==0', {
1482 # TODO(watk): Refactor tests that could be made to run on Android.
1483 # See http://crbug.com/570762
1484 'sources!': [
1485 'base/demuxer_perftest.cc',
1486 'test/pipeline_integration_perftest.cc',
1487 'test/pipeline_integration_test_base.cc',
1488 ],
1489 }],
1484 ['OS=="android"', { 1490 ['OS=="android"', {
1485 'dependencies': [ 1491 'dependencies': [
1486 '../testing/android/native_test.gyp:native_test_native_code', 1492 '../testing/android/native_test.gyp:native_test_native_code',
1487 '../ui/gl/gl.gyp:gl', 1493 '../ui/gl/gl.gyp:gl',
1488 ], 1494 ],
1489 }], 1495 }],
1490 ['media_use_ffmpeg==1', { 1496 ['media_use_ffmpeg==1', {
1491 'dependencies': [ 1497 'dependencies': [
1492 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', 1498 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1493 ], 1499 ],
1494 }, { # media_use_ffmpeg==0
1495 'sources!': [
1496 'base/demuxer_perftest.cc',
1497 'test/pipeline_integration_perftest.cc',
1498 'test/pipeline_integration_test_base.cc',
1499 ],
1500 }], 1500 }],
1501 ], 1501 ],
1502 }, 1502 },
1503 { 1503 {
1504 # GN version: //media/audio:unittests 1504 # GN version: //media/audio:unittests
1505 # For including the sources and configs in multiple test targets. 1505 # For including the sources and configs in multiple test targets.
1506 'target_name': 'audio_test_config', 1506 'target_name': 'audio_test_config',
1507 'type': 'none', 1507 'type': 'none',
1508 'direct_dependent_settings': { 1508 'direct_dependent_settings': {
1509 'sources': [ 1509 'sources': [
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1981 ], 1981 ],
1982 'sources': [ 1982 'sources': [
1983 'media_unittests_apk.isolate', 1983 'media_unittests_apk.isolate',
1984 ], 1984 ],
1985 }, 1985 },
1986 ], 1986 ],
1987 }, 1987 },
1988 ], 1988 ],
1989 ], 1989 ],
1990 }], 1990 }],
1991 ['media_use_ffmpeg==1', { 1991 # TODO(watk): Refactor tests that could be made to run on Android. See
1992 # http://crbug.com/570762
1993 ['media_use_ffmpeg==1 and OS!="android"', {
1992 'targets': [ 1994 'targets': [
1993 { 1995 {
1994 # GN version: //media:ffmpeg_regression_tests 1996 # GN version: //media:ffmpeg_regression_tests
1995 'target_name': 'ffmpeg_regression_tests', 1997 'target_name': 'ffmpeg_regression_tests',
1996 'type': 'executable', 1998 'type': 'executable',
1997 'dependencies': [ 1999 'dependencies': [
1998 '../base/base.gyp:test_support_base', 2000 '../base/base.gyp:test_support_base',
1999 '../testing/gmock.gyp:gmock', 2001 '../testing/gmock.gyp:gmock',
2000 '../testing/gtest.gyp:gtest', 2002 '../testing/gtest.gyp:gtest',
2001 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', 2003 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
2140 'dependencies': [ 2142 'dependencies': [
2141 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', 2143 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
2142 ], 2144 ],
2143 }], 2145 }],
2144 ], 2146 ],
2145 }, 2147 },
2146 ], 2148 ],
2147 }], 2149 }],
2148 ], 2150 ],
2149 } 2151 }
OLDNEW
« no previous file with comments | « media/base/BUILD.gn ('k') | media/media_options.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698