The same source file cannot safely be used in different wscripts
with concurrency (if they were in the same wscript it works
.c.1.o .c.2.o, etc).
[387/764] c: libs/fst/vstwin.c -> build/libs/fst/vstwin.c.1.o
[731/764] c: libs/fst/vstwin.c -> build/libs/fst/vstwin.c.1.o
[746/764] cxxprogram: build/libs/fst/scanner.cc.1.o build/libs/fst/vstwin.c.1.o -> build/libs/fst/ardour-vst-scanner.exe
[750/764] cxxshlib: [...] build/libs/fst/vstwin.c.1.o [...] -> build/libs/ardour/ardour-3.dll
and about one every full moon (depending on concurrency) it failed:
missing file: 'build/libs/fst/vstwin.c.1.o'
# If we require VST support we build a stub main() and the FST library
# here using winegcc, and link it to the GTK front-end library
obj = bld (features = 'cxx c cxxprogram wine')
# If we require VST support we build a stub main() and the FST library
# here using winegcc, and link it to the GTK front-end library
obj = bld (features = 'cxx c cxxprogram wine')
- obj.source = (
- '../libs/fst/vstwin.c',
- '../vst/winmain.c',
- )
+ obj.source = ( '../vst/winmain.c')
#
# XXX do we really need to explicitly link to all of these for the wine executable?
#
#
# XXX do we really need to explicitly link to all of these for the wine executable?
#
'libmidipp',
'libgtk2_ardour',
'libgtkmm2ext',
'libmidipp',
'libgtk2_ardour',
'libgtkmm2ext',
+ 'libcanvas',
+ 'vstwin'
]
obj.target = 'ardour-' + str (bld.env['VERSION']) + '-vst.exe.so'
obj.includes = [ '../libs/fst', '.' ]
]
obj.target = 'ardour-' + str (bld.env['VERSION']) + '-vst.exe.so'
obj.includes = [ '../libs/fst', '.' ]
obj.includes += [ '../fst' ]
obj.defines += [ 'WINDOWS_VST_SUPPORT' ]
if bld.env['build_target'] == 'mingw':
obj.includes += [ '../fst' ]
obj.defines += [ 'WINDOWS_VST_SUPPORT' ]
if bld.env['build_target'] == 'mingw':
- obj.source += [ '../fst/vstwin.c']
+ obj.use += [ 'vstwin' ]
obj.uselib += ['GDI32']
if bld.is_defined('LXVST_SUPPORT'):
obj.uselib += ['GDI32']
if bld.is_defined('LXVST_SUPPORT'):
obj.use = [ 'libpbd' ]
else:
obj = bld (features = 'cxx c cxxprogram')
obj.use = [ 'libpbd' ]
else:
obj = bld (features = 'cxx c cxxprogram')
+ obj.source = ( 'scanner.cc' )
+ obj.target = 'ardour-vst-scanner'
if bld.is_defined('WINDOWS_VST_SUPPORT'):
if bld.is_defined('WINDOWS_VST_SUPPORT'):
- obj.source = ( 'scanner.cc', 'vstwin.c' )
+ bld (features = 'c', name='vstwin', source='vstwin.c', uselib = 'GIOMM', includes = [ '../pbd/', '../ardour/', '.' ])
obj.uselib = ['GIOMM', 'DL', 'GDI32']
obj.uselib = ['GIOMM', 'DL', 'GDI32']
+ obj.use = [ 'libpbd', 'vstwin' ]
- obj.source = ( 'scanner.cc' )
obj.uselib = ['GIOMM', 'DL']
obj.uselib = ['GIOMM', 'DL']
- obj.target = 'ardour-vst-scanner'
- obj.use = [ 'libpbd' ]
obj.includes = [ '../pbd/', '../ardour/', '.' ]
obj.defines = [
obj.includes = [ '../pbd/', '../ardour/', '.' ]
obj.defines = [