From d9cc484a3eff60e8f5b9fef65682aefe77a69feb Mon Sep 17 00:00:00 2001 From: Mikkel Krautz Date: Sun, 13 Nov 2016 11:01:48 +0100 Subject: overlay: fall back to fxc.exe on PATH if DXSDK is not set. This allows the overlay to build with the Windows SDK version of fxc.exe. This removes the need for people developing locally to install the legacy DirectX SDK. --- overlay/overlay-shared.pro | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'overlay') diff --git a/overlay/overlay-shared.pro b/overlay/overlay-shared.pro index 214b9804f..8de618d3c 100644 --- a/overlay/overlay-shared.pro +++ b/overlay/overlay-shared.pro @@ -50,7 +50,11 @@ CONFIG(debug, debug|release) { # Override fxc binary for the x86 build. CONFIG(force-x86-toolchain) { - FXC = "\"$$(DXSDK_DIR)\\Utilities\\bin\\x86\\fxc.exe\"" + exists($$DXSDK_DIR) { + FXC = "\"$$(DXSDK_DIR)\\Utilities\\bin\\x86\\fxc.exe\"" + } else { + FXC = fxc.exe + } } else { FXC = fxc.exe } -- cgit v1.2.3