mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 11:41:36 +08:00
added mpir 2.7.2 support.
This commit is contained in:
parent
fd7969d325
commit
167b8f2ded
3
ports/mpir/CONTROL
Normal file
3
ports/mpir/CONTROL
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Source: mpir
|
||||||
|
Version: 2.7.2
|
||||||
|
Description: Multiple Precision Integers and Rationals.
|
48
ports/mpir/portfile.cmake
Normal file
48
ports/mpir/portfile.cmake
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
include(vcpkg_common_functions)
|
||||||
|
vcpkg_download_distfile(ARCHIVE_FILE
|
||||||
|
URL "http://mpir.org/mpir-2.7.2.tar.lz"
|
||||||
|
FILENAME "mpir-2.7.2.tar.lz"
|
||||||
|
MD5 2d47419dac50cc4a89c8c23421e66db1
|
||||||
|
)
|
||||||
|
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
||||||
|
|
||||||
|
vcpkg_build_msbuild(
|
||||||
|
PROJECT_PATH ${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/build.vc14/dll_mpir_gc/dll_mpir_gc.vcxproj
|
||||||
|
)
|
||||||
|
|
||||||
|
IF (TRIPLET_SYSTEM_ARCH MATCHES "x86")
|
||||||
|
SET(BUILD_ARCH "Win32")
|
||||||
|
ELSE()
|
||||||
|
SET(BUILD_ARCH ${TRIPLET_SYSTEM_ARCH})
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
file(INSTALL
|
||||||
|
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Debug/gmp.h
|
||||||
|
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Debug/gmpxx.h
|
||||||
|
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Debug/mpir.h
|
||||||
|
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Debug/mpirxx.h
|
||||||
|
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
||||||
|
)
|
||||||
|
file(INSTALL
|
||||||
|
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Debug/mpir.dll
|
||||||
|
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Debug/mpir.pdb
|
||||||
|
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin
|
||||||
|
)
|
||||||
|
file(INSTALL
|
||||||
|
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Release/mpir.dll
|
||||||
|
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Release/mpir.pdb
|
||||||
|
DESTINATION ${CURRENT_PACKAGES_DIR}/bin
|
||||||
|
)
|
||||||
|
file(INSTALL
|
||||||
|
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Debug/mpir.lib
|
||||||
|
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
|
||||||
|
)
|
||||||
|
file(INSTALL
|
||||||
|
${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/dll/${BUILD_ARCH}/Release/mpir.lib
|
||||||
|
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
|
||||||
|
)
|
||||||
|
|
||||||
|
file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/mpir RENAME copyright)
|
||||||
|
|
||||||
|
vcpkg_copy_pdbs()
|
||||||
|
message(STATUS "Installing done")
|
Loading…
x
Reference in New Issue
Block a user