mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[libplist] Update to 1.2.137 (#8936)
* [libplist] Upgrade to 1.2.137 * Update CMakeLists.txt * [libplist] Update build status Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
This commit is contained in:
parent
006c58ec10
commit
3200392582
33
ports/libplist/CMakeLists.txt
Normal file
33
ports/libplist/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
cmake_minimum_required(VERSION 3.8)
|
||||
project(plist C)
|
||||
|
||||
file(GLOB_RECURSE PLIST_HEADER include/plist/*.h)
|
||||
file(GLOB_RECURSE PLIST_SRC src/*.c)
|
||||
|
||||
file(GLOB_RECURSE LIBCNARY_HEADER libcnary/include/*.h)
|
||||
file(GLOB_RECURSE LIBCNARY_SRC libcnary/*c)
|
||||
|
||||
add_library(plist ${PLIST_SRC} ${PLIST_HEADER} ${LIBCNARY_SRC} ${LIBCNARY_HEADER})
|
||||
target_include_directories(plist PRIVATE src include libcnary/include)
|
||||
|
||||
if(WIN32)
|
||||
target_compile_options(plist PRIVATE -W3 -WX- -sdl-)
|
||||
target_compile_definitions(plist PRIVATE -DLIBPLIST_EXPORTS)
|
||||
endif()
|
||||
|
||||
install(
|
||||
TARGETS plist
|
||||
RUNTIME DESTINATION bin
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib
|
||||
)
|
||||
configure_file(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/libplist.pc.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/libplist.pc
|
||||
@ONLY
|
||||
)
|
||||
install(
|
||||
FILES ${CMAKE_CURRENT_BINARY_DIR}/libplist.pc
|
||||
DESTINATION lib/pkgconfig)
|
||||
|
||||
install(FILES ${PLIST_HEADER} DESTINATION include/plist)
|
@ -1,3 +1,3 @@
|
||||
Source: libplist
|
||||
Version: 1.2.77
|
||||
Version: 1.2.137
|
||||
Description: A library to handle Apple Property List format in binary or XML
|
||||
|
@ -1,31 +1,24 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_check_linkage(ONLY_DYNAMIC_CRT ONLY_DYNAMIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO libimobiledevice-win32/libplist
|
||||
REF f279ef534ab5adeb81f063dee5e8a8fc3ca6d3ab
|
||||
SHA512 52001a46935693e3ac5f0b8c3d13d9bf51c5f34189f6f006bd697d7e965f402460060708c4fb54ed43f49a217ac442fcb8dca252fcbccd3e6a154b6c9a8c2104
|
||||
REF f1b85c037693b5749a38473aa6c013ca45a663bf # v1.2.137
|
||||
SHA512 b38d6dc3f4d480d35d847afeab4c90f90edf249fe506c95a30af40acfb7ecbd978334fa5557cf1421716054db748f6d1d540f2405001b9b597cd56cfbfe2c671
|
||||
HEAD_REF msvc-master
|
||||
PATCHES dllexport.patch
|
||||
)
|
||||
|
||||
set(ENV{_CL_} "$ENV{_CL_} /GL-")
|
||||
set(ENV{_LINK_} "$ENV{_LINK_} /LTCG:OFF")
|
||||
configure_file(${CURRENT_PORT_DIR}/CMakeLists.txt ${SOURCE_PATH}/CMakeLists.txt COPYONLY)
|
||||
|
||||
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
set(ENV{_LINK_} "$ENV{_LINK_} /APPCONTAINER")
|
||||
endif()
|
||||
|
||||
vcpkg_install_msbuild(
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PROJECT_SUBPATH libplist.sln
|
||||
INCLUDES_SUBPATH include
|
||||
LICENSE_SUBPATH COPYING.lesser
|
||||
REMOVE_ROOT_INCLUDES
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
endif()
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
|
@ -828,9 +828,6 @@ libpff:x64-linux=fail
|
||||
libpff:x64-osx=fail
|
||||
libpff:x64-uwp=fail
|
||||
libpff:x64-windows-static=fail
|
||||
libplist:arm64-windows=fail
|
||||
libplist:arm-uwp=fail
|
||||
libplist:x64-linux=fail
|
||||
libplist:x64-osx=fail
|
||||
libplist:x64-windows-static=fail
|
||||
libpng-apng:arm64-windows = skip
|
||||
@ -894,7 +891,10 @@ libusb:arm-uwp=fail
|
||||
libusb:x64-linux=fail
|
||||
libusb:x64-osx=fail
|
||||
libusb:x64-uwp=fail
|
||||
libusbmuxd:arm64-windows=fail
|
||||
libusbmuxd:arm-uwp=fail
|
||||
libusbmuxd:x64-uwp=fail
|
||||
libusbmuxd:x64-linux=fail
|
||||
libusb-win32:arm64-windows=fail
|
||||
libusb-win32:arm-uwp=fail
|
||||
libusb-win32:x64-linux=fail
|
||||
|
Loading…
x
Reference in New Issue
Block a user