add a mixbus compile define
authorRobin Gareus <robin@gareus.org>
Thu, 10 Dec 2015 11:36:03 +0000 (12:36 +0100)
committerRobin Gareus <robin@gareus.org>
Thu, 10 Dec 2015 11:36:03 +0000 (12:36 +0100)
allow to minimize branch changes downstream and work closer with upstream.
(so far upstream #ifdef MIXBUS were hardcoded to #if 1 downstream)

wscript

diff --git a/wscript b/wscript
index a5be9ae2159d84254d7971152979c6db19209494..397ae48c5898a2232d4b0957b243aa8500adaba6 100644 (file)
--- a/wscript
+++ b/wscript
@@ -592,6 +592,10 @@ int main() { return 0; }''',
     if opt.nls:
         compiler_flags.append('-DENABLE_NLS')
 
+    # use sparingly, prefer runtime profile
+    if Options.options.program_name.lower() == "mixbus":
+        compiler_flags.append ('-DMIXBUS')
+
     compiler_flags.append ('-DPROGRAM_NAME="' + Options.options.program_name + '"')
     compiler_flags.append ('-DPROGRAM_VERSION="' + PROGRAM_VERSION + '"')