| 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 'media_use_ffmpeg%': 0, | 15 'media_use_ffmpeg%': 0, |
| 16 # Android and iOS don't use libvpx. | 16 # Android and iOS don't use libvpx. |
| 17 'media_use_libvpx%': 0, | 17 'media_use_libvpx%': 0, |
| 18 }, { # 'OS != "android" and OS != "ios"' | 18 }, { # 'OS != "android" and OS != "ios"' |
| 19 'media_use_ffmpeg%': 1, | 19 'media_use_ffmpeg%': 1, |
| 20 'media_use_libvpx%': 1, | 20 'media_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 (with X11). |
| 23 ['OS=="win" or OS=="mac" or OS=="linux"', { | 23 ['OS=="win" or OS=="mac" or (OS=="linux" and use_x11==1)', { |
| 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. | 28 # ALSA usage. |
| 29 ['OS=="linux" or OS=="freebsd" or OS=="solaris"', { | 29 ['OS=="linux" or OS=="freebsd" or OS=="solaris"', { |
| 30 'use_alsa%': 1, | 30 'use_alsa%': 1, |
| 31 }, { | 31 }, { |
| 32 'use_alsa%': 0, | 32 'use_alsa%': 0, |
| 33 }], | 33 }], |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 ['OS=="linux"', { | 588 ['OS=="linux"', { |
| 589 'variables': { | 589 'variables': { |
| 590 'conditions': [ | 590 'conditions': [ |
| 591 ['sysroot!=""', { | 591 ['sysroot!=""', { |
| 592 'pkg-config': '../build/linux/pkg-config-wrapper "<(sysroot)" "<
(target_arch)"', | 592 'pkg-config': '../build/linux/pkg-config-wrapper "<(sysroot)" "<
(target_arch)"', |
| 593 }, { | 593 }, { |
| 594 'pkg-config': 'pkg-config' | 594 'pkg-config': 'pkg-config' |
| 595 }], | 595 }], |
| 596 ], | 596 ], |
| 597 }, | 597 }, |
| 598 'link_settings': { | |
| 599 'libraries': [ | |
| 600 '-lX11', | |
| 601 '-lXdamage', | |
| 602 '-lXext', | |
| 603 '-lXfixes', | |
| 604 ], | |
| 605 }, | |
| 606 'conditions': [ | 598 'conditions': [ |
| 599 ['use_x11 == 1', { |
| 600 'link_settings': { |
| 601 'libraries': [ |
| 602 '-lX11', |
| 603 '-lXdamage', |
| 604 '-lXext', |
| 605 '-lXfixes', |
| 606 ], |
| 607 }, |
| 608 }], |
| 607 ['use_cras == 1', { | 609 ['use_cras == 1', { |
| 608 'cflags': [ | 610 'cflags': [ |
| 609 '<!@(<(pkg-config) --cflags libcras)', | 611 '<!@(<(pkg-config) --cflags libcras)', |
| 610 ], | 612 ], |
| 611 'link_settings': { | 613 'link_settings': { |
| 612 'libraries': [ | 614 'libraries': [ |
| 613 '<!@(<(pkg-config) --libs libcras)', | 615 '<!@(<(pkg-config) --libs libcras)', |
| 614 ], | 616 ], |
| 615 }, | 617 }, |
| 616 'defines': [ | 618 'defines': [ |
| (...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1338 'sources': [ | 1340 'sources': [ |
| 1339 'tools/shader_bench/window_win.cc', | 1341 'tools/shader_bench/window_win.cc', |
| 1340 ], | 1342 ], |
| 1341 }], | 1343 }], |
| 1342 ], | 1344 ], |
| 1343 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1345 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1344 'msvs_disabled_warnings': [ 4267, ], | 1346 'msvs_disabled_warnings': [ 4267, ], |
| 1345 }, | 1347 }, |
| 1346 ], | 1348 ], |
| 1347 }], | 1349 }], |
| 1348 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', { | 1350 ['use_x11 == 1', { |
| 1349 'targets': [ | 1351 'targets': [ |
| 1350 { | 1352 { |
| 1351 'target_name': 'player_x11', | 1353 'target_name': 'player_x11', |
| 1352 'type': 'executable', | 1354 'type': 'executable', |
| 1353 'dependencies': [ | 1355 'dependencies': [ |
| 1354 'media', | 1356 'media', |
| 1355 'yuv_convert', | 1357 'yuv_convert', |
| 1356 '../base/base.gyp:base', | 1358 '../base/base.gyp:base', |
| 1357 '../ui/gl/gl.gyp:gl', | 1359 '../ui/gl/gl.gyp:gl', |
| 1358 '../ui/ui.gyp:ui', | 1360 '../ui/ui.gyp:ui', |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1642 ], | 1644 ], |
| 1643 'sources': [ | 1645 'sources': [ |
| 1644 'base/simd/sinc_resampler_sse.cc', | 1646 'base/simd/sinc_resampler_sse.cc', |
| 1645 'base/simd/vector_math_sse.cc', | 1647 'base/simd/vector_math_sse.cc', |
| 1646 ], | 1648 ], |
| 1647 }, # end of target media_sse | 1649 }, # end of target media_sse |
| 1648 ], | 1650 ], |
| 1649 }], | 1651 }], |
| 1650 ], | 1652 ], |
| 1651 } | 1653 } |
| OLD | NEW |