mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
Merge changes I3d17d529,I53026880,I1bd61639,I6bd4b25d,Icfec8fba into main
* changes: CMake: add src to webpinfo includes CMake: add WEBP_BUILD_WEBPINFO to list of checks for exampleutil CMake: add WEBP_BUILD_WEBPMUX to list of checks for exampleutil CMake: link imageioutil to exampleutil after defined WEBP_DEP_LIBRARIES: use Threads::Threads
This commit is contained in:
commit
f81dd7d63e
@ -445,13 +445,14 @@ if(WEBP_BUILD_ANIM_UTILS
|
|||||||
OR WEBP_BUILD_DWEBP
|
OR WEBP_BUILD_DWEBP
|
||||||
OR WEBP_BUILD_GIF2WEBP
|
OR WEBP_BUILD_GIF2WEBP
|
||||||
OR WEBP_BUILD_IMG2WEBP
|
OR WEBP_BUILD_IMG2WEBP
|
||||||
OR WEBP_BUILD_VWEBP)
|
OR WEBP_BUILD_VWEBP
|
||||||
|
OR WEBP_BUILD_WEBPMUX
|
||||||
|
OR WEBP_BUILD_WEBPINFO)
|
||||||
# Example utility library.
|
# Example utility library.
|
||||||
parse_makefile_am(${CMAKE_CURRENT_SOURCE_DIR}/examples "EXAMPLEUTIL_SRCS"
|
parse_makefile_am(${CMAKE_CURRENT_SOURCE_DIR}/examples "EXAMPLEUTIL_SRCS"
|
||||||
"example_util_[^ ]*")
|
"example_util_[^ ]*")
|
||||||
list(APPEND EXAMPLEUTIL_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/examples/stopwatch.h)
|
list(APPEND EXAMPLEUTIL_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/examples/stopwatch.h)
|
||||||
add_library(exampleutil STATIC ${EXAMPLEUTIL_SRCS})
|
add_library(exampleutil STATIC ${EXAMPLEUTIL_SRCS})
|
||||||
target_link_libraries(exampleutil imageioutil)
|
|
||||||
target_include_directories(
|
target_include_directories(
|
||||||
exampleutil
|
exampleutil
|
||||||
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>)
|
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>)
|
||||||
@ -460,6 +461,7 @@ if(WEBP_BUILD_ANIM_UTILS
|
|||||||
"imageio_util_[^ ]*")
|
"imageio_util_[^ ]*")
|
||||||
add_library(imageioutil STATIC ${IMAGEIOUTILS_SRCS})
|
add_library(imageioutil STATIC ${IMAGEIOUTILS_SRCS})
|
||||||
target_link_libraries(imageioutil webp)
|
target_link_libraries(imageioutil webp)
|
||||||
|
target_link_libraries(exampleutil imageioutil)
|
||||||
|
|
||||||
# Image-decoding utility library.
|
# Image-decoding utility library.
|
||||||
parse_makefile_am(${CMAKE_CURRENT_SOURCE_DIR}/imageio "IMAGEDEC_SRCS"
|
parse_makefile_am(${CMAKE_CURRENT_SOURCE_DIR}/imageio "IMAGEDEC_SRCS"
|
||||||
@ -587,7 +589,9 @@ if(WEBP_BUILD_WEBPINFO)
|
|||||||
"webpinfo")
|
"webpinfo")
|
||||||
add_executable(webpinfo ${WEBPINFO_SRCS})
|
add_executable(webpinfo ${WEBPINFO_SRCS})
|
||||||
target_link_libraries(webpinfo exampleutil imageioutil)
|
target_link_libraries(webpinfo exampleutil imageioutil)
|
||||||
target_include_directories(webpinfo PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/src)
|
target_include_directories(webpinfo
|
||||||
|
PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/src
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/src)
|
||||||
install(TARGETS webpinfo RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
install(TARGETS webpinfo RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ if(WEBP_USE_THREAD)
|
|||||||
}
|
}
|
||||||
" FLAG_HAVE_PTHREAD_PRIO_INHERIT)
|
" FLAG_HAVE_PTHREAD_PRIO_INHERIT)
|
||||||
set(HAVE_PTHREAD_PRIO_INHERIT ${FLAG_HAVE_PTHREAD_PRIO_INHERIT})
|
set(HAVE_PTHREAD_PRIO_INHERIT ${FLAG_HAVE_PTHREAD_PRIO_INHERIT})
|
||||||
list(APPEND WEBP_DEP_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
|
list(APPEND WEBP_DEP_LIBRARIES Threads::Threads)
|
||||||
endif()
|
endif()
|
||||||
set(WEBP_USE_THREAD ${Threads_FOUND})
|
set(WEBP_USE_THREAD ${Threads_FOUND})
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user