9 Import('env install_prefix final_prefix config_prefix subst_dict libraries')
11 ardour_vst = env.Clone()
16 #libs/fst/fstinfofile.o
23 ardour_vst.Append (CCFLAGS="-DVST_SUPPORT", CPPPATH="#libs/fst", LIBPATH='#gtk2_ardour', LIBS="ardourgtk")
24 ardour_vst.Append (LINKFLAGS='-L/usr/X11R6/lib -lasound -lX11 -lpthread')
25 ardour_vst["CC"] ="winegcc"
26 ardour_vst["LINK"] ="wineg++ -mwindows"
30 libraries['ardour_cp'],
31 libraries['gtkmm2ext'],
36 libraries['libgnomecanvas2'],
37 libraries['libgnomecanvasmm'],
39 libraries['sndfile-ardour'],
50 libraries['soundtouch'],
51 libraries['samplerate'],
56 # run winegcc to build a mini-win32 executable that wine can run. note: this also
57 # generates a script called 'ardour_vst' which we don't use
60 wine_generated_executable = ardour_vst.Program (target = 'ardour_vst', source = sources)
63 # generate a shell script that will run the .exe file correctly
66 wine_executable = ardour_vst.SubstInFile ('ardourvst', 'ardourvst.in', SUBST_DICT = subst_dict)
68 # make sure the scripts are executable
71 ardour_vst.AddPostAction (wine_executable, ardour_vst.Action (Chmod ('vst/ardevst', 0755)))
72 ardour_vst.AddPostAction (wine_executable, ardour_vst.Action (Chmod ("vst/" + str(wine_executable[0]), 0755)))
73 Default([wine_generated_executable, wine_executable])
75 # the wine script - into the bin dir
76 env.Alias('install', env.Install(os.path.join(install_prefix, 'bin'), wine_executable))
77 # the win32 executable - into the lib dir since the wine script will look for it there
78 env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour2'), 'ardour_vst.exe.so'))
80 env.Alias ('tarball', env.Distribute (env['DISTTREE'],