Meta: Update LibMedia gn build to depend on ffmpeg

This commit is contained in:
Andrew Kaster 2024-09-25 12:32:51 -06:00 committed by Andrew Kaster
parent b395e6a6a6
commit 4348efd078
Notes: github-actions[bot] 2024-09-27 16:16:31 +00:00

View file

@ -1,3 +1,4 @@
import("//Meta/gn/build/libs/ffmpeg/enable.gni")
import("//Meta/gn/build/libs/pulse/enable.gni")
shared_library("LibMedia") {
@ -28,12 +29,21 @@ shared_library("LibMedia") {
"Audio/PulseAudioWrappers.cpp",
]
}
if (enable_ffmpeg) {
sources += [
"Audio/OggLoader.cpp",
"FFmpeg/FFmpegVideoDecoder.cpp",
]
} else {
sources += [ "FFmpeg/FFmpegVideoDecoderStub.cpp" ]
}
if (current_os == "mac") {
sources += [ "Audio/PlaybackStreamAudioUnit.cpp" ]
frameworks = [ "AudioUnit.framework" ]
}
deps = [
"//AK",
"//Meta/gn/build/libs/ffmpeg",
"//Meta/gn/build/libs/pulse",
"//Userland/Libraries/LibCore",
"//Userland/Libraries/LibCrypto",