2020-06-12 12:39:39 +08:00
|
|
|
set(LIBUUID_VERSION 1.0.3)
|
2018-03-26 01:49:35 +08:00
|
|
|
|
2020-06-27 06:06:30 +08:00
|
|
|
vcpkg_from_sourceforge(
|
2019-10-08 01:35:13 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-06-27 06:06:30 +08:00
|
|
|
REPO libuuid
|
|
|
|
FILENAME "libuuid-${LIBUUID_VERSION}.tar.gz"
|
|
|
|
SHA512 77488caccc66503f6f2ded7bdfc4d3bc2c20b24a8dc95b2051633c695e99ec27876ffbafe38269b939826e1fdb06eea328f07b796c9e0aaca12331a787175507
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2018-03-26 01:49:35 +08:00
|
|
|
|
|
|
|
file(COPY
|
2023-03-08 06:14:52 +08:00
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt"
|
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/config.linux.h"
|
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/unofficial-libuuid-config.cmake.in"
|
|
|
|
DESTINATION "${SOURCE_PATH}"
|
2018-03-26 01:49:35 +08:00
|
|
|
)
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-03-26 01:49:35 +08:00
|
|
|
)
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-03-26 01:49:35 +08:00
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
set(prefix "${CURRENT_INSTALLED_DIR}")
|
2020-06-12 12:39:39 +08:00
|
|
|
set(exec_prefix \$\{prefix\})
|
|
|
|
set(libdir \$\{exec_prefix\}/lib)
|
|
|
|
set(includedir \$\{prefix\}/include)
|
2023-03-08 06:14:52 +08:00
|
|
|
configure_file("${SOURCE_PATH}/uuid.pc.in" "${SOURCE_PATH}/uuid.pc" @ONLY)
|
2021-12-14 04:23:30 +08:00
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
2023-03-08 06:14:52 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/uuid.pc" DESTINATION "${CURRENT_PACKAGES_DIR}/lib/pkgconfig")
|
2021-12-14 04:23:30 +08:00
|
|
|
endif()
|
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
2023-03-08 06:14:52 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/uuid.pc" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
|
2021-12-14 04:23:30 +08:00
|
|
|
endif()
|
2021-07-23 12:44:41 +08:00
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/unofficial-libuuid PACKAGE_NAME unofficial-libuuid)
|
2020-06-12 12:39:39 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2023-07-12 03:35:06 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
2018-03-26 01:49:35 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|