mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-25 01:19:45 +00:00
48 lines
1.3 KiB
Text
48 lines
1.3 KiB
Text
import("//Meta/gn/build/libs/ffmpeg/enable.gni")
|
|
import("//Meta/gn/build/libs/pulse/enable.gni")
|
|
|
|
shared_library("LibMedia") {
|
|
include_dirs = [ "//Userland/Libraries" ]
|
|
sources = [
|
|
"Audio/Loader.cpp",
|
|
"Audio/PlaybackStream.cpp",
|
|
"Audio/SampleFormats.cpp",
|
|
"Color/ColorConverter.cpp",
|
|
"Color/ColorPrimaries.cpp",
|
|
"Color/TransferCharacteristics.cpp",
|
|
"Containers/Matroska/MatroskaDemuxer.cpp",
|
|
"Containers/Matroska/Reader.cpp",
|
|
"PlaybackManager.cpp",
|
|
"VideoFrame.cpp",
|
|
]
|
|
if (enable_pulseaudio) {
|
|
sources += [
|
|
"Audio/PlaybackStreamPulseAudio.cpp",
|
|
"Audio/PulseAudioWrappers.cpp",
|
|
]
|
|
}
|
|
if (enable_ffmpeg) {
|
|
sources += [
|
|
"Audio/FFmpegLoader.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",
|
|
"//Userland/Libraries/LibGfx",
|
|
"//Userland/Libraries/LibIPC",
|
|
"//Userland/Libraries/LibThreading",
|
|
"//Userland/Libraries/LibUnicode",
|
|
]
|
|
output_name = "media"
|
|
}
|