mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
Meta: Allow building Ladybird without QtMultimedia if Pulse is found
This commit is contained in:
parent
31cd3124cc
commit
d9a277c139
1 changed files with 18 additions and 5 deletions
|
@ -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…
Add table
Reference in a new issue