mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-24 10:18:59 +00: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: d9a277c139
Pull-request: https://github.com/SerenityOS/serenity/pull/24484
Reviewed-by: https://github.com/nico ✅
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") {
|
moc_qt_objects("generate_moc") {
|
||||||
sources = [
|
sources = [
|
||||||
"//Ladybird/Qt/AudioCodecPluginQt.h",
|
|
||||||
"//Ladybird/Qt/AudioThread.h",
|
|
||||||
"//Ladybird/Qt/EventLoopImplementationQtEventTarget.h",
|
"//Ladybird/Qt/EventLoopImplementationQtEventTarget.h",
|
||||||
"//Ladybird/Qt/RequestManagerQt.h",
|
"//Ladybird/Qt/RequestManagerQt.h",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if (!enable_pulseaudio) {
|
||||||
|
sources += [
|
||||||
|
"//Ladybird/Qt/AudioCodecPluginQt.cpp",
|
||||||
|
"//Ladybird/Qt/AudioThread.cpp",
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
link_qt("WebContent_qt") {
|
link_qt("WebContent_qt") {
|
||||||
qt_components = [
|
qt_components = [
|
||||||
"Core",
|
"Core",
|
||||||
"Network",
|
"Network",
|
||||||
"Multimedia",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if (!enable_pulseaudio) {
|
||||||
|
qt_components += [ "Multimedia" ]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
executable("WebContent") {
|
executable("WebContent") {
|
||||||
|
@ -64,8 +72,6 @@ executable("WebContent") {
|
||||||
if (enable_qt) {
|
if (enable_qt) {
|
||||||
configs += [ ":WebContent_qt" ]
|
configs += [ ":WebContent_qt" ]
|
||||||
sources += [
|
sources += [
|
||||||
"//Ladybird/Qt/AudioCodecPluginQt.cpp",
|
|
||||||
"//Ladybird/Qt/AudioThread.cpp",
|
|
||||||
"//Ladybird/Qt/EventLoopImplementationQt.cpp",
|
"//Ladybird/Qt/EventLoopImplementationQt.cpp",
|
||||||
"//Ladybird/Qt/EventLoopImplementationQtEventTarget.cpp",
|
"//Ladybird/Qt/EventLoopImplementationQtEventTarget.cpp",
|
||||||
"//Ladybird/Qt/RequestManagerQt.cpp",
|
"//Ladybird/Qt/RequestManagerQt.cpp",
|
||||||
|
@ -74,6 +80,13 @@ executable("WebContent") {
|
||||||
"//Ladybird/Qt/WebSocketQt.cpp",
|
"//Ladybird/Qt/WebSocketQt.cpp",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if (!enable_pulseaudio) {
|
||||||
|
sources += [
|
||||||
|
"//Ladybird/Qt/AudioCodecPluginQt.cpp",
|
||||||
|
"//Ladybird/Qt/AudioThread.cpp",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
sources += get_target_outputs(":generate_moc")
|
sources += get_target_outputs(":generate_moc")
|
||||||
deps += [ ":generate_moc" ]
|
deps += [ ":generate_moc" ]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue