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

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

Issue 149554: Rewrite ffmpeg_binaries target to use GYP built-ins and branding conditions. (Closed)
Patch Set: remove unused helper script Created 11 years, 5 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 | « third_party/ffmpeg/copy_binaries.sh ('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 'includes': [ 6 'includes': [
7 '../../build/common.gypi', 7 '../../build/common.gypi',
8 ], 8 ],
9 'target_defaults': { 9 'target_defaults': {
10 'conditions': [ 10 'conditions': [
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 ], 163 ],
164 'message': 'Generating FFmpeg stubs for dynamic loading.', 164 'message': 'Generating FFmpeg stubs for dynamic loading.',
165 'process_outputs_as_sources': 1, 165 'process_outputs_as_sources': 1,
166 }, 166 },
167 ], 167 ],
168 } 168 }
169 ], 169 ],
170 ], 170 ],
171 }, 171 },
172 { 172 {
173 # We prefer the Chrome binaries over the Chromium ones, which will get
174 # overwritten due to the order that the binaries are copied.
175 'target_name': 'ffmpeg_binaries', 173 'target_name': 'ffmpeg_binaries',
176 'type': 'none', 174 'type': 'none',
177 'msvs_guid': '4E4070E1-EFD9-4EF1-8634-3960956F6F10', 175 'msvs_guid': '4E4070E1-EFD9-4EF1-8634-3960956F6F10',
176 'variables': {
177 'conditions': [
178 [ 'branding=="Chrome"', {
179 'branding_dir': 'chrome',
180 }, { # else branding!="Chrome"
181 'branding_dir': 'chromium',
182 }],
183 ],
184 },
178 'conditions': [ 185 'conditions': [
179 ['OS=="win"', { 186 ['OS=="win"', {
180 'variables': { 187 'variables': {
181 'source_files': [ 188 'source_files': [
182 'binaries/chromium/avcodec-52.dll', 189 'binaries/<(branding_dir)/avcodec-52.dll',
183 'binaries/chromium/avformat-52.dll', 190 'binaries/<(branding_dir)/avformat-52.dll',
184 'binaries/chromium/avutil-50.dll', 191 'binaries/<(branding_dir)/avutil-50.dll',
185 'binaries/chromium/pthreadGC2.dll', 192 'binaries/<(branding_dir)/pthreadGC2.dll',
186 'binaries/chrome/avcodec-52.dll',
187 'binaries/chrome/avformat-52.dll',
188 'binaries/chrome/avutil-50.dll',
189 'binaries/chrome/pthreadGC2.dll',
190 ],
191 'output_files': [
192 '<(PRODUCT_DIR)/avcodec-52.dll',
193 '<(PRODUCT_DIR)/avformat-52.dll',
194 '<(PRODUCT_DIR)/avutil-50.dll',
195 '<(PRODUCT_DIR)/pthreadGC2.dll',
196 ], 193 ],
197 }, 194 },
198 'dependencies': ['../../build/win/system.gyp:cygwin'], 195 'dependencies': ['../../build/win/system.gyp:cygwin'],
199 }], ['OS=="linux"', { 196 }], ['OS=="linux"', {
200 'variables': { 197 'variables': {
201 'source_files': [ 198 'source_files': [
202 'binaries/chromium/libavcodec.so.52', 199 'binaries/<(branding_dir)/libavcodec.so.52',
203 'binaries/chromium/libavformat.so.52', 200 'binaries/<(branding_dir)/libavformat.so.52',
204 'binaries/chromium/libavutil.so.50', 201 'binaries/<(branding_dir)/libavutil.so.50',
205 'binaries/chrome/libavcodec.so.52',
206 'binaries/chrome/libavformat.so.52',
207 'binaries/chrome/libavutil.so.50',
208 ],
209 'output_files': [
210 '<(PRODUCT_DIR)/libavcodec.so.52',
211 '<(PRODUCT_DIR)/libavformat.so.52',
212 '<(PRODUCT_DIR)/libavutil.so.50',
213 ], 202 ],
214 }, 203 },
215 }], ['OS=="mac"', { 204 }], ['OS=="mac"', {
216 'variables': { 205 'variables': {
217 'source_files': [ 206 'source_files': [
218 'binaries/chromium/libavcodec.52.dylib', 207 'binaries/<(branding_dir)/libavcodec.52.dylib',
219 'binaries/chromium/libavformat.52.dylib', 208 'binaries/<(branding_dir)/libavformat.52.dylib',
220 'binaries/chromium/libavutil.50.dylib', 209 'binaries/<(branding_dir)/libavutil.50.dylib',
221 'binaries/chrome/libavcodec.52.dylib', 210 ],
222 'binaries/chrome/libavformat.52.dylib', 211 },
223 'binaries/chrome/libavutil.50.dylib',
224 ],
225 'output_files': [
226 '<(PRODUCT_DIR)/libavcodec.52.dylib',
227 '<(PRODUCT_DIR)/libavformat.52.dylib',
228 '<(PRODUCT_DIR)/libavutil.50.dylib',
229 ],
230 },
231 }], 212 }],
232 ], 213 ],
233 'sources': [ 214 'copies': [
234 ],
235 'actions': [
236 { 215 {
237 'action_name': 'copy_binaries', 216 'destination': '<(PRODUCT_DIR)/',
238 'inputs': [ 217 'files': [
239 'copy_binaries.sh',
240 ],
241 'outputs': [
242 '<@(output_files)',
243 ],
244 'action': [
245 './copy_binaries.sh',
246 '<@(source_files)', 218 '<@(source_files)',
247 '<(PRODUCT_DIR)/' 219 ]
248 ],
249 'message': 'Copying FFmpeg binaries...',
250 }, 220 },
251 ], 221 ],
252 }, 222 },
253 ], 223 ],
254 } 224 }
OLDNEW
« no previous file with comments | « third_party/ffmpeg/copy_binaries.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698