mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 04:43:18 +08:00
[giflib] Modernize. Avoid use of WINDOWS_EXPORT_ALL_SYMBOLS.
This commit is contained in:
parent
1945a19de6
commit
6588b55361
@ -1,6 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.4)
|
||||
|
||||
project(giflib)
|
||||
project(giflib C)
|
||||
|
||||
set(GIFLIB_HEADERS
|
||||
lib/gif_lib.h
|
||||
@ -18,9 +18,6 @@ set(GIFLIB_SOURCES
|
||||
)
|
||||
|
||||
add_library(gif ${GIFLIB_SOURCES})
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set_property(TARGET gif PROPERTY WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
endif ()
|
||||
|
||||
if (NOT GIFLIB_SKIP_HEADERS)
|
||||
install(FILES ${GIFLIB_HEADERS} DESTINATION include)
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: giflib
|
||||
Version: 5.1.4-2
|
||||
Version: 5.1.4-3
|
||||
Description: A library for reading and writing gif images.
|
||||
|
@ -2,23 +2,22 @@ include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/giflib-5.1.4)
|
||||
set(GIFLIB_VERSION 5.1.4)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://downloads.sourceforge.net/sourceforge/giflib/giflib-5.1.4.tar.bz2"
|
||||
FILENAME "giflib-5.1.4.tar.bz2"
|
||||
URLS "http://downloads.sourceforge.net/sourceforge/giflib/giflib-${GIFLIB_VERSION}.tar.bz2"
|
||||
FILENAME "giflib-${GIFLIB_VERSION}.tar.bz2"
|
||||
SHA512 32b5e342056c210e6478e9cb3b6ceec9594dcfaf34feea1eb4dad633a081ed4465bceee578c19165907cb47cb83912ac359ceea666a8e07dbbb5420f9928f96d
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
REF ${GIFLIB_VERSION}
|
||||
PATCHES msvc-guard-unistd-h.patch
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/msvc-guard-unistd-h.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS_DEBUG
|
||||
|
Loading…
Reference in New Issue
Block a user