Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 PulseAudio library. | 8 # Override to dynamically link the PulseAudio library. |
| 9 'use_pulseaudio%': 0, | 9 'use_pulseaudio%': 0, |
| 10 # Override to dynamically link the cras (ChromeOS audio) library. | 10 # Override to dynamically link the cras (ChromeOS audio) library. |
| 11 'use_cras%': 0, | 11 'use_cras%': 0, |
| 12 'conditions': [ | 12 'conditions': [ |
| 13 ['OS == "android" or OS == "ios"', { | 13 ['OS == "android" or OS == "ios"', { |
| 14 # Android and iOS don't use ffmpeg. | 14 # Android and iOS don't use ffmpeg. |
| 15 'use_ffmpeg%': 0, | 15 'use_ffmpeg%': 0, |
| 16 # Android and iOS don't use libvpx. | 16 # Android and iOS don't use libvpx. |
| 17 'use_libvpx%': 0, | 17 'use_libvpx%': 0, |
| 18 }, { # 'OS != "android" and OS != "ios"' | 18 }, { # 'OS != "android" and OS != "ios"' |
| 19 'use_ffmpeg%': 1, | 19 'use_ffmpeg%': 1, |
| 20 'use_libvpx%': 1, | 20 'use_libvpx%': 1, |
| 21 }], | 21 }], |
| 22 # Screen capturer works only on Windows, OSX and Linux. | 22 # Screen capturer works only on Windows, OSX and Linux. |
| 23 ['OS=="win" or OS=="mac" or OS=="linux"', { | 23 ['OS=="win" or OS=="mac" or OS=="linux"', { |
| 24 'screen_capture_supported%': 1, | 24 'screen_capture_supported%': 1, |
| 25 }, { | 25 }, { |
| 26 'screen_capture_supported%': 0, | 26 'screen_capture_supported%': 0, |
| 27 }], | 27 }], |
| 28 # ALSA usage. | |
| 29 ['OS=="linux" or OS=="freebsd" or OS=="solaris"', { | |
| 30 'use_alsa%': 1, | |
| 31 }, { | |
| 32 'use_alsa%': 0, | |
| 33 }], | |
| 28 ], | 34 ], |
| 29 }, | 35 }, |
| 30 'targets': [ | 36 'targets': [ |
| 31 { | 37 { |
| 32 'target_name': 'media', | 38 'target_name': 'media', |
| 33 'type': '<(component)', | 39 'type': '<(component)', |
| 34 'dependencies': [ | 40 'dependencies': [ |
| 35 '../base/base.gyp:base', | 41 '../base/base.gyp:base', |
| 36 '../build/temp_gyp/googleurl.gyp:googleurl', | 42 '../build/temp_gyp/googleurl.gyp:googleurl', |
| 37 '../crypto/crypto.gyp:crypto', | 43 '../crypto/crypto.gyp:crypto', |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 543 '../third_party/libvpx/libvpx.gyp:libvpx', | 549 '../third_party/libvpx/libvpx.gyp:libvpx', |
| 544 '../third_party/libyuv/libyuv.gyp:libyuv', | 550 '../third_party/libyuv/libyuv.gyp:libyuv', |
| 545 ], | 551 ], |
| 546 'sources': [ | 552 'sources': [ |
| 547 'webm/chromeos/ebml_writer.cc', | 553 'webm/chromeos/ebml_writer.cc', |
| 548 'webm/chromeos/ebml_writer.h', | 554 'webm/chromeos/ebml_writer.h', |
| 549 'webm/chromeos/webm_encoder.cc', | 555 'webm/chromeos/webm_encoder.cc', |
| 550 'webm/chromeos/webm_encoder.h', | 556 'webm/chromeos/webm_encoder.h', |
| 551 ], | 557 ], |
| 552 }], | 558 }], |
| 553 ['OS=="linux" or OS=="freebsd" or OS=="solaris"', { | 559 ['use_alsa==1', { |
|
DaleCurtis
2013/02/21 20:57:29
Long term, ideally, I'd like to get rid of all the
| |
| 554 'link_settings': { | 560 'link_settings': { |
| 555 'libraries': [ | 561 'libraries': [ |
| 556 '-lasound', | 562 '-lasound', |
| 557 ], | 563 ], |
| 558 }, | 564 }, |
| 559 }], | 565 }, { # use_alsa==0 |
| 560 ['OS=="openbsd"', { | |
| 561 'sources/': [ ['exclude', '/alsa_' ], | 566 'sources/': [ ['exclude', '/alsa_' ], |
| 562 ['exclude', '/audio_manager_linux' ] ], | 567 ['exclude', '/audio_manager_linux' ] ], |
| 563 'link_settings': { | |
| 564 'libraries': [ | |
| 565 ], | |
| 566 }, | |
| 567 }], | 568 }], |
| 568 ['OS!="openbsd"', { | 569 ['OS!="openbsd"', { |
| 569 'sources!': [ | 570 'sources!': [ |
| 570 'audio/openbsd/audio_manager_openbsd.cc', | 571 'audio/openbsd/audio_manager_openbsd.cc', |
| 571 'audio/openbsd/audio_manager_openbsd.h', | 572 'audio/openbsd/audio_manager_openbsd.h', |
| 572 ], | 573 ], |
| 573 }], | 574 }], |
| 574 ['OS=="linux"', { | 575 ['OS=="linux"', { |
| 575 'variables': { | 576 'variables': { |
| 576 'conditions': [ | 577 'conditions': [ |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 936 'sources': [ | 937 'sources': [ |
| 937 'audio/cras/cras_input_unittest.cc', | 938 'audio/cras/cras_input_unittest.cc', |
| 938 'audio/cras/cras_output_unittest.cc', | 939 'audio/cras/cras_output_unittest.cc', |
| 939 ], | 940 ], |
| 940 'defines': [ | 941 'defines': [ |
| 941 'USE_CRAS', | 942 'USE_CRAS', |
| 942 ], | 943 ], |
| 943 }], | 944 }], |
| 944 ], | 945 ], |
| 945 }], | 946 }], |
| 947 ['use_alsa==0', { | |
| 948 'sources!': [ | |
| 949 'audio/linux/alsa_output_unittest.cc', | |
| 950 'audio/audio_low_latency_input_output_unittest.cc', | |
| 951 ], | |
| 952 }], | |
| 946 [ 'target_arch=="ia32" or target_arch=="x64"', { | 953 [ 'target_arch=="ia32" or target_arch=="x64"', { |
| 947 'sources': [ | 954 'sources': [ |
| 948 'base/simd/convert_rgb_to_yuv_unittest.cc', | 955 'base/simd/convert_rgb_to_yuv_unittest.cc', |
| 949 ], | 956 ], |
| 950 }], | 957 }], |
| 951 [ 'screen_capture_supported == 0', { | 958 [ 'screen_capture_supported == 0', { |
| 952 'sources/': [ | 959 'sources/': [ |
| 953 ['exclude', '^video/capture/screen/'], | 960 ['exclude', '^video/capture/screen/'], |
| 954 ], | 961 ], |
| 955 }], | 962 }], |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1507 ], | 1514 ], |
| 1508 'sources': [ | 1515 'sources': [ |
| 1509 'video/capture/screen/differ_block_sse2.cc', | 1516 'video/capture/screen/differ_block_sse2.cc', |
| 1510 'video/capture/screen/differ_block_sse2.h', | 1517 'video/capture/screen/differ_block_sse2.h', |
| 1511 ], | 1518 ], |
| 1512 }, # end of target differ_block_sse2 | 1519 }, # end of target differ_block_sse2 |
| 1513 ], | 1520 ], |
| 1514 }], | 1521 }], |
| 1515 ], | 1522 ], |
| 1516 } | 1523 } |
| OLD | NEW |