mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
CMake: Remove unconditional Qt linkage from WebContent and WebWorker
Some checks are pending
CI / macOS, arm64, Sanitizer_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
Some checks are pending
CI / macOS, arm64, Sanitizer_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
WebContent only needs it when using QtMultimedia for audio playback, and WebWorker never needs it.
This commit is contained in:
parent
a9f7579738
commit
62c5f4b822
Notes:
github-actions[bot]
2025-07-07 21:54:10 +00:00
Author: https://github.com/ADKaster
Commit: 62c5f4b822
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5331
6 changed files with 33 additions and 58 deletions
|
@ -36,20 +36,6 @@ if (APPLE)
|
|||
list(APPEND SOURCES MachPortServer.cpp)
|
||||
endif()
|
||||
|
||||
if (ENABLE_QT)
|
||||
list(APPEND SOURCES
|
||||
EventLoop/EventLoopImplementationQt.cpp
|
||||
EventLoop/EventLoopImplementationQtEventTarget.cpp
|
||||
)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core)
|
||||
elseif (APPLE)
|
||||
list(APPEND SOURCES
|
||||
EventLoop/EventLoopImplementationMacOS.mm
|
||||
)
|
||||
endif()
|
||||
|
||||
set(GENERATED_SOURCES ${CURRENT_LIB_GENERATED})
|
||||
|
||||
embed_as_string(
|
||||
|
@ -93,16 +79,29 @@ endif()
|
|||
find_package(SQLite3 REQUIRED)
|
||||
target_link_libraries(LibWebView PRIVATE SQLite::SQLite3)
|
||||
|
||||
if (ENABLE_QT)
|
||||
target_link_libraries(LibWebView PRIVATE Qt::Core)
|
||||
elseif (APPLE)
|
||||
target_link_libraries(LibWebView PRIVATE "-framework Cocoa")
|
||||
endif()
|
||||
|
||||
if (HAS_FONTCONFIG)
|
||||
target_link_libraries(LibWebView PRIVATE Fontconfig::Fontconfig)
|
||||
endif()
|
||||
|
||||
add_library(LibWebViewPlatform INTERFACE)
|
||||
if (ENABLE_QT)
|
||||
add_library(LibWebViewQt STATIC
|
||||
EventLoop/EventLoopImplementationQt.cpp
|
||||
EventLoop/EventLoopImplementationQtEventTarget.cpp
|
||||
)
|
||||
|
||||
set_target_properties(LibWebViewQt PROPERTIES AUTOMOC ON AUTORCC OFF AUTOUIC OFF)
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core)
|
||||
target_link_libraries(LibWebViewQt PUBLIC Qt::Core)
|
||||
target_link_libraries(LibWebViewPlatform INTERFACE LibWebViewQt)
|
||||
elseif (APPLE)
|
||||
add_library(LibWebViewCocoa STATIC
|
||||
EventLoop/EventLoopImplementationMacOS.mm
|
||||
)
|
||||
target_link_libraries(LibWebViewCocoa PUBLIC "-framework Cocoa")
|
||||
target_link_libraries(LibWebViewPlatform INTERFACE LibWebViewCocoa)
|
||||
endif()
|
||||
|
||||
if (ENABLE_INSTALL_HEADERS)
|
||||
foreach(header ${GENERATED_SOURCES})
|
||||
get_filename_component(extension ${header} EXT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue