Update build_ffmpeg to use /winsysroot instead of include paths

Before this change, cross-compilation targeting win-arm64 failed due
to the workaround for replacing white-space-containing include paths
with temporary symbolic links seems to have broken the include
dependencies. This change replaces all of the windows cross-compilation
include specifications in --extra-cflags with a new LLVM /winsysroot
option. Unfortunately, that /winsysroot option doesn't also replace the
need for specifying lib paths to lld-link; there is no /winsysroot
option for lld-link. So the previous workaround for whitespace-in-paths
is used for libpaths is kept.

Also included in this change is the removal of '--target=arm64-windows'
as an --extra-ldflags option to ffmpeg configure when cross-compiling to
that arch/os: lld-link does not recognize that option, even before this
change.

BUG=1170998

Change-Id: I123c5766ceb230a36ed1e818b76abb9220673a48
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/third_party/ffmpeg/+/2737555
Reviewed-by: Ted Meyer <tmathmeyer@chromium.org>
1 file changed
tree: 7e434ba69cbc107802c633d672fdfb9712ad2d52
  1. .gitattributes
  2. .gitignore
  3. .mailmap
  4. .travis.yml
  5. BUILD.gn
  6. CONTRIBUTING.md
  7. COPYING.GPLv2
  8. COPYING.GPLv3
  9. COPYING.LGPLv2.1
  10. COPYING.LGPLv3
  11. CREDITS
  12. CREDITS.chromium
  13. Changelog
  14. DIR_METADATA
  15. INSTALL.md
  16. LICENSE.md
  17. MAINTAINERS
  18. Makefile
  19. OWNERS
  20. PRESUBMIT.py
  21. README.chromium
  22. README.md
  23. RELEASE
  24. chromium/
  25. codereview.settings
  26. compat/
  27. configure
  28. doc/
  29. ffbuild/
  30. ffmpeg_generated.gni
  31. ffmpeg_options.gni
  32. fftools/
  33. libavcodec/
  34. libavdevice/
  35. libavfilter/
  36. libavformat/
  37. libavresample/
  38. libavutil/
  39. libpostproc/
  40. libswresample/
  41. libswscale/
  42. presets/
  43. tests/
  44. tools/
README.md

FFmpeg README

FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata.

Libraries

  • libavcodec provides implementation of a wider range of codecs.
  • libavformat implements streaming protocols, container formats and basic I/O access.
  • libavutil includes hashers, decompressors and miscellaneous utility functions.
  • libavfilter provides a mean to alter decoded Audio and Video through chain of filters.
  • libavdevice provides an abstraction to access capture and playback devices.
  • libswresample implements audio mixing and resampling routines.
  • libswscale implements color conversion and scaling routines.

Tools

  • ffmpeg is a command line toolbox to manipulate, convert and stream multimedia content.
  • ffplay is a minimalistic multimedia player.
  • ffprobe is a simple analysis tool to inspect multimedia content.
  • Additional small tools such as aviocat, ismindex and qt-faststart.

Documentation

The offline documentation is available in the doc/ directory.

The online documentation is available in the main website and in the wiki.

Examples

Coding examples are available in the doc/examples directory.

License

FFmpeg codebase is mainly LGPL-licensed with optional components licensed under GPL. Please refer to the LICENSE file for detailed information.

Contributing

Patches should be submitted to the ffmpeg-devel mailing list using git format-patch or git send-email. Github pull requests should be avoided because they are not part of our review process and will be ignored.