mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-05 13:15:44 +01:00
Merged with trunk R992.
Completely untested other than it compiles, runs, and records somewhat (need to merge again). git-svn-id: svn://localhost/ardour2/branches/midi@999 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
7bd41538d9
commit
fedf3d34f3
297 changed files with 6156 additions and 5481 deletions
|
|
@ -4,7 +4,9 @@ import os
|
|||
import os.path
|
||||
import glob
|
||||
|
||||
Import('env install_prefix final_prefix config_prefix libraries')
|
||||
from stat import *
|
||||
|
||||
Import('env install_prefix final_prefix config_prefix subst_dict libraries')
|
||||
|
||||
ardour_vst = env.Copy()
|
||||
|
||||
|
|
@ -49,6 +51,35 @@ ardour_vst.Merge ([
|
|||
libraries['jack']
|
||||
])
|
||||
|
||||
wine_executable = ardour_vst.Program (target = 'ardour_vst', source = sources)
|
||||
#
|
||||
# run winegcc to build a mini-win32 executable that wine can run. note: this also
|
||||
# generates a script called 'ardour_vst' which we don't use
|
||||
#
|
||||
|
||||
wine_generated_executable = ardour_vst.Program (target = 'ardour_vst', source = sources)
|
||||
|
||||
#
|
||||
# generate a shell script that will run the .exe file correctly
|
||||
#
|
||||
|
||||
wine_executable = ardour_vst.SubstInFile ('ardourvst', 'ardourvst.in', SUBST_DICT = subst_dict)
|
||||
|
||||
# make sure the scripts are executable
|
||||
|
||||
if ardour_vst['VST']:
|
||||
ardour_vst.AddPostAction (wine_executable, ardour_vst.Action (Chmod ('vst/ardevst', 0755)))
|
||||
ardour_vst.AddPostAction (wine_executable, ardour_vst.Action (Chmod (wine_executable, 0755)))
|
||||
Default([wine_generated_executable, wine_executable])
|
||||
|
||||
# the wine script - into the bin dir
|
||||
env.Alias('install', env.Install(os.path.join(install_prefix, 'bin'), wine_executable))
|
||||
# the win32 executable - into the lib dir since the wine script will look for it there
|
||||
env.Alias('install', env.Install(os.path.join(install_prefix, 'lib/ardour2'), 'ardour_vst.exe.so'))
|
||||
|
||||
env.Alias ('tarball', env.Distribute (env['DISTTREE'],
|
||||
[ 'SConscript',
|
||||
'winmain.c',
|
||||
'ardourvst.in',
|
||||
'ardevst'
|
||||
]))
|
||||
|
||||
Default(wine_executable)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue