mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 11:06:32 +01:00
rollback to 3428, before the mysterious removal of libs/* at 3431/3432
git-svn-id: svn://localhost/ardour2/branches/3.0@3435 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
9c0d7d72d7
commit
449aab3c46
2869 changed files with 1026749 additions and 0 deletions
56
libs/libsndfile/SConscript
Normal file
56
libs/libsndfile/SConscript
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
# -*- python -*-
|
||||
|
||||
import os
|
||||
import os.path
|
||||
import glob
|
||||
|
||||
sndfile_files = glob.glob('src/*.c') + glob.glob('src/GSM610/*.c') + glob.glob('src/G72x/*.c')
|
||||
|
||||
Import('env install_prefix libraries use_flac')
|
||||
sndfile = env.Copy()
|
||||
if use_flac:
|
||||
sndfile.Merge([libraries['flac'] ])
|
||||
|
||||
domain = 'libsndfile'
|
||||
|
||||
sndfile.Append(CCFLAGS = "-DPACKAGE=\\\"" + domain + "\\\"")
|
||||
sndfile.Append(CCFLAGS = "-DVERSION=\\\"ardour-special\\\"")
|
||||
# mingw may need this
|
||||
#sndfile.Append(CCFLAGS="-no-undefined")
|
||||
sndfile.Append(PACKAGE = domain)
|
||||
sndfile.Append(POTFILE = domain + '.pot')
|
||||
|
||||
conf = Configure(sndfile)
|
||||
|
||||
if conf.CheckCHeader('/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h'):
|
||||
sndfile.Append(LINKFLAGS = "-framework CoreServices")
|
||||
|
||||
sndfile = conf.Finish()
|
||||
|
||||
libsndfile = sndfile.SharedLibrary('sndfile-ardour', sndfile_files)
|
||||
|
||||
if use_flac:
|
||||
sndfile_h = sndfile.Command('src/sndfile.h', ['src/sndfile.h.in'], 'cd libs/libsndfile && ./configure && cd -', ENV=os.environ)
|
||||
else:
|
||||
sndfile_h = sndfile.Command('src/sndfile.h', ['src/sndfile.h.in'], 'cd libs/libsndfile && ./configure --disable-flac && cd -', ENV=os.environ)
|
||||
|
||||
Default([sndfile_h,libsndfile])
|
||||
|
||||
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3'), libsndfile))
|
||||
|
||||
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
||||
[ 'NEWS', 'README', 'AUTHORS', 'ChangeLog',
|
||||
'configure', 'SConscript',
|
||||
'install-sh',
|
||||
'libsndfile.spec.in',
|
||||
'sndfile.pc.in',
|
||||
'config.sub',
|
||||
'config.guess'
|
||||
] +
|
||||
sndfile_files +
|
||||
glob.glob('src/*.h') +
|
||||
glob.glob('src/GSM610/*.h') +
|
||||
glob.glob('src/G72x/*.h') +
|
||||
[ 'src/sndfile.h.in', 'src/config.h.in', 'src/Symbols.linux', 'src/Symbols.darwin', 'src/libsndfile.def', 'src/cygsndfile.def' ]
|
||||
))
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue