mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-24 08:59:50 +00:00
Now it should be clearer looking at the build scripts what options are available for building LibMedia, and what packages are required.
36 lines
891 B
Text
36 lines
891 B
Text
import("//Meta/gn/build/libs/ffmpeg/enable.gni")
|
|
|
|
declare_args() {
|
|
# Select whether to look for ffmpeg in the homebrew installation
|
|
ffmpeg_homebrew = current_os == "mac"
|
|
|
|
# Root directory for the homebrew installation
|
|
homebrew_prefix = "/opt/homebrew"
|
|
}
|
|
|
|
declare_args() {
|
|
# Root directory for the ffmpeg installation, e.g. from brew --prefix ffmpeg
|
|
ffmpeg_prefix = "/usr"
|
|
if (ffmpeg_homebrew) {
|
|
ffmpeg_prefix = "${homebrew_prefix}/opt/ffmpeg"
|
|
}
|
|
}
|
|
|
|
# FIXME: We don't build this, we pull it from the user's system
|
|
# So it doesn't follow the usual third_party_dependency pattern
|
|
config("ffmpeg_config") {
|
|
visibility = [ ":ffmpeg" ]
|
|
include_dirs = [ "${ffmpeg_prefix}/include" ]
|
|
lib_dirs = [ "${ffmpeg_prefix}/lib" ]
|
|
libs = [
|
|
"avcodec",
|
|
"avformat",
|
|
"avutil",
|
|
]
|
|
}
|
|
|
|
group("ffmpeg") {
|
|
if (enable_ffmpeg) {
|
|
public_configs = [ ":ffmpeg_config" ]
|
|
}
|
|
}
|