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. |
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
676 '-t', '<(outfile_type)', | 676 '-t', '<(outfile_type)', |
677 '-e', '<(extra_header)', | 677 '-e', '<(extra_header)', |
678 '-s', '<(stubs_filename_root)', | 678 '-s', '<(stubs_filename_root)', |
679 '-p', '<(project_path)', | 679 '-p', '<(project_path)', |
680 '<@(_inputs)', | 680 '<@(_inputs)', |
681 ], | 681 ], |
682 'process_outputs_as_sources': 1, | 682 'process_outputs_as_sources': 1, |
683 'message': 'Generating Pulse stubs for dynamic loading.', | 683 'message': 'Generating Pulse stubs for dynamic loading.', |
684 }, | 684 }, |
685 ], | 685 ], |
686 'conditions': [ | 686 'conditions': [ |
687 # Linux/Solaris need libdl for dlopen() and friends. | 687 # Linux/Solaris need libdl for dlopen() and friends. |
688 ['OS == "linux" or OS == "solaris"', { | 688 ['OS == "linux" or OS == "solaris"', { |
689 'link_settings': { | 689 'link_settings': { |
690 'libraries': [ | 690 'libraries': [ |
691 '-ldl', | 691 '-ldl', |
692 ], | 692 ], |
693 }, | 693 }, |
694 }], | 694 }], |
695 ], | 695 ], |
696 }, { # else: use_pulseaudio == 0 | 696 }, { # else: use_pulseaudio == 0 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
804 [ 'screen_capture_supported==1 and (target_arch=="ia32" or target_arch== "x64")', { | 804 [ 'screen_capture_supported==1 and (target_arch=="ia32" or target_arch== "x64")', { |
805 'dependencies': [ | 805 'dependencies': [ |
806 'differ_block_sse2', | 806 'differ_block_sse2', |
807 ], | 807 ], |
808 }], | 808 }], |
809 ['toolkit_uses_gtk==1', { | 809 ['toolkit_uses_gtk==1', { |
810 'dependencies': [ | 810 'dependencies': [ |
811 '../build/linux/system.gyp:gtk', | 811 '../build/linux/system.gyp:gtk', |
812 ], | 812 ], |
813 }], | 813 }], |
814 ['target_arch == "ia32" or target_arch == "x64"', { | |
815 'dependencies': [ | |
816 'media_sse', | |
817 ], | |
818 }], | |
814 ], | 819 ], |
815 'target_conditions': [ | 820 'target_conditions': [ |
816 ['OS == "ios"', { | 821 ['OS == "ios"', { |
817 'sources/': [ | 822 'sources/': [ |
818 # Pull in specific Mac files for iOS (which have been filtered out | 823 # Pull in specific Mac files for iOS (which have been filtered out |
819 # by file name rules). | 824 # by file name rules). |
820 ['include', '^audio/mac/audio_input_mac\\.'], | 825 ['include', '^audio/mac/audio_input_mac\\.'], |
821 ], | 826 ], |
822 }], | 827 }], |
823 ], | 828 ], |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1015 ['use_alsa==0', { | 1020 ['use_alsa==0', { |
1016 'sources!': [ | 1021 'sources!': [ |
1017 'audio/linux/alsa_output_unittest.cc', | 1022 'audio/linux/alsa_output_unittest.cc', |
1018 'audio/audio_low_latency_input_output_unittest.cc', | 1023 'audio/audio_low_latency_input_output_unittest.cc', |
1019 ], | 1024 ], |
1020 }], | 1025 }], |
1021 [ 'target_arch=="ia32" or target_arch=="x64"', { | 1026 [ 'target_arch=="ia32" or target_arch=="x64"', { |
1022 'sources': [ | 1027 'sources': [ |
1023 'base/simd/convert_rgb_to_yuv_unittest.cc', | 1028 'base/simd/convert_rgb_to_yuv_unittest.cc', |
1024 ], | 1029 ], |
1030 'dependencies': [ | |
1031 'media_sse', | |
1032 ], | |
1025 }], | 1033 }], |
1026 [ 'screen_capture_supported == 0', { | 1034 [ 'screen_capture_supported == 0', { |
1027 'sources/': [ | 1035 'sources/': [ |
1028 ['exclude', '^video/capture/screen/'], | 1036 ['exclude', '^video/capture/screen/'], |
1029 ], | 1037 ], |
1030 }], | 1038 }], |
1031 ['proprietary_codecs==1 or branding=="Chrome"', { | 1039 ['proprietary_codecs==1 or branding=="Chrome"', { |
1032 'sources': [ | 1040 'sources': [ |
1033 'mp4/aac_unittest.cc', | 1041 'mp4/aac_unittest.cc', |
1034 'mp4/avc_unittest.cc', | 1042 'mp4/avc_unittest.cc', |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1603 'include_dirs': [ | 1611 'include_dirs': [ |
1604 '..', | 1612 '..', |
1605 ], | 1613 ], |
1606 'sources': [ | 1614 'sources': [ |
1607 'video/capture/screen/differ_block_sse2.cc', | 1615 'video/capture/screen/differ_block_sse2.cc', |
1608 'video/capture/screen/differ_block_sse2.h', | 1616 'video/capture/screen/differ_block_sse2.h', |
1609 ], | 1617 ], |
1610 }, # end of target differ_block_sse2 | 1618 }, # end of target differ_block_sse2 |
1611 ], | 1619 ], |
1612 }], | 1620 }], |
1621 ['target_arch=="ia32" or target_arch=="x64"', { | |
1622 'targets': [ | |
1623 { | |
1624 'target_name': 'media_sse', | |
1625 'type': 'static_library', | |
1626 'conditions': [ | |
1627 # OSX already enables SSE2 or higher. | |
Mark Mentovai
2013/03/05 21:32:31
…and OSX doesn’t use cflags either, so this would
DaleCurtis
2013/03/05 21:51:37
Yes! I was irritated that this expression was nece
| |
1628 ['OS != "mac"', { | |
1629 'cflags': [ | |
1630 '-msse', | |
1631 ], | |
1632 }], | |
1633 ], | |
1634 'include_dirs': [ | |
1635 '..', | |
1636 ], | |
1637 'sources': [ | |
1638 'base/simd/sinc_resampler_sse.cc', | |
1639 'base/simd/vector_math_sse.cc', | |
1640 ], | |
1641 }, # end of target media_sse | |
1642 ], | |
1643 }], | |
1613 ], | 1644 ], |
1614 } | 1645 } |
OLD | NEW |