mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[dxsdk-d3dx/directxsdk] Add message to handle the conflicts between these two ports (#20286)
* [dxsdk-d3dx] Modify the destination path * [dxsdk-d3dx/directxsdk] Add message to handle the conflicts between these two ports Co-authored-by: Cheney-Wang <v-xincwa@microsoft.com>
This commit is contained in:
parent
69521af149
commit
c6595d708f
@ -1,5 +1,9 @@
|
||||
vcpkg_fail_port_install(ON_TARGET "LINUX" "OSX" "UWP" "ANDROID" ON_ARCH "arm")
|
||||
|
||||
if(EXISTS "${CURRENT_INSTALLED_DIR}/share/dxsdk-d3dx/copyright")
|
||||
message(FATAL_ERROR "Can't build ${PORT} if dxsdk-d3dx is installed. Please remove dxsdk-d3dx, and try to install ${PORT} again if you need it.")
|
||||
endif()
|
||||
|
||||
message(WARNING "Build ${PORT} is deprecated, untested in CI, and requires the use of the DirectSetup legacy REDIST solution. See https://aka.ms/dxsdk for more information.")
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "directxsdk",
|
||||
"version-string": "jun10",
|
||||
"port-version": 3,
|
||||
"port-version": 4,
|
||||
"description": "Legacy DirectX SDK",
|
||||
"homepage": "https://docs.microsoft.com/en-us/windows/win32/directx-sdk--august-2009-",
|
||||
"supports": "windows & !uwp & !arm",
|
||||
|
@ -1,7 +1,7 @@
|
||||
vcpkg_fail_port_install(ON_ARCH "arm" "arm64" ON_TARGET "UWP")
|
||||
vcpkg_fail_port_install(ON_TARGET "LINUX" "OSX" "UWP" "ANDROID" ON_ARCH "arm")
|
||||
|
||||
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
||||
message(FATAL_ERROR "${PORT} only supports Windows.")
|
||||
if(EXISTS "${CURRENT_INSTALLED_DIR}/share/directxsdk/copyright")
|
||||
message(FATAL_ERROR "Can't build ${PORT} if directxsdk is installed. Please remove directxsdk, and try to install ${PORT} again if you need it.")
|
||||
endif()
|
||||
|
||||
message(WARNING "Use of ${PORT} is not recommended for new projects. See https://aka.ms/dxsdk for more information.")
|
||||
@ -22,23 +22,19 @@ vcpkg_extract_source_archive_ex(
|
||||
NO_REMOVE_ONE_LEVEL
|
||||
)
|
||||
|
||||
file(GLOB HEADER_FILES ${PACKAGE_PATH}/build/native/include/*.h ${PACKAGE_PATH}/build/native/include/*.inl)
|
||||
file(INSTALL ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
|
||||
file(GLOB HEADER_FILES "${PACKAGE_PATH}/build/native/include/*.h" "${PACKAGE_PATH}/build/native/include/*.inl")
|
||||
file(INSTALL ${HEADER_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
|
||||
|
||||
file(COPY ${PACKAGE_PATH}/build/native/release/lib/${VCPKG_TARGET_ARCHITECTURE}/d3dx9.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib/)
|
||||
file(COPY ${PACKAGE_PATH}/build/native/release/lib/${VCPKG_TARGET_ARCHITECTURE}/d3dx10.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib/)
|
||||
file(COPY ${PACKAGE_PATH}/build/native/release/lib/${VCPKG_TARGET_ARCHITECTURE}/d3dx11.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib/)
|
||||
file(COPY ${PACKAGE_PATH}/build/native/debug/lib/${VCPKG_TARGET_ARCHITECTURE}/d3dx9d.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib/)
|
||||
file(COPY ${PACKAGE_PATH}/build/native/debug/lib/${VCPKG_TARGET_ARCHITECTURE}/d3dx10d.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib/)
|
||||
file(COPY ${PACKAGE_PATH}/build/native/debug/lib/${VCPKG_TARGET_ARCHITECTURE}/d3dx11d.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib/)
|
||||
file(GLOB RELEASE_LIB_FILES "${PACKAGE_PATH}/build/native/release/lib/${VCPKG_TARGET_ARCHITECTURE}/*.lib")
|
||||
file(INSTALL ${RELEASE_LIB_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/lib/")
|
||||
|
||||
file(COPY ${PACKAGE_PATH}/build/native/release/bin/${VCPKG_TARGET_ARCHITECTURE}/D3DCompiler_43.dll DESTINATION ${CURRENT_PACKAGES_DIR}/bin/)
|
||||
file(COPY ${PACKAGE_PATH}/build/native/release/bin/${VCPKG_TARGET_ARCHITECTURE}/D3DX9_43.dll DESTINATION ${CURRENT_PACKAGES_DIR}/bin/)
|
||||
file(COPY ${PACKAGE_PATH}/build/native/release/bin/${VCPKG_TARGET_ARCHITECTURE}/d3dx10_43.dll DESTINATION ${CURRENT_PACKAGES_DIR}/bin/)
|
||||
file(COPY ${PACKAGE_PATH}/build/native/release/bin/${VCPKG_TARGET_ARCHITECTURE}/d3dx11_43.dll DESTINATION ${CURRENT_PACKAGES_DIR}/bin/)
|
||||
file(COPY ${PACKAGE_PATH}/build/native/debug/bin/${VCPKG_TARGET_ARCHITECTURE}/D3DCompiler_43.dll DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin/)
|
||||
file(COPY ${PACKAGE_PATH}/build/native/debug/bin/${VCPKG_TARGET_ARCHITECTURE}/D3DX9d_43.dll DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin/)
|
||||
file(COPY ${PACKAGE_PATH}/build/native/debug/bin/${VCPKG_TARGET_ARCHITECTURE}/D3DX10d_43.dll DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin/)
|
||||
file(COPY ${PACKAGE_PATH}/build/native/debug/bin/${VCPKG_TARGET_ARCHITECTURE}/D3DX11d_43.dll DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin/)
|
||||
file(GLOB DEBUG_LIB_FILES "${PACKAGE_PATH}/build/native/debug/lib/${VCPKG_TARGET_ARCHITECTURE}/*.lib")
|
||||
file(INSTALL ${DEBUG_LIB_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib/")
|
||||
|
||||
file(INSTALL ${PACKAGE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
file(GLOB RELEASE_DLL_FILES "${PACKAGE_PATH}/build/native/release/bin/${VCPKG_TARGET_ARCHITECTURE}/*.dll")
|
||||
file(INSTALL ${RELEASE_DLL_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/bin/")
|
||||
|
||||
file(GLOB DEBUG_DLL_FILES "${PACKAGE_PATH}/build/native/debug/bin/${VCPKG_TARGET_ARCHITECTURE}/*.dll")
|
||||
file(INSTALL ${DEBUG_DLL_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin/")
|
||||
|
||||
file(INSTALL "${PACKAGE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "dxsdk-d3dx",
|
||||
"version": "9.29.952.8",
|
||||
"port-version": 1,
|
||||
"description": "Redistributable package for the legacy DirectX SDK's D3DX9, D3DX10, and/or D3DX11 utility libraries.",
|
||||
"homepage": "https://walbourn.github.io/legacy-d3dx-on-nuget/",
|
||||
"supports": "windows & !arm & !uwp & !static"
|
||||
|
@ -1782,7 +1782,7 @@
|
||||
},
|
||||
"directxsdk": {
|
||||
"baseline": "jun10",
|
||||
"port-version": 3
|
||||
"port-version": 4
|
||||
},
|
||||
"directxtex": {
|
||||
"baseline": "aug2021",
|
||||
@ -1882,7 +1882,7 @@
|
||||
},
|
||||
"dxsdk-d3dx": {
|
||||
"baseline": "9.29.952.8",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"dxut": {
|
||||
"baseline": "11.26",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "440a5b43febdcc709d9ae1d768371c0b184ca92e",
|
||||
"version-string": "jun10",
|
||||
"port-version": 4
|
||||
},
|
||||
{
|
||||
"git-tree": "49dc911dc7c69f6e0eee0279afcf53187d547ae5",
|
||||
"version-string": "jun10",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "81aeb21cd027336b00f758ece5371f0c4930be2e",
|
||||
"version": "9.29.952.8",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "38ff04dcf269c835a7f5c03d50a1a457350bde49",
|
||||
"version": "9.29.952.8",
|
||||
|
Loading…
x
Reference in New Issue
Block a user