mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 05:35:52 +03:00
e02b2a7b9a
We don't need the extra gradle files in our sources, the Qt CMake integration will generate suitable ones for us. Make sure that assets is always a folder, so that we can get the proper layout for the ladybird-assets.tar.gz and CMake doesn't create a gzip file with the name "assets". Fix up the AndroidPlatform file and make sure it's linked into all the applications that need it. Also make sure to copy all the application shared libraries into the ladybird APK so that when we make them into proper Services, the libs are already there.
34 lines
1.2 KiB
CMake
34 lines
1.2 KiB
CMake
set(WEBCONTENT_SOURCE_DIR ${SERENITY_SOURCE_DIR}/Userland/Services/WebContent/)
|
|
|
|
set(WEBCONTENT_SOURCES
|
|
${WEBCONTENT_SOURCE_DIR}/ConnectionFromClient.cpp
|
|
${WEBCONTENT_SOURCE_DIR}/ConsoleGlobalEnvironmentExtensions.cpp
|
|
${WEBCONTENT_SOURCE_DIR}/PageHost.cpp
|
|
${WEBCONTENT_SOURCE_DIR}/WebContentConsoleClient.cpp
|
|
${WEBCONTENT_SOURCE_DIR}/WebDriverConnection.cpp
|
|
../AudioCodecPluginLadybird.cpp
|
|
../AudioThread.cpp
|
|
../EventLoopImplementationQt.cpp
|
|
../FontPluginQt.cpp
|
|
../ImageCodecPluginLadybird.cpp
|
|
../RequestManagerQt.cpp
|
|
../Utilities.cpp
|
|
../WebSocketClientManagerLadybird.cpp
|
|
../WebSocketLadybird.cpp
|
|
../WebSocketImplQt.cpp
|
|
main.cpp
|
|
)
|
|
|
|
if (APPLE)
|
|
list(APPEND WEBCONTENT_SOURCES MacOSSetup.mm)
|
|
endif()
|
|
|
|
qt_add_executable(WebContent ${WEBCONTENT_SOURCES})
|
|
|
|
target_include_directories(WebContent PRIVATE ${SERENITY_SOURCE_DIR}/Userland/Services/)
|
|
target_include_directories(WebContent PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/..)
|
|
target_link_libraries(WebContent PRIVATE Qt::Core Qt::Gui Qt::Network Qt::Multimedia LibAudio LibCore LibFileSystem LibGfx LibIPC LibJS LibMain LibWeb LibWebSocket)
|
|
if (ANDROID)
|
|
link_android_libs(WebContent)
|
|
endif()
|