This commit splits out synchronization primitives from LibThreading into LibSync. This is because LibThreading depends on LibCore, while LibCore needs the synchronization primitives from LibThreading. This worked while they were header only, but when I tried to add an implementation file it ran into the circular dependency. To abstract away the pthread implementation using cpp files is necessary so the synchronization primitives were moved to a separate library.
20 lines
690 B
CMake
20 lines
690 B
CMake
set(SOURCES
|
|
Client.cpp
|
|
Session.cpp
|
|
WebContentConnection.cpp
|
|
main.cpp
|
|
)
|
|
|
|
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 ${LADYBIRD_SOURCE_DIR})
|
|
target_include_directories(WebDriver PRIVATE ${LADYBIRD_SOURCE_DIR}/Services)
|
|
|
|
target_link_libraries(WebDriver PRIVATE LibCore LibFileSystem LibGfx LibIPC LibJS LibMain LibSync LibWeb LibWebSocket LibWebView)
|
|
target_link_libraries(WebDriver PRIVATE OpenSSL::Crypto OpenSSL::SSL)
|
|
|
|
if (WIN32)
|
|
ladybird_windows_bin(WebDriver)
|
|
endif()
|