aboutsummaryrefslogtreecommitdiff
path: root/ports/directxsdk
diff options
context:
space:
mode:
Diffstat (limited to 'ports/directxsdk')
-rw-r--r--ports/directxsdk/portfile.cmake4
-rw-r--r--ports/directxsdk/vcpkg.json2
2 files changed, 5 insertions, 1 deletions
diff --git a/ports/directxsdk/portfile.cmake b/ports/directxsdk/portfile.cmake
index f684800f4..67551cffa 100644
--- a/ports/directxsdk/portfile.cmake
+++ b/ports/directxsdk/portfile.cmake
@@ -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
diff --git a/ports/directxsdk/vcpkg.json b/ports/directxsdk/vcpkg.json
index b43961e7c..0d093e5bb 100644
--- a/ports/directxsdk/vcpkg.json
+++ b/ports/directxsdk/vcpkg.json
@@ -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",