mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00: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.
22 lines
875 B
CMake
22 lines
875 B
CMake
set(WEBDRIVER_SOURCE_DIR ${SERENITY_SOURCE_DIR}/Userland/Services/WebDriver)
|
|
|
|
set(SOURCES
|
|
${WEBDRIVER_SOURCE_DIR}/Client.cpp
|
|
${WEBDRIVER_SOURCE_DIR}/Session.cpp
|
|
${WEBDRIVER_SOURCE_DIR}/WebContentConnection.cpp
|
|
../Utilities.cpp
|
|
../HelperProcess.cpp
|
|
main.cpp
|
|
)
|
|
|
|
qt_add_executable(WebDriver ${SOURCES})
|
|
|
|
target_include_directories(WebDriver PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/..)
|
|
target_include_directories(WebDriver PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/..)
|
|
target_include_directories(WebDriver PRIVATE ${SERENITY_SOURCE_DIR}/Userland)
|
|
target_include_directories(WebDriver PRIVATE ${SERENITY_SOURCE_DIR}/Userland/Services)
|
|
target_link_libraries(WebDriver PRIVATE Qt::Core Qt::Network LibCore LibFileSystem LibGfx LibIPC LibJS LibMain LibWeb LibWebSocket)
|
|
add_dependencies(WebDriver headless-browser)
|
|
if (ANDROID)
|
|
link_android_libs(WebDriver)
|
|
endif()
|