| 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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 ], | 451 ], |
| 452 }], | 452 }], |
| 453 }, { # else OS!="win", use POSIX stub generator | 453 }, { # else OS!="win", use POSIX stub generator |
| 454 'variables': { | 454 'variables': { |
| 455 'outfile_type': 'posix_stubs', | 455 'outfile_type': 'posix_stubs', |
| 456 'stubs_filename_root': 'ffmpeg_stubs', | 456 'stubs_filename_root': 'ffmpeg_stubs', |
| 457 'project_path': 'third_party/ffmpeg', | 457 'project_path': 'third_party/ffmpeg', |
| 458 'intermediate_dir': '<(INTERMEDIATE_DIR)', | 458 'intermediate_dir': '<(INTERMEDIATE_DIR)', |
| 459 'output_root': '<(SHARED_INTERMEDIATE_DIR)/ffmpeg', | 459 'output_root': '<(SHARED_INTERMEDIATE_DIR)/ffmpeg', |
| 460 }, | 460 }, |
| 461 'type': '<(library)', | 461 'type': '<(component)', |
| 462 'include_dirs': [ | 462 'include_dirs': [ |
| 463 '<(output_root)', | 463 '<(output_root)', |
| 464 '../..', # The chromium 'src' directory. | 464 '../..', # The chromium 'src' directory. |
| 465 ], | 465 ], |
| 466 'direct_dependent_settings': { | 466 'direct_dependent_settings': { |
| 467 'defines': [ | 467 'defines': [ |
| 468 '__STDC_CONSTANT_MACROS', # FFmpeg uses INT64_C. | 468 '__STDC_CONSTANT_MACROS', # FFmpeg uses INT64_C. |
| 469 ], | 469 ], |
| 470 'include_dirs': [ | 470 'include_dirs': [ |
| 471 '<(output_root)', | 471 '<(output_root)', |
| (...skipping 30 matching lines...) Expand all Loading... |
| 502 'conditions': [ | 502 'conditions': [ |
| 503 # Linux/Solaris need libdl for dlopen() and friends. | 503 # Linux/Solaris need libdl for dlopen() and friends. |
| 504 ['OS=="linux" or OS=="solaris"', { | 504 ['OS=="linux" or OS=="solaris"', { |
| 505 'link_settings': { | 505 'link_settings': { |
| 506 'libraries': [ | 506 'libraries': [ |
| 507 '-ldl', | 507 '-ldl', |
| 508 ], | 508 ], |
| 509 }, | 509 }, |
| 510 }], | 510 }], |
| 511 | 511 |
| 512 ['component=="shared_library"', { |
| 513 'cflags!': ['-fvisibility=hidden'], |
| 514 }], |
| 515 |
| 512 # Add pkg-config result to include path when use_system_ffmpeg!=0 | 516 # Add pkg-config result to include path when use_system_ffmpeg!=0 |
| 513 ['use_system_ffmpeg!=0', { | 517 ['use_system_ffmpeg!=0', { |
| 514 'cflags': [ | 518 'cflags': [ |
| 515 '<!@(pkg-config --cflags libavcodec libavformat libavutil)', | 519 '<!@(pkg-config --cflags libavcodec libavformat libavutil)', |
| 516 ], | 520 ], |
| 517 'direct_dependent_settings': { | 521 'direct_dependent_settings': { |
| 518 'cflags': [ | 522 'cflags': [ |
| 519 '<!@(pkg-config --cflags libavcodec libavformat libavutil)', | 523 '<!@(pkg-config --cflags libavcodec libavformat libavutil)', |
| 520 ], | 524 ], |
| 521 }, | 525 }, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 543 ], # conditions | 547 ], # conditions |
| 544 }, | 548 }, |
| 545 ], # targets | 549 ], # targets |
| 546 } | 550 } |
| 547 | 551 |
| 548 # Local Variables: | 552 # Local Variables: |
| 549 # tab-width:2 | 553 # tab-width:2 |
| 550 # indent-tabs-mode:nil | 554 # indent-tabs-mode:nil |
| 551 # End: | 555 # End: |
| 552 # vim: set expandtab tabstop=2 shiftwidth=2: | 556 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |