mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
Meta: Fix detection of QtMultimedia usage on macOS
We use Audio Unit for audio on macOS.
This commit is contained in:
parent
5912df5e42
commit
903078e4d1
Notes:
sideshowbarker
2024-07-17 00:16:31 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/903078e4d1 Pull-request: https://github.com/SerenityOS/serenity/pull/24489 Reviewed-by: https://github.com/nico ✅
@ -3,13 +3,15 @@ import("//Ladybird/link_qt.gni")
|
||||
import("//Ladybird/moc_qt_objects.gni")
|
||||
import("//Meta/gn/build/libs/pulse/enable.gni")
|
||||
|
||||
enable_qt_multimedia = !enable_pulseaudio && current_os != "mac"
|
||||
|
||||
moc_qt_objects("generate_moc") {
|
||||
sources = [
|
||||
"//Ladybird/Qt/EventLoopImplementationQtEventTarget.h",
|
||||
"//Ladybird/Qt/RequestManagerQt.h",
|
||||
]
|
||||
|
||||
if (!enable_pulseaudio) {
|
||||
if (enable_qt_multimedia) {
|
||||
sources += [
|
||||
"//Ladybird/Qt/AudioCodecPluginQt.cpp",
|
||||
"//Ladybird/Qt/AudioThread.cpp",
|
||||
@ -23,7 +25,7 @@ link_qt("WebContent_qt") {
|
||||
"Network",
|
||||
]
|
||||
|
||||
if (!enable_pulseaudio) {
|
||||
if (enable_qt_multimedia) {
|
||||
qt_components += [ "Multimedia" ]
|
||||
}
|
||||
}
|
||||
@ -80,7 +82,7 @@ executable("WebContent") {
|
||||
"//Ladybird/Qt/WebSocketQt.cpp",
|
||||
]
|
||||
|
||||
if (!enable_pulseaudio) {
|
||||
if (enable_qt_multimedia) {
|
||||
sources += [
|
||||
"//Ladybird/Qt/AudioCodecPluginQt.cpp",
|
||||
"//Ladybird/Qt/AudioThread.cpp",
|
||||
|
Loading…
Reference in New Issue
Block a user