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 # ios check is necessary due to http://crbug.com/172682. |
| 815 ['OS != "ios" and (target_arch == "ia32" or target_arch == "x64")', { |
| 816 'dependencies': [ |
| 817 'media_sse', |
| 818 ], |
| 819 }], |
814 ], | 820 ], |
815 'target_conditions': [ | 821 'target_conditions': [ |
816 ['OS == "ios"', { | 822 ['OS == "ios"', { |
817 'sources/': [ | 823 'sources/': [ |
818 # Pull in specific Mac files for iOS (which have been filtered out | 824 # Pull in specific Mac files for iOS (which have been filtered out |
819 # by file name rules). | 825 # by file name rules). |
820 ['include', '^audio/mac/audio_input_mac\\.'], | 826 ['include', '^audio/mac/audio_input_mac\\.'], |
821 ], | 827 ], |
822 }], | 828 }], |
823 ], | 829 ], |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 ], | 1017 ], |
1012 }], | 1018 }], |
1013 ], | 1019 ], |
1014 }], | 1020 }], |
1015 ['use_alsa==0', { | 1021 ['use_alsa==0', { |
1016 'sources!': [ | 1022 'sources!': [ |
1017 'audio/linux/alsa_output_unittest.cc', | 1023 'audio/linux/alsa_output_unittest.cc', |
1018 'audio/audio_low_latency_input_output_unittest.cc', | 1024 'audio/audio_low_latency_input_output_unittest.cc', |
1019 ], | 1025 ], |
1020 }], | 1026 }], |
1021 [ 'target_arch=="ia32" or target_arch=="x64"', { | 1027 ['OS != "ios" and (target_arch=="ia32" or target_arch=="x64")', { |
1022 'sources': [ | 1028 'sources': [ |
1023 'base/simd/convert_rgb_to_yuv_unittest.cc', | 1029 'base/simd/convert_rgb_to_yuv_unittest.cc', |
1024 ], | 1030 ], |
| 1031 'dependencies': [ |
| 1032 'media_sse', |
| 1033 ], |
1025 }], | 1034 }], |
1026 [ 'screen_capture_supported == 0', { | 1035 ['screen_capture_supported == 0', { |
1027 'sources/': [ | 1036 'sources/': [ |
1028 ['exclude', '^video/capture/screen/'], | 1037 ['exclude', '^video/capture/screen/'], |
1029 ], | 1038 ], |
1030 }], | 1039 }], |
1031 ['proprietary_codecs==1 or branding=="Chrome"', { | 1040 ['proprietary_codecs==1 or branding=="Chrome"', { |
1032 'sources': [ | 1041 'sources': [ |
1033 'mp4/aac_unittest.cc', | 1042 'mp4/aac_unittest.cc', |
1034 'mp4/avc_unittest.cc', | 1043 'mp4/avc_unittest.cc', |
1035 'mp4/box_reader_unittest.cc', | 1044 'mp4/box_reader_unittest.cc', |
1036 'mp4/es_descriptor_unittest.cc', | 1045 'mp4/es_descriptor_unittest.cc', |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1603 'include_dirs': [ | 1612 'include_dirs': [ |
1604 '..', | 1613 '..', |
1605 ], | 1614 ], |
1606 'sources': [ | 1615 'sources': [ |
1607 'video/capture/screen/differ_block_sse2.cc', | 1616 'video/capture/screen/differ_block_sse2.cc', |
1608 'video/capture/screen/differ_block_sse2.h', | 1617 'video/capture/screen/differ_block_sse2.h', |
1609 ], | 1618 ], |
1610 }, # end of target differ_block_sse2 | 1619 }, # end of target differ_block_sse2 |
1611 ], | 1620 ], |
1612 }], | 1621 }], |
| 1622 # ios check is necessary due to http://crbug.com/172682. |
| 1623 ['OS != "ios" and (target_arch=="ia32" or target_arch=="x64")', { |
| 1624 'targets': [ |
| 1625 { |
| 1626 'target_name': 'media_sse', |
| 1627 'type': 'static_library', |
| 1628 'cflags': [ |
| 1629 '-msse', |
| 1630 ], |
| 1631 'include_dirs': [ |
| 1632 '..', |
| 1633 ], |
| 1634 'defines': [ |
| 1635 'MEDIA_IMPLEMENTATION', |
| 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 |