add clean and nice check for Tracks builds
This commit is contained in:
parent
8a9dc2c2d5
commit
e1bd9401d5
@ -86,7 +86,7 @@ def configure(conf):
|
||||
|
||||
def build(bld):
|
||||
sources = gtkmm2ext_sources
|
||||
if bld.env['PROGRAM_NAME'] == 'TracksLive':
|
||||
if bld.is_tracks_build():
|
||||
sources += [ 'waves_fastmeter.cc' ]
|
||||
else:
|
||||
sources += [ 'fastmeter.cc' ]
|
||||
|
@ -20,7 +20,7 @@ def configure(conf):
|
||||
autowaf.set_recursive()
|
||||
autowaf.configure(conf)
|
||||
|
||||
if conf.env['PROGRAM_NAME'] == 'TracksLive':
|
||||
if bld.is_tracks_build():
|
||||
panners = [ '1in2out', 'vbap', 'stereobalance' ]
|
||||
else:
|
||||
panners = [ '2in2out', '1in2out', 'vbap', 'stereobalance' ]
|
||||
@ -29,7 +29,7 @@ def configure(conf):
|
||||
sub_config_and_use(conf, i)
|
||||
|
||||
def build(bld):
|
||||
if bld.env['PROGRAM_NAME'] == 'TracksLive':
|
||||
if bld.is_tracks_build():
|
||||
panners = [ '1in2out', 'vbap', 'stereobalance' ]
|
||||
else:
|
||||
panners = [ '2in2out', '1in2out', 'vbap', 'stereobalance' ]
|
||||
|
8
wscript
8
wscript
@ -26,6 +26,10 @@ class i18n_mo(BuildContext):
|
||||
cmd = 'i18n_mo'
|
||||
fun = 'i18n_mo'
|
||||
|
||||
def is_tracks_build(self, *k, **kw):
|
||||
return self.env['PROGRAM_NAME'] == 'Tracks Live'
|
||||
|
||||
BuildContext.is_tracks_build = is_tracks_build
|
||||
|
||||
compiler_flags_dictionaries= {
|
||||
'gcc' : {
|
||||
@ -557,6 +561,7 @@ int main() { return 0; }''',
|
||||
|
||||
compiler_flags.append ('-DPROGRAM_NAME="' + Options.options.program_name + '"')
|
||||
compiler_flags.append ('-DPROGRAM_VERSION="' + PROGRAM_VERSION + '"')
|
||||
|
||||
conf.env['PROGRAM_NAME'] = Options.options.program_name
|
||||
|
||||
if opt.debug:
|
||||
@ -576,6 +581,9 @@ int main() { return 0; }''',
|
||||
conf.env.append_value('CXXFLAGS', cxx_flags)
|
||||
conf.env.append_value('LINKFLAGS', linker_flags)
|
||||
|
||||
def is_tracks_build (conf):
|
||||
return conf.env['PROGRAM_NAME'] == 'Tracks Live'
|
||||
|
||||
#----------------------------------------------------------------
|
||||
|
||||
# Waf stages
|
||||
|
Loading…
Reference in New Issue
Block a user