mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-08-17 01:10:28 +03:00
Meta: Define HAVE_QT when building WebContent for Qt in the GN build
For some reason, WebContent fails to load simple sites like xkcd.com without the Qt event loop, even when using RequestServer instead of the Qt networking stack. The CMake build on Linux has the same issue if we skip installing the Qt event loop. It's not clear why this is - whether something depends on the Qt event loop, or if there's a bug in the Unix event loop implementation. This is, however, also needed to use the --enable-qt-networking feature.
This commit is contained in:
parent
951aa44f87
commit
d4734e920c
Notes:
sideshowbarker
2024-07-17 02:23:25 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/d4734e920c Pull-request: https://github.com/SerenityOS/serenity/pull/24528 Reviewed-by: https://github.com/ADKaster ✅
@ -72,6 +72,7 @@ executable("WebContent") {
|
||||
]
|
||||
|
||||
if (enable_qt) {
|
||||
defines = [ "HAVE_QT" ]
|
||||
configs += [ ":WebContent_qt" ]
|
||||
sources += [
|
||||
"//Ladybird/Qt/EventLoopImplementationQt.cpp",
|
||||
@ -83,6 +84,7 @@ executable("WebContent") {
|
||||
]
|
||||
|
||||
if (enable_qt_multimedia) {
|
||||
defines += [ "HAVE_QT_MULTIMEDIA" ]
|
||||
sources += [
|
||||
"//Ladybird/Qt/AudioCodecPluginQt.cpp",
|
||||
"//Ladybird/Qt/AudioThread.cpp",
|
||||
|
Loading…
Reference in New Issue
Block a user