mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 20:29:02 +08:00
7ac7a46343
* [sdl2-gfx] Update CMake build and find_package support * Update build process to more closely mimic other SDL2 extensions * Bump CONTROL version number * Remove uneeded wrapper file * Remove uneeded wrapper file * [sdl2-gfx] Simplification. Add cmake find_dependency(SDL2). Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
32 lines
934 B
CMake
32 lines
934 B
CMake
include(vcpkg_common_functions)
|
|
|
|
set(VERSION 1.0.4)
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "http://www.ferzkopp.net/Software/SDL2_gfx/SDL2_gfx-${VERSION}.zip"
|
|
FILENAME "SDL2_gfx-${VERSION}.zip"
|
|
SHA512 213b481469ba2161bd8558a7a5427b129420193b1c3895923d515f69f87991ed2c99bbc44349c60b4bcbb7d7d2255c1f15ee8a3523c26502070cfaacccaa5242
|
|
)
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
ARCHIVE ${ARCHIVE}
|
|
REF ${VERSION}
|
|
)
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS_DEBUG -DSDL_GFX_SKIP_HEADERS=1
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_fixup_cmake_targets()
|
|
|
|
# Handle copyright
|
|
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/sdl2-gfx)
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/sdl2-gfx/COPYING ${CURRENT_PACKAGES_DIR}/share/sdl2-gfx/copyright)
|
|
|
|
vcpkg_copy_pdbs() |