13
0

add a mixbus compile define

allow to minimize branch changes downstream and work closer with upstream.
(so far upstream #ifdef MIXBUS were hardcoded to #if 1 downstream)
This commit is contained in:
Robin Gareus 2015-12-10 12:36:03 +01:00
parent d0cdf9660a
commit e5136d0375

View File

@ -592,6 +592,10 @@ int main() { return 0; }''',
if opt.nls: if opt.nls:
compiler_flags.append('-DENABLE_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_NAME="' + Options.options.program_name + '"')
compiler_flags.append ('-DPROGRAM_VERSION="' + PROGRAM_VERSION + '"') compiler_flags.append ('-DPROGRAM_VERSION="' + PROGRAM_VERSION + '"')