2023-09-08 06:30:50 -04:00
|
|
|
set(IMAGE_DECODER_SOURCE_DIR ${SERENITY_SOURCE_DIR}/Userland/Services/ImageDecoder)
|
|
|
|
|
|
|
|
|
|
set(IMAGE_DECODER_SOURCES
|
|
|
|
|
${IMAGE_DECODER_SOURCE_DIR}/ConnectionFromClient.cpp
|
|
|
|
|
)
|
|
|
|
|
|
2023-10-31 15:27:23 -06:00
|
|
|
if (ANDROID)
|
|
|
|
|
add_library(imagedecoder SHARED
|
|
|
|
|
${IMAGE_DECODER_SOURCES}
|
|
|
|
|
../Android/src/main/cpp/ImageDecoderService.cpp
|
|
|
|
|
../Android/src/main/cpp/LadybirdServiceBaseJNI.cpp
|
|
|
|
|
../Utilities.cpp
|
|
|
|
|
)
|
|
|
|
|
else()
|
|
|
|
|
add_library(imagedecoder STATIC ${IMAGE_DECODER_SOURCES})
|
|
|
|
|
endif()
|
2023-09-08 06:30:50 -04:00
|
|
|
|
2023-10-31 15:27:23 -06:00
|
|
|
add_executable(ImageDecoder main.cpp)
|
|
|
|
|
target_link_libraries(ImageDecoder PRIVATE imagedecoder LibMain)
|
|
|
|
|
|
|
|
|
|
target_include_directories(imagedecoder PRIVATE ${SERENITY_SOURCE_DIR}/Userland/Services/)
|
|
|
|
|
target_include_directories(imagedecoder PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/..)
|
|
|
|
|
target_link_libraries(imagedecoder PRIVATE LibCore LibGfx LibIPC LibImageDecoderClient LibMain)
|