vcpkg/ports/sdl2-net/portfile.cmake

35 lines
1012 B
CMake
Raw Normal View History

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO libsdl-org/SDL_net
REF 669e75b84632e2c6cc5c65974ec9e28052cb7a4e # release-2.2.0
SHA512 180c757d704c72dc7fcc392c13942214c87b90de22e32045ec9eb6cde5da2b762516e14120d8bee52f7f4a59ad8e30d4f71e313918432ae07ef71df8e9380e4b
HEAD_REF main
2023-10-10 06:07:23 +08:00
PATCHES
fix-uwp.patch
)
2017-04-07 00:00:39 +08:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DSDL2NET_SAMPLES=OFF
)
2017-04-07 00:00:39 +08:00
vcpkg_cmake_install()
2017-04-07 00:00: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()
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"
)
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")