diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2016-11-13 13:01:48 +0300 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2016-11-13 13:01:48 +0300 |
commit | d9cc484a3eff60e8f5b9fef65682aefe77a69feb (patch) | |
tree | 27df28997801af69258b99cb19b5eefbab3d3603 | |
parent | 012cde52d5e5579e8af24634682990604262a54b (diff) |
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.
-rw-r--r-- | overlay/overlay-shared.pro | 6 |
1 files changed, 5 insertions, 1 deletions
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 } |