mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-22 23:37:49 +08:00
5898891125
* [openexr,openimageio,suitesparse,theia] updates for non-win32 * [theia] use only valid cmake symbols * [suitesparse] Fix build * [lapack] still not properly integrating with other ports * [lapack] intercept cmake module calls and substitute them with our defs * [suitesparse,clapack] fixes for proper integration * [ceres,clapack] bump CONTROL * [suitesparse] remove unnecessary defs * [clapack] improve wrapper logic * [WIN32] remove wrong symbol * [clapack] fix wrapper integration * [Accelerate] use best framework when available * [clapack] separate config from wrapper * [clapack] fix paths and filenames * [mlpack,armadillo,clapack] improve library handling * [mlpack] remove unnecessary cmake option * [clp,coinutils,osi,liblemon] dependencies of openmvg, improve compatibility with non-win32 * [openmvg] fix for case-sensitive filesystems * [clp,coinutils,osi] simplify CMakeLists removing many unnecessary steps * [sophus] Force rebuild * [theia] fixes for linux, part1 * [io2d] remove broken sintax * [fontconfig] bump version to remove CI cached failure * [theia] fixes for linux, part2 * [theia] remove unnecessary empty folders and comments from portfile * [theia] use correct build type removing forced vars in cmakelists.txt * [openmvg] add missing suitesparse target detection * [sophus] fix Suitesparse dependency * [sophus,openmvg] use suitesparse lowercase for module compatibility on case-sensitive filesystems * [suitesparse] fixes for case-sensitive filesystems * [openmvg] use correct Eigen3 name for case-sensitive filesystems * [sophus] trigger rebuild * [shogun] use modern vcpkg style * [shogun] add missing cmake system processor symbol
55 lines
1.8 KiB
CMake
55 lines
1.8 KiB
CMake
|
|
# Allow use of vcpkg functions
|
|
include(vcpkg_common_functions)
|
|
|
|
# For now, io2d is always a static library.
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO cpp-io2d/P0267_RefImpl
|
|
REF 21ae92c8be6916034e6e18f08aa57899a975dfb0
|
|
SHA512 5b674f98ca7705d6901af339a4189d5ce4f2c3118bfb99430734f355159602f177bc8d1b345c3a2f17947a62547553f7b91747a1f16da063707a4da7f990391d
|
|
HEAD_REF master
|
|
PATCHES find-package.patch
|
|
)
|
|
|
|
# Configure the library, using CMake
|
|
if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL Darwin)
|
|
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}
|
|
)
|
|
|
|
# Build + install the library, using CMake
|
|
vcpkg_install_cmake()
|
|
|
|
# Don't have duplicate header files in both include/ and debug/include/ folders
|
|
# (within <vcpkg-root>/installed/io2d_*/, as installed by vcpkg_install_cmake()):
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/io2d)
|
|
|
|
if (NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL Darwin)
|
|
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/io2d RENAME copyright)
|
|
|
|
vcpkg_test_cmake(PACKAGE_NAME io2d)
|