OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 # There's a couple key GYP variables that control how FFmpeg is built: | 5 # There's a couple key GYP variables that control how FFmpeg is built: |
6 # ffmpeg_branding | 6 # ffmpeg_branding |
7 # Controls whether we build the Chromium or Google Chrome version of | 7 # Controls whether we build the Chromium or Google Chrome version of |
8 # FFmpeg. The Google Chrome version contains additional codecs. | 8 # FFmpeg. The Google Chrome version contains additional codecs. |
9 # Typical values are Chromium, Chrome, ChromiumOS, and ChromeOS. | 9 # Typical values are Chromium, Chrome, ChromiumOS, and ChromeOS. |
10 # use_system_ffmpeg | 10 # use_system_ffmpeg |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 'extension': 'asm', | 329 'extension': 'asm', |
330 'inputs': [ '<(yasm_path)', ], | 330 'inputs': [ '<(yasm_path)', ], |
331 'outputs': [ | 331 'outputs': [ |
332 '<(shared_generated_dir)/<(RULE_INPUT_ROOT).o', | 332 '<(shared_generated_dir)/<(RULE_INPUT_ROOT).o', |
333 ], | 333 ], |
334 'action': [ | 334 'action': [ |
335 '<(yasm_path)', | 335 '<(yasm_path)', |
336 '-f', '<(obj_format)', | 336 '-f', '<(obj_format)', |
337 '<@(yasm_flags)', | 337 '<@(yasm_flags)', |
338 '-I', 'libavcodec/x86/', | 338 '-I', 'libavcodec/x86/', |
| 339 '-I', 'libavutil/x86/', |
| 340 '-I', '.', |
339 '-o', '<(shared_generated_dir)/<(RULE_INPUT_ROOT).o', | 341 '-o', '<(shared_generated_dir)/<(RULE_INPUT_ROOT).o', |
340 '<(RULE_INPUT_PATH)', | 342 '<(RULE_INPUT_PATH)', |
341 ], | 343 ], |
342 'process_outputs_as_sources': 1, | 344 'process_outputs_as_sources': 1, |
343 'message': 'Build ffmpeg yasm build <(RULE_INPUT_PATH).', | 345 'message': 'Build ffmpeg yasm build <(RULE_INPUT_PATH).', |
344 }, | 346 }, |
345 ], | 347 ], |
346 }, | 348 }, |
347 ], | 349 ], |
348 }], | 350 }], |
349 ], # conditions | 351 ], # conditions |
350 'targets': [ | 352 'targets': [ |
351 { | 353 { |
352 'variables': { | 354 'variables': { |
353 'generate_stubs_script': '../../tools/generate_stubs/generate_stubs.py', | 355 'generate_stubs_script': '../../tools/generate_stubs/generate_stubs.py', |
354 'extra_header': 'chromium/ffmpeg_stub_headers.fragment', | 356 'extra_header': 'chromium/ffmpeg_stub_headers.fragment', |
355 'sig_files': [ | 357 'sig_files': [ |
356 # Note that these must be listed in dependency order. | 358 # Note that these must be listed in dependency order. |
357 # (i.e. if A depends on B, then B must be listed before A.) | 359 # (i.e. if A depends on B, then B must be listed before A.) |
358 'chromium/avutil-51.sigs', | 360 'chromium/avutil-51.sigs', |
359 'chromium/avcodec-53.sigs', | 361 'chromium/avcodec-54.sigs', |
360 'chromium/avformat-53.sigs', | 362 'chromium/avformat-54.sigs', |
361 ], | 363 ], |
362 }, | 364 }, |
363 | 365 |
364 'target_name': 'ffmpeg', | 366 'target_name': 'ffmpeg', |
365 'msvs_guid': 'D7A94F58-576A-45D9-A45F-EB87C63ABBB0', | 367 'msvs_guid': 'D7A94F58-576A-45D9-A45F-EB87C63ABBB0', |
366 'sources': [ | 368 'sources': [ |
367 # Hacks to introduce C99 types into Visual Studio. | 369 # Hacks to introduce C99 types into Visual Studio. |
368 'chromium/include/win/inttypes.h', | 370 'chromium/include/win/inttypes.h', |
369 'chromium/include/win/stdint.h', | 371 'chromium/include/win/stdint.h', |
370 | 372 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 '<(extra_header)', | 405 '<(extra_header)', |
404 ], | 406 ], |
405 'direct_dependent_settings': { | 407 'direct_dependent_settings': { |
406 'include_dirs': [ | 408 'include_dirs': [ |
407 'chromium/include/win', | 409 'chromium/include/win', |
408 'chromium/config', | 410 'chromium/config', |
409 '.', | 411 '.', |
410 ], | 412 ], |
411 'link_settings': { | 413 'link_settings': { |
412 'libraries': [ | 414 'libraries': [ |
413 '<(output_dir)/avcodec-53.lib', | 415 '<(output_dir)/avcodec-54.lib', |
414 '<(output_dir)/avformat-53.lib', | 416 '<(output_dir)/avformat-54.lib', |
415 '<(output_dir)/avutil-51.lib', | 417 '<(output_dir)/avutil-51.lib', |
416 ], | 418 ], |
417 'msvs_settings': { | 419 'msvs_settings': { |
418 'VCLinkerTool': { | 420 'VCLinkerTool': { |
419 'DelayLoadDLLs': [ | 421 'DelayLoadDLLs': [ |
420 'avcodec-53.dll', | 422 'avcodec-54.dll', |
421 'avformat-53.dll', | 423 'avformat-54.dll', |
422 'avutil-51.dll', | 424 'avutil-51.dll', |
423 ], | 425 ], |
424 }, | 426 }, |
425 }, | 427 }, |
426 }, | 428 }, |
427 }, | 429 }, |
428 'rules': [ | 430 'rules': [ |
429 { | 431 { |
430 'rule_name': 'generate_libs', | 432 'rule_name': 'generate_libs', |
431 'extension': 'sigs', | 433 'extension': 'sigs', |
(...skipping 12 matching lines...) Expand all Loading... |
444 ], | 446 ], |
445 'message': 'Generating FFmpeg import libraries.', | 447 'message': 'Generating FFmpeg import libraries.', |
446 }, | 448 }, |
447 ], | 449 ], |
448 | 450 |
449 # Copy prebuilt binaries to build directory. | 451 # Copy prebuilt binaries to build directory. |
450 'dependencies': ['../../build/win/system.gyp:cygwin'], | 452 'dependencies': ['../../build/win/system.gyp:cygwin'], |
451 'copies': [{ | 453 'copies': [{ |
452 'destination': '<(PRODUCT_DIR)/', | 454 'destination': '<(PRODUCT_DIR)/', |
453 'files': [ | 455 'files': [ |
454 'chromium/binaries/<(ffmpeg_bin_dir)/avcodec-53.dll', | 456 'chromium/binaries/<(ffmpeg_bin_dir)/avcodec-54.dll', |
455 'chromium/binaries/<(ffmpeg_bin_dir)/avformat-53.dll', | 457 'chromium/binaries/<(ffmpeg_bin_dir)/avformat-54.dll', |
456 'chromium/binaries/<(ffmpeg_bin_dir)/avutil-51.dll', | 458 'chromium/binaries/<(ffmpeg_bin_dir)/avutil-51.dll', |
457 ], | 459 ], |
458 }], | 460 }], |
459 }, { # else OS != "win", use POSIX stub generator | 461 }, { # else OS != "win", use POSIX stub generator |
460 'variables': { | 462 'variables': { |
461 'outfile_type': 'posix_stubs', | 463 'outfile_type': 'posix_stubs', |
462 'stubs_filename_root': 'ffmpeg_stubs', | 464 'stubs_filename_root': 'ffmpeg_stubs', |
463 'project_path': 'third_party/ffmpeg', | 465 'project_path': 'third_party/ffmpeg', |
464 'intermediate_dir': '<(INTERMEDIATE_DIR)', | 466 'intermediate_dir': '<(INTERMEDIATE_DIR)', |
465 'output_root': '<(SHARED_INTERMEDIATE_DIR)/ffmpeg', | 467 'output_root': '<(SHARED_INTERMEDIATE_DIR)/ffmpeg', |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 ], | 549 ], |
548 }], | 550 }], |
549 ], | 551 ], |
550 }], | 552 }], |
551 ], # conditions | 553 ], # conditions |
552 }], | 554 }], |
553 ], # conditions | 555 ], # conditions |
554 }, | 556 }, |
555 ], # targets | 557 ], # targets |
556 } | 558 } |
OLD | NEW |