diff options
author | Patric Stout <truebrain@openttd.org> | 2019-03-10 16:57:42 +0100 |
---|---|---|
committer | Patric Stout <truebrain@openttd.org> | 2019-03-11 10:16:00 +0100 |
commit | 6a897a2a9bd02df0533e9dbc0083a90c41ba816f (patch) | |
tree | 01e74628890346c20f2f268e93f3ba04a5187cca /projects/generate | |
parent | aea1726f45735a6768884a3f49f8f5ffcf2337e2 (diff) | |
download | openttd-6a897a2a9bd02df0533e9dbc0083a90c41ba816f.tar.xz |
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.
Diffstat (limited to 'projects/generate')
-rwxr-xr-x | projects/generate | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/projects/generate b/projects/generate index 4524c545e..2ab89e8f1 100755 --- a/projects/generate +++ b/projects/generate @@ -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; |