mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 07:19:08 +08:00
75bd2efe0d
* [many ports] 2019.09.14 Updates * Revert failure ports * Revert failure ports * Revert failure ports * [urdfdom] Fix find dependency console_bridge * Revert failure ports * [devil] Compatible with jasper 2.0.20 * [devil] Refix compatible with jasper functions declaration on different os * Update ports/alembic/CONTROL Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> * Revert failure ports wangle * [azure-kinect-sensor-sdk] Fix build with matroska 1.6.2 * Revert failure ports * Revert failure ports * [urdfdom-headers] Fix include path in config.cmake file * upload patch * [urdfdom-headers] Refix include path in config.cmake file * [qt5-imageformats] Fix missing include math.h * [urdfdom-headers] Refix include path in config.cmake file * [qt5] Fix adding option PATCHES and other options when using qt_submodule_installation * Remove updated ports version * Commit suggestions * [libideviceactivation] revert Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
51 lines
1.4 KiB
CMake
51 lines
1.4 KiB
CMake
include(vcpkg_common_functions)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO akheron/jansson
|
|
REF e9ebfa7e77a6bee77df44e096b100e7131044059 # v2.13.1
|
|
SHA512 88a59c1cf5150699def17c86192ca9bacdfe6669319f770c3fbf14fa8edc48b4bb015a4a634a09db40fba9054320ac7c133c4d156f813af540a636f7825f0610
|
|
HEAD_REF master
|
|
)
|
|
|
|
if(VCPKG_CRT_LINKAGE STREQUAL static)
|
|
set(JANSSON_STATIC_CRT ON)
|
|
else()
|
|
set(JANSSON_STATIC_CRT OFF)
|
|
endif()
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
|
set(JANSSON_BUILD_SHARED_LIBS ON)
|
|
else()
|
|
set(JANSSON_BUILD_SHARED_LIBS OFF)
|
|
endif()
|
|
|
|
# Jansson tries to random-seed its hash table with system-provided entropy.
|
|
# This is not ported to UWP yet.
|
|
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
set(USE_WINDOWS_CRYPTOAPI OFF)
|
|
else()
|
|
set(USE_WINDOWS_CRYPTOAPI ON)
|
|
endif()
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DJANSSON_STATIC_CRT=${JANSSON_STATIC_CRT}
|
|
-DJANSSON_EXAMPLES=OFF
|
|
-DJANSSON_WITHOUT_TESTS=ON
|
|
-DJANSSON_BUILD_SHARED_LIBS=${JANSSON_BUILD_SHARED_LIBS}
|
|
-DUSE_WINDOWS_CRYPTOAPI=${USE_WINDOWS_CRYPTOAPI}
|
|
-DJANSSON_INSTALL_CMAKE_DIR:STRING=share/jansson
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_fixup_cmake_targets()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/jansson RENAME copyright)
|
|
|
|
vcpkg_copy_pdbs()
|