Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: third_party/ffmpeg/ffmpeg.gyp

Issue 215016: Update ffmpeg binaries directories to support variants based off the target architecture. (Closed)
Patch Set: Fix linux installer. Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/installer/installer.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }, 12 },
13 'variables': { 13 'variables': {
14 # Allow overridding the selection of which ffmpeg binaries to copy via an 14 # Allow overridding the selection of which ffmpeg binaries to copy via an
15 # environment variable. Affects the ffmpeg_binaries target. 15 # environment variable. Affects the ffmpeg_binaries target.
16 'ffmpeg_branding%': '<(branding)', 16 'ffmpeg_branding%': '<(branding)',
17 'ffmpeg_variant%': '<(target_arch)',
17 18
18 'use_system_ffmpeg%': 0, 19 'use_system_ffmpeg%': 0,
19 }, 20 },
20 'targets': [ 21 'targets': [
21 { 22 {
22 'variables': { 23 'variables': {
23 'generate_stubs_script': 'generate_stubs.py', 24 'generate_stubs_script': 'generate_stubs.py',
24 'sig_files': [ 25 'sig_files': [
25 # Note that these must be listed in dependency order. 26 # Note that these must be listed in dependency order.
26 # (i.e. if A depends on B, then B must be listed before A.) 27 # (i.e. if A depends on B, then B must be listed before A.)
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 }], 184 }],
184 ], # conditions 185 ], # conditions
185 }, 186 },
186 { 187 {
187 'target_name': 'ffmpeg_binaries', 188 'target_name': 'ffmpeg_binaries',
188 'type': 'none', 189 'type': 'none',
189 'msvs_guid': '4E4070E1-EFD9-4EF1-8634-3960956F6F10', 190 'msvs_guid': '4E4070E1-EFD9-4EF1-8634-3960956F6F10',
190 'variables': { 191 'variables': {
191 'conditions': [ 192 'conditions': [
192 [ 'ffmpeg_branding=="Chrome"', { 193 [ 'ffmpeg_branding=="Chrome"', {
193 'branding_dir': 'chrome', 194 'ffmpeg_bin_dir': 'chrome/<(OS)/<(ffmpeg_variant)',
194 }, { # else ffmpeg_branding!="Chrome" 195 }, { # else ffmpeg_branding!="Chrome", assume chromium.
195 'branding_dir': 'chromium', 196 'ffmpeg_bin_dir': 'chromium/<(OS)/<(ffmpeg_variant)',
196 }], 197 }],
197 ], 198 ],
198 }, 199 },
199 'conditions': [ 200 'conditions': [
200 ['OS=="win"', { 201 ['OS=="win"', {
201 'variables': { 202 'variables': {
202 'source_files': [ 203 'source_files': [
203 'binaries/<(branding_dir)/avcodec-52.dll', 204 'binaries/<(ffmpeg_bin_dir)/avcodec-52.dll',
204 'binaries/<(branding_dir)/avformat-52.dll', 205 'binaries/<(ffmpeg_bin_dir)/avformat-52.dll',
205 'binaries/<(branding_dir)/avutil-50.dll', 206 'binaries/<(ffmpeg_bin_dir)/avutil-50.dll',
206 ], 207 ],
207 }, 208 },
208 'dependencies': ['../../build/win/system.gyp:cygwin'], 209 'dependencies': ['../../build/win/system.gyp:cygwin'],
209 }], ['OS=="linux" or OS=="freebsd"', { 210 }], ['OS=="linux" or OS=="freebsd"', {
210 'conditions': [ 211 'conditions': [
211 ['use_system_ffmpeg==0', { 212 ['use_system_ffmpeg==0', {
212 'variables': { 213 'variables': {
213 'source_files': [ 214 'source_files': [
214 'binaries/<(branding_dir)/libavcodec.so.52', 215 'binaries/<(ffmpeg_bin_dir)/libavcodec.so.52',
215 'binaries/<(branding_dir)/libavformat.so.52', 216 'binaries/<(ffmpeg_bin_dir)/libavformat.so.52',
216 'binaries/<(branding_dir)/libavutil.so.50', 217 'binaries/<(ffmpeg_bin_dir)/libavutil.so.50',
217 ], 218 ],
218 }, 219 },
219 }, { 220 }, {
220 'variables': { 221 'variables': {
221 'source_files': [] 222 'source_files': []
222 }, 223 },
223 }], 224 }],
224 ]}, 225 ]},
225 ], ['OS=="mac"', { 226 ], ['OS=="mac"', {
226 'variables': { 227 'variables': {
227 'source_files': [ 228 'source_files': [
228 'binaries/<(branding_dir)/libavcodec.52.dylib', 229 'binaries/<(ffmpeg_bin_dir)/libavcodec.52.dylib',
229 'binaries/<(branding_dir)/libavformat.52.dylib', 230 'binaries/<(ffmpeg_bin_dir)/libavformat.52.dylib',
230 'binaries/<(branding_dir)/libavutil.50.dylib', 231 'binaries/<(ffmpeg_bin_dir)/libavutil.50.dylib',
231 ], 232 ],
232 }, 233 },
233 }], 234 }],
234 ], 235 ],
235 'copies': [ 236 'copies': [
236 { 237 {
237 'destination': '<(PRODUCT_DIR)/', 238 'destination': '<(PRODUCT_DIR)/',
238 'files': [ 239 'files': [
239 '<@(source_files)', 240 '<@(source_files)',
240 ] 241 ]
241 }, 242 },
242 ], 243 ],
243 }, 244 },
244 ], 245 ],
245 } 246 }
OLDNEW
« no previous file with comments | « chrome/installer/installer.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698