mirror of
https://github.com/zebrajr/ladybird.git
synced 2026-01-15 12:15:15 +00:00
59 lines
1.6 KiB
Plaintext
59 lines
1.6 KiB
Plaintext
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/PlaybackStream.cpp",
|
|
"Audio/SampleFormats.cpp",
|
|
"Color/ColorConverter.cpp",
|
|
"Color/ColorPrimaries.cpp",
|
|
"Color/TransferCharacteristics.cpp",
|
|
"Containers/Matroska/MatroskaDemuxer.cpp",
|
|
"Containers/Matroska/Reader.cpp",
|
|
"PlaybackManager.cpp",
|
|
"PlaybackStates/PlaybackStateHandler.cpp",
|
|
"Providers/AudioDataProvider.cpp",
|
|
"Providers/GenericTimeProvider.cpp",
|
|
"Providers/VideoDataProvider.cpp",
|
|
"Sinks/AudioMixingSink.cpp",
|
|
"Sinks/DisplayingVideoSink.cpp",
|
|
"VideoFrame.cpp",
|
|
]
|
|
if (enable_pulseaudio) {
|
|
sources += [
|
|
"Audio/PlaybackStreamPulseAudio.cpp",
|
|
"Audio/PulseAudioWrappers.cpp",
|
|
]
|
|
}
|
|
if (enable_ffmpeg) {
|
|
sources += [
|
|
"FFmpeg/FFmpegAudioConverter.cpp",
|
|
"FFmpeg/FFmpegAudioDecoder.cpp",
|
|
"FFmpeg/FFmpegHelpers.cpp",
|
|
"FFmpeg/FFmpegVideoDecoder.cpp",
|
|
]
|
|
} else {
|
|
sources += [ "FFmpeg/FFmpegVideoDecoderStub.cpp" ]
|
|
}
|
|
if (current_os == "mac") {
|
|
sources += [ "Audio/PlaybackStreamAudioUnit.cpp" ]
|
|
frameworks = [
|
|
"AudioToolbox.framework",
|
|
"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"
|
|
}
|