mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-13 11:39:02 +08:00
6e25f7e02a
* [giflib]fix compile error in x64-uwp * [giflib]Modify the location of the CMakelists.txt changes in the patch to avoid patching failures. * [giflib]Modify cmakelists.txt directly and delete the corresponding changes in the patch * [giflib] Modernize. Avoid use of WINDOWS_EXPORT_ALL_SYMBOLS.
32 lines
562 B
CMake
32 lines
562 B
CMake
cmake_minimum_required(VERSION 3.4)
|
|
|
|
project(giflib C)
|
|
|
|
set(GIFLIB_HEADERS
|
|
lib/gif_lib.h
|
|
)
|
|
|
|
set(GIFLIB_SOURCES
|
|
lib/dgif_lib.c
|
|
lib/egif_lib.c
|
|
lib/gif_err.c
|
|
lib/gif_font.c
|
|
lib/gif_hash.c
|
|
lib/gifalloc.c
|
|
lib/openbsd-reallocarray.c
|
|
lib/quantize.c
|
|
)
|
|
|
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
|
add_library(gif ${GIFLIB_SOURCES})
|
|
|
|
if (NOT GIFLIB_SKIP_HEADERS)
|
|
install(FILES ${GIFLIB_HEADERS} DESTINATION include)
|
|
endif ()
|
|
|
|
install(TARGETS gif
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
)
|