mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
Meta: Allow building Ladybird without QtMultimedia if Pulse is found
This commit is contained in:
parent
31cd3124cc
commit
d9a277c139
Notes:
sideshowbarker
2024-07-18 03:35:30 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/d9a277c139 Pull-request: https://github.com/SerenityOS/serenity/pull/24484 Reviewed-by: https://github.com/nico ✅
@ -5,19 +5,27 @@ import("//Meta/gn/build/libs/pulse/enable.gni")
|
||||
|
||||
moc_qt_objects("generate_moc") {
|
||||
sources = [
|
||||
"//Ladybird/Qt/AudioCodecPluginQt.h",
|
||||
"//Ladybird/Qt/AudioThread.h",
|
||||
"//Ladybird/Qt/EventLoopImplementationQtEventTarget.h",
|
||||
"//Ladybird/Qt/RequestManagerQt.h",
|
||||
]
|
||||
|
||||
if (!enable_pulseaudio) {
|
||||
sources += [
|
||||
"//Ladybird/Qt/AudioCodecPluginQt.cpp",
|
||||
"//Ladybird/Qt/AudioThread.cpp",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
link_qt("WebContent_qt") {
|
||||
qt_components = [
|
||||
"Core",
|
||||
"Network",
|
||||
"Multimedia",
|
||||
]
|
||||
|
||||
if (!enable_pulseaudio) {
|
||||
qt_components += [ "Multimedia" ]
|
||||
}
|
||||
}
|
||||
|
||||
executable("WebContent") {
|
||||
@ -64,8 +72,6 @@ executable("WebContent") {
|
||||
if (enable_qt) {
|
||||
configs += [ ":WebContent_qt" ]
|
||||
sources += [
|
||||
"//Ladybird/Qt/AudioCodecPluginQt.cpp",
|
||||
"//Ladybird/Qt/AudioThread.cpp",
|
||||
"//Ladybird/Qt/EventLoopImplementationQt.cpp",
|
||||
"//Ladybird/Qt/EventLoopImplementationQtEventTarget.cpp",
|
||||
"//Ladybird/Qt/RequestManagerQt.cpp",
|
||||
@ -74,6 +80,13 @@ executable("WebContent") {
|
||||
"//Ladybird/Qt/WebSocketQt.cpp",
|
||||
]
|
||||
|
||||
if (!enable_pulseaudio) {
|
||||
sources += [
|
||||
"//Ladybird/Qt/AudioCodecPluginQt.cpp",
|
||||
"//Ladybird/Qt/AudioThread.cpp",
|
||||
]
|
||||
}
|
||||
|
||||
sources += get_target_outputs(":generate_moc")
|
||||
deps += [ ":generate_moc" ]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user