mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 23:01:38 +08:00
47fe2f493b
* [glibmm] Update to 2.78.1 (microsoft/vcpkg#36681) * [glibmm] regenerate versions (microsoft/vcpkg#36681)
36 lines
1.3 KiB
CMake
36 lines
1.3 KiB
CMake
# Glib uses winapi functions not available in WindowsStore
|
|
string(REGEX MATCH "^([0-9]*[.][0-9]*)" GLIBMM_MAJOR_MINOR "${VERSION}")
|
|
vcpkg_download_distfile(GLIBMM_ARCHIVE
|
|
URLS "https://ftp.gnome.org/pub/GNOME/sources/glibmm/${GLIBMM_MAJOR_MINOR}/glibmm-${VERSION}.tar.xz"
|
|
FILENAME "glibmm-${VERSION}.tar.xz"
|
|
SHA512 5ace15c492be553e2c6abd8d0699197239261feaa2b45ff77181f59bb98b584dc822bdd46dbdee35691cc5a955a3b88e03f58532459236fd780823354c35d0a6
|
|
)
|
|
|
|
vcpkg_extract_source_archive(
|
|
SOURCE_PATH
|
|
ARCHIVE "${GLIBMM_ARCHIVE}"
|
|
)
|
|
|
|
vcpkg_configure_meson(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-Dbuild-examples=false
|
|
-Dmsvc14x-parallel-installable=false
|
|
)
|
|
|
|
vcpkg_install_meson()
|
|
vcpkg_copy_pdbs()
|
|
|
|
# intentionally 2.68 - glib does not install glibmm-2.7x files
|
|
file(REMOVE_RECURSE
|
|
"${CURRENT_PACKAGES_DIR}/debug/lib/glibmm-2.68/proc"
|
|
"${CURRENT_PACKAGES_DIR}/lib/glibmm-2.68/proc"
|
|
)
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
# Handle copyright and readmes
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
file(INSTALL "${SOURCE_PATH}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME readme.txt)
|
|
file(INSTALL "${SOURCE_PATH}/README.win32.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|