early-access version 2853

This commit is contained in:
pineappleEA
2022-07-23 03:01:36 +02:00
parent 1f2b5081b5
commit 1f111bb69c
8955 changed files with 418777 additions and 999 deletions

View File

@@ -0,0 +1,25 @@
get_filename_component(_dstorage_root "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_dstorage_root "${_dstorage_root}" PATH)
get_filename_component(_dstorage_root "${_dstorage_root}" PATH)
set(_dstorage_root_lib "${_dstorage_root}/lib/dstorage.lib")
if (EXISTS "${_dstorage_root_lib}")
add_library(Microsoft::DirectStorage SHARED IMPORTED)
set_target_properties(Microsoft::DirectStorage PROPERTIES
IMPORTED_LOCATION "${_dstorage_root}/bin/dstorage.dll"
IMPORTED_IMPLIB "${_dstorage_root_lib}"
INTERFACE_INCLUDE_DIRECTORIES "${_dstorage_root}/include"
IMPORTED_LINK_INTERFACE_LANGUAGES "C")
set(dstorage_FOUND TRUE)
else()
set(dstorage_FOUND FALSE)
endif()
unset(_dstorage_root_lib)
unset(_dstorage_root)

28
externals/vcpkg/ports/dstorage/portfile.cmake vendored Executable file
View File

@@ -0,0 +1,28 @@
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
vcpkg_download_distfile(ARCHIVE
URLS "https://www.nuget.org/api/v2/package/Microsoft.Direct3D.DirectStorage/1.0.2"
FILENAME "directstorage.1.0.2.zip"
SHA512 42a8d21a1be9981d5fcaaa2aa90d1e4bfe20969ee7959803f6acb76b0846d91d49ad89cebac069463729d013532508c6fbe41af3a1e99187ac13e849d747dd7e
)
vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH PACKAGE_PATH
ARCHIVE ${ARCHIVE}
NO_REMOVE_ONE_LEVEL
)
file(INSTALL "${PACKAGE_PATH}/native/include/dstorage.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
file(INSTALL "${PACKAGE_PATH}/native/include/dstorageerr.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
file(INSTALL "${PACKAGE_PATH}/native/lib/${VCPKG_TARGET_ARCHITECTURE}/dstorage.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
file(COPY "${PACKAGE_PATH}/native/bin/${VCPKG_TARGET_ARCHITECTURE}/dstorage.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
file(COPY "${PACKAGE_PATH}/native/bin/${VCPKG_TARGET_ARCHITECTURE}/dstoragecore.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug")
file(COPY "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug")
file(INSTALL "${PACKAGE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
configure_file("${CMAKE_CURRENT_LIST_DIR}/dstorage-config.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake" COPYONLY)

9
externals/vcpkg/ports/dstorage/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,9 @@
{
"name": "dstorage",
"version": "1.0.2",
"description": "DirectStorage for Windows",
"homepage": "https://aka.ms/directstorage/",
"documentation": "https://github.com/microsoft/DirectStorage",
"license": null,
"supports": "windows & !uwp & !staticcrt"
}