mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 02:31: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>
46 lines
1.4 KiB
CMake
46 lines
1.4 KiB
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO cpp-io2d/P0267_RefImpl
|
|
REF caa0ba0cb5a421a38bc26afaf3505bee206c44dd # accessed on 2020-09-14
|
|
SHA512 f8e5a708f6cbda913a0492a843e1502b8d3cc615a6abda50e850be944e1484ec9087b787c54cc25d513172a7d5ab789be41a761c97df94266df4d1bcf14db17c
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-linux-build.patch
|
|
Fix-FindCairo.patch
|
|
fix-expat.patch
|
|
)
|
|
|
|
if (VCPKG_TARGET_IS_OSX)
|
|
set(IO2D_DEFAULT_OPTION "-DIO2D_DEFAULT=COREGRAPHICS_MAC")
|
|
endif()
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DIO2D_WITHOUT_SAMPLES=1
|
|
-DIO2D_WITHOUT_TESTS=1
|
|
-DCMAKE_INSTALL_INCLUDEDIR:STRING=include
|
|
${IO2D_DEFAULT_OPTION}
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/io2d)
|
|
|
|
if (NOT VCPKG_TARGET_IS_OSX)
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/io2d/io2dConfig.cmake ${CURRENT_PACKAGES_DIR}/share/io2d/io2dTargets.cmake)
|
|
file(WRITE ${CURRENT_PACKAGES_DIR}/share/io2d/io2dConfig.cmake "
|
|
include(CMakeFindDependencyMacro)
|
|
find_dependency(unofficial-cairo CONFIG)
|
|
find_dependency(unofficial-graphicsmagick CONFIG)
|
|
|
|
include(\${CMAKE_CURRENT_LIST_DIR}/io2dTargets.cmake)
|
|
")
|
|
endif()
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |