mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
Meta: Update LibMedia gn build to depend on ffmpeg
This commit is contained in:
parent
b395e6a6a6
commit
4348efd078
Notes:
github-actions[bot]
2024-09-27 16:16:31 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/4348efd0789 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1515 Reviewed-by: https://github.com/nico Reviewed-by: https://github.com/trflynn89
1 changed files with 10 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue