1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-20 13:09:15 +00:00

Fix: don't include xaudio2 if you are not going to compile it

This is more in trend with other files, where if the driver is not
selected, we don't even attempt to compile it.
This commit is contained in:
Patric Stout
2019-03-10 16:57:42 +01:00
parent aea1726f45
commit 6a897a2a9b
4 changed files with 6 additions and 1 deletions

View File

@@ -138,6 +138,7 @@ load_main_data() {
if ($0 == "MSVC" && "'$os'" != "MSVC") { next; }
if ($0 == "DIRECTMUSIC" && "'$enable_directmusic'" != "1") { next; }
if ($0 == "FLUIDSYNTH" && "'$enable_fluidsynth'" != "1") { next; }
if ($0 == "USE_XAUDIO2" && "'$with_xaudio2'" == "0") { next; }
if ($0 == "USE_THREADS" && "'$with_threads'" == "0") { next; }
skip += 1;