mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 14:16:31 +01:00
patch from Joe Button to cache VST personal use question/answer
git-svn-id: svn://localhost/ardour2/trunk@1748 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
98a3014966
commit
b74fb99332
1 changed files with 15 additions and 7 deletions
12
SConstruct
12
SConstruct
|
|
@ -382,14 +382,22 @@ env.Append (BUILDERS = {'Tarball' : tarball_bld})
|
|||
#
|
||||
|
||||
if env['VST']:
|
||||
if os.path.isfile('.personal_use_only'):
|
||||
print "Enabling VST support. Note that distributing a VST-enabled ardour\nis a violation of several different licences.\nBuild with VST=false if you intend to distribute ardour to others."
|
||||
else:
|
||||
sys.stdout.write ("Are you building Ardour for personal use (rather than distribution to others)? [no]: ")
|
||||
answer = sys.stdin.readline ()
|
||||
answer = answer.rstrip().strip()
|
||||
if answer != "yes" and answer != "y":
|
||||
if answer == "yes" or answer == "y":
|
||||
fh = open('.personal_use_only', 'w')
|
||||
fh.close()
|
||||
print "OK, VST support will be enabled"
|
||||
else:
|
||||
print 'You cannot build Ardour with VST support for distribution to others.\nIt is a violation of several different licenses. Build with VST=false.'
|
||||
sys.exit (-1);
|
||||
else:
|
||||
print "OK, VST support will be enabled"
|
||||
if os.path.isfile('.personal_use_only'):
|
||||
os.remove('.personal_use_only')
|
||||
|
||||
|
||||
#######################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue