2023-11-02 18:34:02 +00:00
|
|
|
set(CMAKE_AUTOMOC OFF)
|
|
|
|
set(CMAKE_AUTORCC OFF)
|
|
|
|
set(CMAKE_AUTOUIC OFF)
|
|
|
|
|
2024-11-09 14:42:39 +00:00
|
|
|
set(SOURCES
|
|
|
|
ConnectionFromClient.cpp
|
2023-09-08 10:30:50 +00:00
|
|
|
)
|
|
|
|
|
2023-10-31 21:27:23 +00:00
|
|
|
if (ANDROID)
|
2024-09-03 08:31:45 +00:00
|
|
|
add_library(imagedecoderservice SHARED
|
2024-11-09 17:50:33 +00:00
|
|
|
${LADYBIRD_SOURCE_DIR}/UI/Android/src/main/cpp/ImageDecoderService.cpp
|
|
|
|
${LADYBIRD_SOURCE_DIR}/UI/Android/src/main/cpp/LadybirdServiceBaseJNI.cpp
|
2024-11-09 14:42:39 +00:00
|
|
|
${SOURCES}
|
|
|
|
)
|
2023-10-31 21:27:23 +00:00
|
|
|
else()
|
2024-11-09 14:42:39 +00:00
|
|
|
add_library(imagedecoderservice STATIC ${SOURCES})
|
2023-10-31 21:27:23 +00:00
|
|
|
endif()
|
2023-09-08 10:30:50 +00:00
|
|
|
|
2023-10-31 21:27:23 +00:00
|
|
|
add_executable(ImageDecoder main.cpp)
|
|
|
|
|
2024-11-09 14:42:39 +00:00
|
|
|
target_include_directories(imagedecoderservice PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/../..)
|
2024-11-09 17:13:18 +00:00
|
|
|
target_include_directories(imagedecoderservice PRIVATE ${LADYBIRD_SOURCE_DIR}/Services/)
|
2024-11-09 14:42:39 +00:00
|
|
|
|
|
|
|
target_link_libraries(ImageDecoder PRIVATE imagedecoderservice LibCore LibMain)
|
2024-09-03 08:31:45 +00:00
|
|
|
target_link_libraries(imagedecoderservice PRIVATE LibCore LibGfx LibIPC LibImageDecoderClient LibMain LibThreading)
|