aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/networkdirect-sdk/CONTROL3
-rw-r--r--ports/networkdirect-sdk/portfile.cmake10
-rw-r--r--scripts/ci.baseline.txt6
3 files changed, 4 insertions, 15 deletions
diff --git a/ports/networkdirect-sdk/CONTROL b/ports/networkdirect-sdk/CONTROL
index 158183800..4863ffae1 100644
--- a/ports/networkdirect-sdk/CONTROL
+++ b/ports/networkdirect-sdk/CONTROL
@@ -1,5 +1,6 @@
Source: networkdirect-sdk
Version: 2.0.1
+Port-Version: 1
Description: The Network Direct architecture allows hardware vendors to expose the advanced capabilities of their networking devices.
Homepage: https://www.nuget.org/packages/NetworkDirect
-Supports: windows&(x64|x86) \ No newline at end of file
+Supports: windows & (x64|x86) & !uwp \ No newline at end of file
diff --git a/ports/networkdirect-sdk/portfile.cmake b/ports/networkdirect-sdk/portfile.cmake
index 666a31be4..2b97eb8a1 100644
--- a/ports/networkdirect-sdk/portfile.cmake
+++ b/ports/networkdirect-sdk/portfile.cmake
@@ -1,11 +1,5 @@
#only supports windows
-if (VCPKG_CMAKE_SYSTEM_NAME)
- message(FATAL_ERROR "networkDirect-sdk only supports windows")
-endif()
-
-if(NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "x64" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
- message(FATAL_ERROR "networkDirect-sdk only supports x64 and x86")
-endif()
+vcpkg_fail_port_install(ON_ARCH "arm" ON_TARGET "uwp" "linux" "osx")
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
@@ -37,4 +31,4 @@ elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
file(COPY ${SOURCE_PATH}/lib/Win32/ndutil.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib/)
endif()
-file(COPY ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/networkdirect-sdk/COPYRIGHT)
+file(INSTALL ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt
index 20c48681e..af82e2252 100644
--- a/scripts/ci.baseline.txt
+++ b/scripts/ci.baseline.txt
@@ -981,12 +981,6 @@ nethost:x64-uwp=fail
nethost:arm-uwp=fail
nettle:x64-windows-static=skip
nettle:x64-windows=skip
-networkdirect-sdk:arm64-windows=fail
-networkdirect-sdk:arm-uwp=fail
-networkdirect-sdk:x64-linux=fail
-networkdirect-sdk:x64-osx=fail
-networkdirect-sdk:x64-uwp=fail
-networkdirect-sdk:x86-windows=fail
ngspice:x64-windows-static=fail
nng:arm-uwp=fail
nng:x64-uwp=fail