2006-04-04 20:21:43 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
import os
|
2006-04-25 20:45:27 -04:00
|
|
|
import os.path
|
2006-04-04 20:21:43 -04:00
|
|
|
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
|
2007-02-14 14:56:16 -05:00
|
|
|
buttons.cc
|
|
|
|
io.cc
|
|
|
|
io_usb.cc
|
|
|
|
panner.cc
|
|
|
|
lights.cc
|
|
|
|
screen.cc
|
|
|
|
state.cc
|
|
|
|
wheel_modes.cc
|
|
|
|
button_events.cc
|
|
|
|
general.cc
|
|
|
|
lcd.cc
|
|
|
|
mode.cc
|
|
|
|
show.cc
|
|
|
|
init.cc
|
|
|
|
wheel.cc
|
2006-04-04 20:21:43 -04:00
|
|
|
""")
|
|
|
|
|
2007-02-14 14:56:16 -05:00
|
|
|
#figure out when to do
|
|
|
|
#io_usb.cc
|
|
|
|
#io_midi.cc
|
|
|
|
#io_kernel.cc
|
|
|
|
|
2006-04-04 20:21:43 -04:00
|
|
|
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\\\"")
|
2007-02-14 14:56:16 -05:00
|
|
|
#if env['HAVE_TRANZPORT_KERNEL_DRIVER']:
|
2007-02-22 23:47:09 -05:00
|
|
|
# tranzport.Append(CXXFLAGS="-DHAVE_TRANZPORT_KERNEL_DRIVER=1")
|
2007-02-14 14:56:16 -05:00
|
|
|
|
|
|
|
#merge more into tranzport files for the right io lib
|
2006-04-04 20:21:43 -04:00
|
|
|
|
|
|
|
tranzport.Merge ([
|
2006-04-25 17:45:04 -04:00
|
|
|
libraries['ardour'],
|
2006-05-23 15:54:52 -04:00
|
|
|
libraries['ardour_cp'],
|
2006-04-25 17:45:04 -04:00
|
|
|
libraries['sigc2'],
|
2006-06-29 18:21:30 -04:00
|
|
|
libraries['pbd'],
|
2006-04-25 17:45:04 -04:00
|
|
|
libraries['midi++2'],
|
2006-05-23 15:54:52 -04:00
|
|
|
libraries['xml'],
|
2006-06-07 23:58:29 -04:00
|
|
|
libraries['glib2'],
|
2007-02-14 14:56:16 -05:00
|
|
|
libraries['glibmm2'],
|
2007-02-22 23:36:43 -05:00
|
|
|
libraries['usb'],
|
|
|
|
libraries['sndfile-ardour']
|
2006-05-23 15:54:52 -04:00
|
|
|
])
|
2006-04-04 20:21:43 -04:00
|
|
|
|
|
|
|
libardour_tranzport = tranzport.SharedLibrary('ardour_tranzport', tranzport_files)
|
|
|
|
|
2006-11-30 12:52:26 -05:00
|
|
|
if tranzport['TRANZPORT']:
|
2007-02-22 23:47:09 -05:00
|
|
|
Default(libardour_tranzport)
|
|
|
|
if env['NLS']:
|
|
|
|
i18n (tranzport, tranzport_files, env)
|
|
|
|
# if env['HAVE_TRANZPORT_KERNEL_DRIVER']:
|
|
|
|
# tranzport.Merge([ libraries['usb'] ])
|
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour2', 'surfaces'), libardour_tranzport))
|
2006-04-24 18:45:19 -04:00
|
|
|
|
2006-04-04 20:21:43 -04:00
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
2007-02-22 23:47:09 -05:00
|
|
|
[ 'SConscript' ] +
|
|
|
|
tranzport_files +
|
|
|
|
glob.glob('po/*.po') + glob.glob('*.h')))
|