summaryrefslogtreecommitdiff
path: root/source.list
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2019-03-10 16:57:42 +0100
committerPatric Stout <truebrain@openttd.org>2019-03-11 10:16:00 +0100
commit6a897a2a9bd02df0533e9dbc0083a90c41ba816f (patch)
tree01e74628890346c20f2f268e93f3ba04a5187cca /source.list
parentaea1726f45735a6768884a3f49f8f5ffcf2337e2 (diff)
downloadopenttd-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 'source.list')
-rw-r--r--source.list4
1 files changed, 3 insertions, 1 deletions
diff --git a/source.list b/source.list
index 5e9c52b73..b567a0026 100644
--- a/source.list
+++ b/source.list
@@ -1141,7 +1141,9 @@ sound/null_s.cpp
#end
#if WIN32
sound/win32_s.cpp
- sound/xaudio2_s.cpp
+ #if USE_XAUDIO2
+ sound/xaudio2_s.cpp
+ #end
#end
#end