2016-10-27 08:30:41 +08:00
|
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
|
|
message(FATAL_ERROR "Static building not supported yet")
|
|
|
|
endif()
|
2016-09-22 14:05:04 +08:00
|
|
|
include(vcpkg_common_functions)
|
2016-09-29 08:05:56 +08:00
|
|
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/mpir-2.7.2)
|
2016-09-22 14:05:04 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE_FILE
|
2016-09-25 06:23:04 +08:00
|
|
|
URLS "http://mpir.org/mpir-2.7.2.tar.lz"
|
2016-09-22 14:05:04 +08:00
|
|
|
FILENAME "mpir-2.7.2.tar.lz"
|
2016-09-23 04:20:40 +08:00
|
|
|
SHA512 2635c167ddbba99364ec741373768e0675d34f94fad8912d5433b95e6fbfdb0510f5e94a707acc42048254bc658c52c6671bb0c0dac31267c4b82b00c3e74efa
|
2016-09-22 14:05:04 +08:00
|
|
|
)
|
|
|
|
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
|
|
|
|
|
|
|
vcpkg_build_msbuild(
|
2016-09-29 08:05:56 +08:00
|
|
|
PROJECT_PATH ${SOURCE_PATH}/build.vc14/dll_mpir_gc/dll_mpir_gc.vcxproj
|
2016-09-22 14:05:04 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
IF (TRIPLET_SYSTEM_ARCH MATCHES "x86")
|
|
|
|
SET(BUILD_ARCH "Win32")
|
|
|
|
ELSE()
|
|
|
|
SET(BUILD_ARCH ${TRIPLET_SYSTEM_ARCH})
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
file(INSTALL
|
2016-09-29 08:05:56 +08:00
|
|
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Debug/gmp.h
|
|
|
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Debug/gmpxx.h
|
|
|
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Debug/mpir.h
|
|
|
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Debug/mpirxx.h
|
2016-09-22 14:05:04 +08:00
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
|
|
|
)
|
|
|
|
file(INSTALL
|
2016-09-29 08:05:56 +08:00
|
|
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Debug/mpir.dll
|
|
|
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Debug/mpir.pdb
|
2016-09-22 14:05:04 +08:00
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin
|
|
|
|
)
|
|
|
|
file(INSTALL
|
2016-09-29 08:05:56 +08:00
|
|
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Release/mpir.dll
|
|
|
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Release/mpir.pdb
|
2016-09-22 14:05:04 +08:00
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/bin
|
|
|
|
)
|
|
|
|
file(INSTALL
|
2016-09-29 08:05:56 +08:00
|
|
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Debug/mpir.lib
|
2016-09-22 14:05:04 +08:00
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
|
|
|
|
)
|
|
|
|
file(INSTALL
|
2016-09-29 08:05:56 +08:00
|
|
|
${SOURCE_PATH}/dll/${BUILD_ARCH}/Release/mpir.lib
|
2016-09-22 14:05:04 +08:00
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
|
|
|
|
)
|
|
|
|
|
2016-09-29 08:05:56 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/mpir RENAME copyright)
|
2016-09-22 14:05:04 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
message(STATUS "Installing done")
|