mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
The vcpkg install is handled through an action to run vcpkg install with the private --x-install-root flag that their CMake toolchain file uses to install dependencies into a build-time directory.
38 lines
920 B
Plaintext
38 lines
920 B
Plaintext
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",
|
|
]
|
|
defines = [ "USE_FFMPEG" ]
|
|
}
|
|
|
|
group("ffmpeg") {
|
|
if (enable_ffmpeg) {
|
|
public_configs = [ ":ffmpeg_config" ]
|
|
}
|
|
}
|