ImageDecoder: Move all ImageDecoder configuration to Services

This commit is contained in:
Timothy Flynn 2024-11-09 09:42:39 -05:00 committed by Andreas Kling
parent 19fb790dc6
commit 6208abc221
Notes: github-actions[bot] 2024-11-09 16:56:35 +00:00
4 changed files with 12 additions and 13 deletions

View file

@ -132,7 +132,6 @@ else()
endif()
add_subdirectory(Headless)
add_subdirectory(ImageDecoder)
add_subdirectory(RequestServer)
add_subdirectory(WebContent)
add_subdirectory(WebWorker)

View file

@ -1 +1,2 @@
add_subdirectory(ImageDecoder)
add_subdirectory(WebDriver)

View file

@ -1,27 +1,26 @@
set(IMAGE_DECODER_SOURCE_DIR ${LADYBIRD_SOURCE_DIR}/Userland/Services/ImageDecoder)
set(CMAKE_AUTOMOC OFF)
set(CMAKE_AUTORCC OFF)
set(CMAKE_AUTOUIC OFF)
set(IMAGE_DECODER_SOURCES
${IMAGE_DECODER_SOURCE_DIR}/ConnectionFromClient.cpp
set(SOURCES
ConnectionFromClient.cpp
)
if (ANDROID)
add_library(imagedecoderservice SHARED
${IMAGE_DECODER_SOURCES}
../Android/src/main/cpp/ImageDecoderService.cpp
../Android/src/main/cpp/LadybirdServiceBaseJNI.cpp
../Utilities.cpp
)
${LADYBIRD_SOURCE_DIR}/Ladybird/Android/src/main/cpp/ImageDecoderService.cpp
${LADYBIRD_SOURCE_DIR}/Ladybird/Android/src/main/cpp/LadybirdServiceBaseJNI.cpp
${LADYBIRD_SOURCE_DIR}/Ladybird/Utilities.cpp
${SOURCES}
)
else()
add_library(imagedecoderservice STATIC ${IMAGE_DECODER_SOURCES})
add_library(imagedecoderservice STATIC ${SOURCES})
endif()
add_executable(ImageDecoder main.cpp)
target_link_libraries(ImageDecoder PRIVATE imagedecoderservice LibCore LibMain)
target_include_directories(imagedecoderservice PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/../..)
target_include_directories(imagedecoderservice PRIVATE ${LADYBIRD_SOURCE_DIR}/Userland/Services/)
target_include_directories(imagedecoderservice PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/..)
target_link_libraries(ImageDecoder PRIVATE imagedecoderservice LibCore LibMain)
target_link_libraries(imagedecoderservice PRIVATE LibCore LibGfx LibIPC LibImageDecoderClient LibMain LibThreading)