2022-10-28 10:15:39 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO libsdl-org/SDL_net
|
|
|
|
REF 669e75b84632e2c6cc5c65974ec9e28052cb7a4e # release-2.2.0
|
|
|
|
SHA512 180c757d704c72dc7fcc392c13942214c87b90de22e32045ec9eb6cde5da2b762516e14120d8bee52f7f4a59ad8e30d4f71e313918432ae07ef71df8e9380e4b
|
|
|
|
HEAD_REF main
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2017-04-07 00:00:39 +08:00
|
|
|
|
2022-10-28 10:15:39 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DSDL2NET_SAMPLES=OFF
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2017-04-07 00:00:39 +08:00
|
|
|
|
2022-10-28 10:15:39 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-04-07 00:00:39 +08:00
|
|
|
|
2022-10-28 10:15:39 +08:00
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/cmake")
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME SDL2_net CONFIG_PATH cmake)
|
|
|
|
else()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME SDL2_net CONFIG_PATH lib/cmake/SDL2_net)
|
|
|
|
endif()
|
2017-04-07 00:00:39 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-10-28 10:15:39 +08:00
|
|
|
file(REMOVE_RECURSE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
2022-12-03 01:09:40 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/lib/pkgconfig"
|
2022-10-28 10:15:39 +08:00
|
|
|
)
|
2019-03-27 00:57:16 +08:00
|
|
|
|
2022-10-28 10:15:39 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|