OLD | NEW |
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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 # TODO(fbarchard): Turn off --enable-memalign-hack for all but windows. | 5 # TODO(fbarchard): Turn off --enable-memalign-hack for all but windows. |
6 # TODO(ajwong): Determine if we want to statically link libz. | 6 # TODO(ajwong): Determine if we want to statically link libz. |
7 | 7 |
8 | 8 |
9 | 9 |
10 { | 10 { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 'conditions': [ | 54 'conditions': [ |
55 # This condition is for migrating from pre-built binaries to an in-tree | 55 # This condition is for migrating from pre-built binaries to an in-tree |
56 # source build. Most of these should be removed once FFmpeg is built on | 56 # source build. Most of these should be removed once FFmpeg is built on |
57 # mac and linux. Windows will take more work. | 57 # mac and linux. Windows will take more work. |
58 # | 58 # |
59 # TODO(ajwong): Per the comment above, reduce this conditional's size and | 59 # TODO(ajwong): Per the comment above, reduce this conditional's size and |
60 # determine if in-tree build in Windows is tractable. | 60 # determine if in-tree build in Windows is tractable. |
61 ['(OS!="linux" and OS!="freebsd" and OS!="openbsd" and OS!="solaris" and OS!
="mac") or use_system_ffmpeg!=0', { | 61 ['(OS!="linux" and OS!="freebsd" and OS!="openbsd" and OS!="solaris" and OS!
="mac") or use_system_ffmpeg!=0', { |
62 'variables': { | 62 'variables': { |
63 'target_for_binaries': 'ffmpeg_binaries', | 63 'target_for_binaries': 'ffmpeg_binaries', |
64 'ffmpeg_include_root': 'include', | 64 'ffmpeg_include_root': 'source/patched-ffmpeg-mt', |
65 }, | 65 }, |
66 },{ # else OS=="linux" | 66 },{ # else OS=="linux" |
67 'variables': { | 67 'variables': { |
68 'target_for_binaries': 'ffmpegsumo_nolink', | 68 'target_for_binaries': 'ffmpegsumo_nolink', |
69 'ffmpeg_include_root': 'source/patched-ffmpeg-mt', | 69 'ffmpeg_include_root': 'source/patched-ffmpeg-mt', |
70 'conditions': [ | 70 'conditions': [ |
71 ['target_arch=="x64" or target_arch=="ia32"', { | 71 ['target_arch=="x64" or target_arch=="ia32"', { |
72 'ffmpeg_asm_lib': 1, | 72 'ffmpeg_asm_lib': 1, |
73 }], | 73 }], |
74 ['target_arch=="arm"', { | 74 ['target_arch=="arm"', { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 'source/patched-ffmpeg-mt/libavutil/mem.c', | 129 'source/patched-ffmpeg-mt/libavutil/mem.c', |
130 'source/patched-ffmpeg-mt/libavutil/pixdesc.c', # TODO(fbarchard): R
eview this file. | 130 'source/patched-ffmpeg-mt/libavutil/pixdesc.c', # TODO(fbarchard): R
eview this file. |
131 'source/patched-ffmpeg-mt/libavutil/rational.c', | 131 'source/patched-ffmpeg-mt/libavutil/rational.c', |
132 # Config file for the OS and architecture. | 132 # Config file for the OS and architecture. |
133 'source/config/<(ffmpeg_branding)/<(OS)/<(ffmpeg_config)/config.h', | 133 'source/config/<(ffmpeg_branding)/<(OS)/<(ffmpeg_config)/config.h', |
134 'source/config/libavutil/avconfig.h', | 134 'source/config/libavutil/avconfig.h', |
135 ], | 135 ], |
136 'include_dirs': [ | 136 'include_dirs': [ |
137 'source/config/<(ffmpeg_branding)/<(OS)/<(ffmpeg_config)', | 137 'source/config/<(ffmpeg_branding)/<(OS)/<(ffmpeg_config)', |
138 'source/patched-ffmpeg-mt', | 138 'source/patched-ffmpeg-mt', |
139 » 'source/config', | 139 'source/config', |
140 ], | 140 ], |
141 'defines': [ | 141 'defines': [ |
142 'HAVE_AV_CONFIG_H', | 142 'HAVE_AV_CONFIG_H', |
143 '_POSIX_C_SOURCE=200112', | 143 '_POSIX_C_SOURCE=200112', |
144 ], | 144 ], |
145 'cflags': [ | 145 'cflags': [ |
146 '-fomit-frame-pointer', | 146 '-fomit-frame-pointer', |
147 ], | 147 ], |
148 'conditions': [ | 148 'conditions': [ |
149 ['ffmpeg_branding=="Chrome" or ffmpeg_branding=="ChromeOS"', { | 149 ['ffmpeg_branding=="Chrome" or ffmpeg_branding=="ChromeOS"', { |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 'include/win/inttypes.h', | 635 'include/win/inttypes.h', |
636 'include/win/stdint.h', | 636 'include/win/stdint.h', |
637 | 637 |
638 # Files needed for stub generation rules. | 638 # Files needed for stub generation rules. |
639 '<@(sig_files)', | 639 '<@(sig_files)', |
640 '<(extra_header)' | 640 '<(extra_header)' |
641 ], | 641 ], |
642 'hard_dependency': 1, | 642 'hard_dependency': 1, |
643 'direct_dependent_settings': { | 643 'direct_dependent_settings': { |
644 'include_dirs': [ | 644 'include_dirs': [ |
645 'include', | 645 'source/patched-ffmpeg-mt', |
| 646 'source/config', |
646 ], | 647 ], |
647 }, | 648 }, |
648 'conditions': [ | 649 'conditions': [ |
649 ['OS=="win"', | 650 ['OS=="win"', |
650 { | 651 { |
651 'variables': { | 652 'variables': { |
652 'outfile_type': 'windows_lib', | 653 'outfile_type': 'windows_lib', |
653 'output_dir': '<(PRODUCT_DIR)/lib', | 654 'output_dir': '<(PRODUCT_DIR)/lib', |
654 'intermediate_dir': '<(INTERMEDIATE_DIR)', | 655 'intermediate_dir': '<(INTERMEDIATE_DIR)', |
655 }, | 656 }, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 }, { # else OS!="win" | 702 }, { # else OS!="win" |
702 'variables': { | 703 'variables': { |
703 'outfile_type': 'posix_stubs', | 704 'outfile_type': 'posix_stubs', |
704 'stubs_filename_root': 'ffmpeg_stubs', | 705 'stubs_filename_root': 'ffmpeg_stubs', |
705 'project_path': 'third_party/ffmpeg', | 706 'project_path': 'third_party/ffmpeg', |
706 'intermediate_dir': '<(INTERMEDIATE_DIR)', | 707 'intermediate_dir': '<(INTERMEDIATE_DIR)', |
707 'output_root': '<(SHARED_INTERMEDIATE_DIR)/ffmpeg', | 708 'output_root': '<(SHARED_INTERMEDIATE_DIR)/ffmpeg', |
708 }, | 709 }, |
709 'type': '<(library)', | 710 'type': '<(library)', |
710 'include_dirs': [ | 711 'include_dirs': [ |
711 'include', | 712 'source/patched-ffmpeg-mt', |
| 713 'source/config', |
712 '<(output_root)', | 714 '<(output_root)', |
713 '../..', # The chromium 'src' directory. | 715 '../..', # The chromium 'src' directory. |
714 ], | 716 ], |
715 'direct_dependent_settings': { | 717 'direct_dependent_settings': { |
716 'defines': [ | 718 'defines': [ |
717 '__STDC_CONSTANT_MACROS', # FFmpeg uses INT64_C. | 719 '__STDC_CONSTANT_MACROS', # FFmpeg uses INT64_C. |
718 ], | 720 ], |
719 'include_dirs': [ | 721 'include_dirs': [ |
720 '<(output_root)', | 722 '<(output_root)', |
721 '../..', # The chromium 'src' directory. | 723 '../..', # The chromium 'src' directory. |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 ], | 812 ], |
811 }, | 813 }, |
812 ], | 814 ], |
813 } | 815 } |
814 | 816 |
815 # Local Variables: | 817 # Local Variables: |
816 # tab-width:2 | 818 # tab-width:2 |
817 # indent-tabs-mode:nil | 819 # indent-tabs-mode:nil |
818 # End: | 820 # End: |
819 # vim: set expandtab tabstop=2 shiftwidth=2: | 821 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |