2017-12-27 00:46:05 +08:00
|
|
|
include(vcpkg_common_functions)
|
2019-09-06 01:43:09 +08:00
|
|
|
|
2019-10-08 01:35:13 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO jkuhlmann/gainput
|
|
|
|
REF v1.0.0
|
|
|
|
SHA512 56fdc4c0613d7260861885b270ebe9e624e940175f41e3ac82516e2eb0d6d229e405fbcc2e54608e7d6751c1d8658b5b5e186153193badc6487274cb284a8cd6
|
|
|
|
HEAD_REF master
|
2017-12-27 00:46:05 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-10-08 01:35:13 +08:00
|
|
|
PREFER_NINJA
|
2019-09-06 01:43:09 +08:00
|
|
|
OPTIONS
|
|
|
|
-DGAINPUT_TESTS=OFF
|
|
|
|
-DGAINPUT_SAMPLES=OFF
|
2017-12-27 00:46:05 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
2019-09-06 01:43:09 +08:00
|
|
|
|
2017-12-27 00:46:05 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
|
|
if(EXISTS ${CURRENT_PACKAGES_DIR}/lib/gainputstatic.lib)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/gainputstatic.lib ${CURRENT_PACKAGES_DIR}/lib/gainput.lib)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/gainputstaticd.lib ${CURRENT_PACKAGES_DIR}/debug/lib/gainputd.lib)
|
|
|
|
endif()
|
|
|
|
endif()
|
2019-09-06 01:43:09 +08:00
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|