2019-04-11 15:35:22 +08:00
|
|
|
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_bitbucket(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mrexodia/devicenameresolver
|
|
|
|
REF 0850d88fa6a759d79b3c859933870d9aa602aa79
|
|
|
|
SHA512 9161411d3c8c17f49f5ff9482a007a6608872c948ef856aa7076a45c246e8d777e4cd6b54169d9c1b9e99e7b383436e1a084e168fafff1ca5f2b28260bac1452
|
|
|
|
HEAD_REF master
|
2019-04-26 03:41:33 +08:00
|
|
|
PATCHES add-string-headfile.patch
|
2019-04-11 15:35:22 +08:00
|
|
|
)
|
|
|
|
|
2022-01-29 03:18:29 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2019-04-11 15:35:22 +08:00
|
|
|
|
2022-01-29 03:18:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-04-11 15:35:22 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DDISABLE_INSTALL_HEADERS=ON
|
|
|
|
)
|
|
|
|
|
2022-01-29 03:18:29 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-04-11 15:35:22 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-01-29 03:18:29 +08:00
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/DeviceNameResolver.h" "__declspec(dllexport)" "")
|
2019-04-11 15:35:22 +08:00
|
|
|
|
2022-01-29 03:18:29 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/readme.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/devicenameresolver" RENAME copyright)
|