mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 15:29:06 +08:00
33 lines
1.2 KiB
CMake
33 lines
1.2 KiB
CMake
|
|
include(vcpkg_common_functions)
|
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/glib-2.50.2)
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "https://ftp.gnome.org/pub/gnome/sources/glib/2.50/glib-2.50.2.tar.xz"
|
|
FILENAME "glib-2.50.2.tar.xz"
|
|
SHA512 63d7b5ece8d7d15b10e06ef10a8e0a4446f30a8d9c97daa3352ec00dfef622728bd42ed24cbf67e553166a0f9e29a3e3d024d1d085b9804fd67608db438b6771)
|
|
|
|
vcpkg_extract_source_archive(${ARCHIVE})
|
|
vcpkg_apply_patches(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PATCHES
|
|
${CMAKE_CURRENT_LIST_DIR}/use-libiconv-on-windows.patch)
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/cmake DESTINATION ${SOURCE_PATH})
|
|
file(REMOVE_RECURSE ${SOURCE_PATH}/glib/pcre)
|
|
file(REMOVE ${SOURCE_PATH}/glib/win_iconv.c)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS_DEBUG
|
|
-DGLIB_SKIP_HEADERS=ON
|
|
-DGLIB_SKIP_TOOLS=ON)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_copy_tool_dependencies()
|
|
|
|
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/glib)
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/glib/COPYING ${CURRENT_PACKAGES_DIR}/share/glib/copyright)
|
|
|