2006-04-04 20:21:43 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
import os
|
|
|
|
import glob
|
|
|
|
|
|
|
|
Import('env final_prefix install_prefix final_config_prefix libraries i18n')
|
|
|
|
|
|
|
|
tranzport = env.Copy()
|
|
|
|
|
|
|
|
#
|
|
|
|
# this defines the version number of libardour_tranzport
|
|
|
|
#
|
|
|
|
|
|
|
|
domain = 'ardour_tranzport'
|
|
|
|
|
|
|
|
tranzport.Append(DOMAIN = domain, MAJOR = 1, MINOR = 0, MICRO = 0)
|
|
|
|
tranzport.Append(CXXFLAGS = "-DPACKAGE=\\\"" + domain + "\\\"")
|
|
|
|
tranzport.Append(CXXFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
|
|
|
|
tranzport.Append(PACKAGE = domain)
|
|
|
|
tranzport.Append(POTFILE = domain + '.pot')
|
|
|
|
|
|
|
|
tranzport_files=Split("""
|
|
|
|
interface.cc
|
|
|
|
tranzport_control_protocol.cc
|
|
|
|
""")
|
|
|
|
|
|
|
|
tranzport.Append(CCFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE")
|
|
|
|
tranzport.Append(CXXFLAGS="-DDATA_DIR=\\\""+final_prefix+"/share\\\"")
|
|
|
|
tranzport.Append(CXXFLAGS="-DCONFIG_DIR=\\\""+final_config_prefix+"\\\"")
|
|
|
|
tranzport.Append(CXXFLAGS="-DLOCALEDIR=\\\""+final_prefix+"/share/locale\\\"")
|
|
|
|
|
|
|
|
tranzport.Merge ([
|
2006-04-25 17:45:04 -04:00
|
|
|
libraries['ardour'],
|
|
|
|
libraries['sigc2'],
|
|
|
|
libraries['pbd3'],
|
|
|
|
libraries['midi++2'],
|
2006-04-04 20:21:43 -04:00
|
|
|
libraries['xml'],
|
|
|
|
libraries['usb']
|
|
|
|
])
|
|
|
|
|
|
|
|
libardour_tranzport = tranzport.SharedLibrary('ardour_tranzport', tranzport_files)
|
|
|
|
|
|
|
|
Default(libardour_tranzport)
|
|
|
|
|
|
|
|
if env['NLS']:
|
|
|
|
i18n (tranzport, tranzport_files, env)
|
|
|
|
|
2006-04-24 18:45:19 -04:00
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, 'lib/ardour2/surfaces'), libardour_tranzport))
|
|
|
|
|
2006-04-04 20:21:43 -04:00
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
|
|
|
[ 'SConscript', 'i18n.h', 'gettext.h' ] +
|
|
|
|
tranzport_files +
|
|
|
|
glob.glob('po/*.po') + glob.glob('*.h')))
|