2022-09-09 02:30:05 +08:00
|
|
|
set(SOURCE_VERSION 1.3.1)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO dlfcn-win32/dlfcn-win32
|
|
|
|
REF v${SOURCE_VERSION}
|
2022-09-09 02:30:05 +08:00
|
|
|
SHA512 0aa01c49ee8628c42cdc8b9782b4741a36502764d4442227ea4e9a8062356ff17e8eaa3cdd4113009ad7ad2044b6cfd24128319d71825e13062259dd1906e27e
|
2019-10-08 01:35:13 +08:00
|
|
|
HEAD_REF master
|
2017-03-20 01:06:05 +08:00
|
|
|
)
|
|
|
|
|
2022-01-29 03:18:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-03-20 01:06:05 +08:00
|
|
|
)
|
|
|
|
|
2022-01-29 03:18:29 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-03-20 01:06:05 +08:00
|
|
|
|
2022-01-29 03:18:29 +08:00
|
|
|
file(READ "${CURRENT_PACKAGES_DIR}/debug/share/dlfcn-win32/dlfcn-win32-targets-debug.cmake" dlfcn-win32_DEBUG_MODULE)
|
2017-03-20 01:06:05 +08:00
|
|
|
string(REPLACE "\${_IMPORT_PREFIX}" "\${_IMPORT_PREFIX}/debug" dlfcn-win32_DEBUG_MODULE "${dlfcn-win32_DEBUG_MODULE}")
|
2022-01-29 03:18:29 +08:00
|
|
|
file(WRITE "${CURRENT_PACKAGES_DIR}/share/dlfcn-win32/dlfcn-win32-targets-debug.cmake" "${dlfcn-win32_DEBUG_MODULE}")
|
2017-03-20 01:06:05 +08:00
|
|
|
|
2022-01-29 03:18:29 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-03-20 01:06:05 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-01-29 03:18:29 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
|
2020-02-04 06:22:52 +08:00
|
|
|
|
|
|
|
set(VCPKG_POLICY_ALLOW_RESTRICTED_HEADERS enabled)
|