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'],
49 libraries['soundtouch'],
50 libraries['samplerate'],
55 # run winegcc to build a mini-win32 executable that wine can run. note: this also
56 # generates a script called 'ardour_vst' which we don't use
59 wine_generated_executable = ardour_vst.Program (target = 'ardour_vst', source = sources)
62 # generate a shell script that will run the .exe file correctly
65 wine_executable = ardour_vst.SubstInFile ('ardourvst', 'ardourvst.in', SUBST_DICT = subst_dict)
67 # make sure the scripts are executable
70 ardour_vst.AddPostAction (wine_executable, ardour_vst.Action (Chmod ('vst/ardevst', 0755)))
71 ardour_vst.AddPostAction (wine_executable, ardour_vst.Action (Chmod ("vst/" + str(wine_executable[0]), 0755)))
72 Default([wine_generated_executable, wine_executable])
74 # the wine script - into the bin dir
75 env.Alias('install', env.Install(os.path.join(install_prefix, 'bin'), wine_executable))
76 # the win32 executable - into the lib dir since the wine script will look for it there
77 env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour2'), 'ardour_vst.exe.so'))
79 env.Alias ('tarball', env.Distribute (env['DISTTREE'],