OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 'target_defaults': { | 6 'target_defaults': { |
7 'conditions': [ | 7 'conditions': [ |
8 ['OS!="linux" and OS!="freebsd"', {'sources/': [['exclude', '/linux/']]}], | 8 ['OS!="linux" and OS!="freebsd"', {'sources/': [['exclude', '/linux/']]}], |
9 ['OS!="mac"', {'sources/': [['exclude', '/mac/']]}], | 9 ['OS!="mac"', {'sources/': [['exclude', '/mac/']]}], |
10 ['OS!="win"', {'sources/': [['exclude', '/win/']]}], | 10 ['OS!="win"', {'sources/': [['exclude', '/win/']]}], |
11 ], | 11 ], |
12 'variables': { | 12 'variables': { |
13 # Since we are not often debugging FFmpeg, and performance is | 13 # Since we are not often debugging FFmpeg, and performance is |
14 # unacceptable without optimization, freeze the optimizations to -O2. | 14 # unacceptable without optimization, freeze the optimizations to -O2. |
15 # If someone really wants -O1 , they can change these in their checkout. | 15 # If someone really wants -O1 , they can change these in their checkout. |
16 # If you want -O0, see the Gotchas in README.Chromium for why that | 16 # If you want -O0, see the Gotchas in README.Chromium for why that |
17 # won't work. | 17 # won't work. |
18 'debug_optimize': '2', | 18 'debug_optimize': '2', |
19 'mac_debug_optimization': '2', | 19 'mac_debug_optimization': '2', |
20 }, | 20 }, |
21 }, | 21 }, |
22 'variables': { | 22 'variables': { |
23 # Allow overridding the selection of which FFmpeg binaries to copy via an | 23 # Allow overridding the selection of which FFmpeg binaries to copy via an |
24 # environment variable. Affects the ffmpeg_binaries target. | 24 # environment variable. Affects the ffmpeg_binaries target. |
25 'ffmpeg_branding%': '<(branding)', | 25 'ffmpeg_branding%': '<(branding)', |
26 'ffmpeg_variant%': '<(target_arch)', | 26 'ffmpeg_variant%': '<(target_arch)', |
27 | 27 |
| 28 'use_system_ffmpeg%': 0, |
| 29 |
28 # Locations for generated artifacts. | 30 # Locations for generated artifacts. |
29 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/ffmpeg', | 31 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/ffmpeg', |
30 'asm_library': 'ffmpegasm', | 32 'asm_library': 'ffmpegasm', |
31 }, | 33 }, |
32 'conditions': [ | 34 'conditions': [ |
33 # This condition is for migrating from pre-built binaries to an in-tree | 35 # This condition is for migrating from pre-built binaries to an in-tree |
34 # source build. Most of these should be removed once FFmpeg is built on | 36 # source build. Most of these should be removed once FFmpeg is built on |
35 # mac and linux. Windows will take more work. | 37 # mac and linux. Windows will take more work. |
36 # | 38 # |
37 # TODO(ajwong): Per the comment above, reduce this conditional's size and | 39 # TODO(ajwong): Per the comment above, reduce this conditional's size and |
38 # determine if in-tree build in Windows is tractable. | 40 # determine if in-tree build in Windows is tractable. |
39 ['OS!="linux" or OS=="freebsd" or OS=="linux"', { | 41 ['OS!="linux" or OS!="freebsd" or use_system_ffmpeg==0', { |
40 'variables': { | 42 'variables': { |
41 'target_for_binaries': 'ffmpeg_binaries', | 43 'target_for_binaries': 'ffmpeg_binaries', |
42 'ffmpeg_include_root': 'include', | 44 'ffmpeg_include_root': 'include', |
43 }, | 45 }, |
44 },{ # else OS=="linux" | 46 },{ # else OS=="linux" |
45 'variables': { | 47 'variables': { |
46 'target_for_binaries': 'ffmpegsumo_nolink', | 48 'target_for_binaries': 'ffmpegsumo_nolink', |
47 'ffmpeg_include_root': 'source/patched-ffmpeg-mt', | 49 'ffmpeg_include_root': 'source/patched-ffmpeg-mt', |
48 }, | 50 }, |
49 'targets': [ | 51 'targets': [ |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 'binaries/<(ffmpeg_bin_dir)/avformat-52.dll', | 556 'binaries/<(ffmpeg_bin_dir)/avformat-52.dll', |
555 'binaries/<(ffmpeg_bin_dir)/avutil-50.dll', | 557 'binaries/<(ffmpeg_bin_dir)/avutil-50.dll', |
556 ], | 558 ], |
557 }, | 559 }, |
558 'dependencies': ['../../build/win/system.gyp:cygwin'], | 560 'dependencies': ['../../build/win/system.gyp:cygwin'], |
559 }], ['OS=="linux" or OS=="freebsd"', { | 561 }], ['OS=="linux" or OS=="freebsd"', { |
560 'variables': { | 562 'variables': { |
561 # TODO(ajwong): Clean this up after we've finished | 563 # TODO(ajwong): Clean this up after we've finished |
562 # migrating to in-tree build. | 564 # migrating to in-tree build. |
563 'source_files': [ | 565 'source_files': [ |
564 # TODO(ajwong): Temporary revert to make tree green while | |
565 # builder libraries are updated. | |
566 'binaries/<(ffmpeg_bin_dir)/libavcodec.so.52', | |
567 'binaries/<(ffmpeg_bin_dir)/libavformat.so.52', | |
568 'binaries/<(ffmpeg_bin_dir)/libavutil.so.50', | |
569 ], | 566 ], |
570 }, | 567 }, |
571 }], ['OS=="mac"', { | 568 }], ['OS=="mac"', { |
572 # TODO(ajwong): These files are also copied in: | 569 # TODO(ajwong): These files are also copied in: |
573 # webkit/tools/test_shell/test_shell.gyp and | 570 # webkit/tools/test_shell/test_shell.gyp and |
574 # chrome/chrome.gyp | 571 # chrome/chrome.gyp |
575 # Need to consolidate the copies in one place. (BUG=23602) | 572 # Need to consolidate the copies in one place. (BUG=23602) |
576 'variables': { | 573 'variables': { |
577 'source_files': [ | 574 'source_files': [ |
578 'binaries/<(ffmpeg_bin_dir)/libavcodec.52.dylib', | 575 'binaries/<(ffmpeg_bin_dir)/libavcodec.52.dylib', |
(...skipping 13 matching lines...) Expand all Loading... |
592 ], | 589 ], |
593 }, | 590 }, |
594 ], | 591 ], |
595 } | 592 } |
596 | 593 |
597 # Local Variables: | 594 # Local Variables: |
598 # tab-width:2 | 595 # tab-width:2 |
599 # indent-tabs-mode:nil | 596 # indent-tabs-mode:nil |
600 # End: | 597 # End: |
601 # vim: set expandtab tabstop=2 shiftwidth=2: | 598 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |