mirror of
https://github.com/webmproject/libwebp.git
synced 2025-04-05 00:16:50 +02:00
Merge "Add -fvisibility=hidden flag in CMakeLists." into main
This commit is contained in:
commit
92a673d258
@ -117,6 +117,8 @@ set(includedir "\$\{prefix\}/include")
|
|||||||
set(PTHREAD_LIBS ${CMAKE_THREAD_LIBS_INIT})
|
set(PTHREAD_LIBS ${CMAKE_THREAD_LIBS_INIT})
|
||||||
set(INSTALLED_LIBRARIES)
|
set(INSTALLED_LIBRARIES)
|
||||||
|
|
||||||
|
set(CMAKE_C_VISIBILITY_PRESET hidden)
|
||||||
|
|
||||||
# ##############################################################################
|
# ##############################################################################
|
||||||
# Android only.
|
# Android only.
|
||||||
if(ANDROID)
|
if(ANDROID)
|
||||||
@ -614,6 +616,13 @@ if(WEBP_BUILD_EXTRAS)
|
|||||||
parse_makefile_am(${EXTRAS_MAKEFILE} "WEBP_QUALITY_SRCS" "webp_quality")
|
parse_makefile_am(${EXTRAS_MAKEFILE} "WEBP_QUALITY_SRCS" "webp_quality")
|
||||||
parse_makefile_am(${EXTRAS_MAKEFILE} "VWEBP_SDL_SRCS" "vwebp_sdl")
|
parse_makefile_am(${EXTRAS_MAKEFILE} "VWEBP_SDL_SRCS" "vwebp_sdl")
|
||||||
|
|
||||||
|
# libextras
|
||||||
|
add_library(extras STATIC ${WEBP_EXTRAS_SRCS})
|
||||||
|
target_include_directories(extras
|
||||||
|
PRIVATE ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/src)
|
||||||
|
|
||||||
# get_disto
|
# get_disto
|
||||||
add_executable(get_disto ${GET_DISTO_SRCS})
|
add_executable(get_disto ${GET_DISTO_SRCS})
|
||||||
target_link_libraries(get_disto imagedec)
|
target_link_libraries(get_disto imagedec)
|
||||||
@ -622,8 +631,8 @@ if(WEBP_BUILD_EXTRAS)
|
|||||||
${CMAKE_CURRENT_BINARY_DIR}/src)
|
${CMAKE_CURRENT_BINARY_DIR}/src)
|
||||||
|
|
||||||
# webp_quality
|
# webp_quality
|
||||||
add_executable(webp_quality ${WEBP_QUALITY_SRCS} ${WEBP_EXTRAS_SRCS})
|
add_executable(webp_quality ${WEBP_QUALITY_SRCS})
|
||||||
target_link_libraries(webp_quality exampleutil imagedec)
|
target_link_libraries(webp_quality exampleutil imagedec extras)
|
||||||
target_include_directories(webp_quality
|
target_include_directories(webp_quality
|
||||||
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
${CMAKE_CURRENT_BINARY_DIR})
|
${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user