summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 13 insertions, 1 deletions
diff --git a/configure b/configure
index 96bc5ab559..d92ce33e6d 100755
--- a/configure
+++ b/configure
@@ -1720,6 +1720,7 @@ HAVE_LIST="
sdl
section_data_rel_ro
threads
+ uwp
vaapi_drm
vaapi_x11
vdpau_x11
@@ -4894,7 +4895,18 @@ fi
# d3d11va requires linking directly to dxgi and d3d11 if not building for
# the desktop api partition
-enabled LoadLibrary || d3d11va_extralibs="-ldxgi -ld3d11"
+check_cpp <<EOF && enable uwp && d3d11va_extralibs="-ldxgi -ld3d11"
+#ifdef WINAPI_FAMILY
+#include <winapifamily.h>
+#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
+#error desktop, not uwp
+#else
+// WINAPI_FAMILY_APP, WINAPI_FAMILY_PHONE_APP => UWP
+#endif
+#else
+#error no family set
+#endif
+EOF
enabled vaapi && require vaapi va/va.h vaInitialize -lva