mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +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: 4348efd078
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")
|
import("//Meta/gn/build/libs/pulse/enable.gni")
|
||||||
|
|
||||||
shared_library("LibMedia") {
|
shared_library("LibMedia") {
|
||||||
|
@ -28,12 +29,21 @@ shared_library("LibMedia") {
|
||||||
"Audio/PulseAudioWrappers.cpp",
|
"Audio/PulseAudioWrappers.cpp",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
if (enable_ffmpeg) {
|
||||||
|
sources += [
|
||||||
|
"Audio/OggLoader.cpp",
|
||||||
|
"FFmpeg/FFmpegVideoDecoder.cpp",
|
||||||
|
]
|
||||||
|
} else {
|
||||||
|
sources += [ "FFmpeg/FFmpegVideoDecoderStub.cpp" ]
|
||||||
|
}
|
||||||
if (current_os == "mac") {
|
if (current_os == "mac") {
|
||||||
sources += [ "Audio/PlaybackStreamAudioUnit.cpp" ]
|
sources += [ "Audio/PlaybackStreamAudioUnit.cpp" ]
|
||||||
frameworks = [ "AudioUnit.framework" ]
|
frameworks = [ "AudioUnit.framework" ]
|
||||||
}
|
}
|
||||||
deps = [
|
deps = [
|
||||||
"//AK",
|
"//AK",
|
||||||
|
"//Meta/gn/build/libs/ffmpeg",
|
||||||
"//Meta/gn/build/libs/pulse",
|
"//Meta/gn/build/libs/pulse",
|
||||||
"//Userland/Libraries/LibCore",
|
"//Userland/Libraries/LibCore",
|
||||||
"//Userland/Libraries/LibCrypto",
|
"//Userland/Libraries/LibCrypto",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue