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