2008-06-02 17:41:35 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
import os
|
|
|
|
import os.path
|
|
|
|
import glob
|
|
|
|
|
|
|
|
Import('env final_prefix install_prefix final_config_prefix libraries i18n')
|
|
|
|
|
2008-09-10 11:03:30 -04:00
|
|
|
genericmidi = env.Clone()
|
2008-06-02 17:41:35 -04:00
|
|
|
|
|
|
|
#
|
2009-01-15 17:09:23 -05:00
|
|
|
# this defines the translation domain of libardour_genericmidi
|
2008-06-02 17:41:35 -04:00
|
|
|
#
|
|
|
|
|
|
|
|
domain = 'ardour_genericmidi'
|
|
|
|
|
|
|
|
genericmidi.Append(DOMAIN = domain, MAJOR = 1, MINOR = 0, MICRO = 0)
|
|
|
|
genericmidi.Append(CXXFLAGS = "-DPACKAGE=\\\"" + domain + "\\\"")
|
|
|
|
genericmidi.Append(CXXFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
|
|
|
|
genericmidi.Append(PACKAGE = domain)
|
|
|
|
genericmidi.Append(POTFILE = domain + '.pot')
|
|
|
|
|
|
|
|
genericmidi_files=Split("""
|
|
|
|
interface.cc
|
|
|
|
generic_midi_control_protocol.cc
|
|
|
|
midicontrollable.cc
|
|
|
|
""")
|
|
|
|
|
|
|
|
genericmidi.Append(CCFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE")
|
|
|
|
genericmidi.Append(CXXFLAGS="-DDATA_DIR=\\\""+final_prefix+"/share\\\"")
|
|
|
|
genericmidi.Append(CXXFLAGS="-DCONFIG_DIR=\\\""+final_config_prefix+"\\\"")
|
|
|
|
genericmidi.Append(CXXFLAGS="-DLOCALEDIR=\\\""+final_prefix+"/share/locale\\\"")
|
2008-09-10 17:27:39 -04:00
|
|
|
genericmidi.Append(CPPPATH = libraries['jack'].get('CPPPATH', []))
|
2008-06-02 17:41:35 -04:00
|
|
|
|
|
|
|
genericmidi.Merge ([
|
2008-09-19 10:38:46 -04:00
|
|
|
libraries['evoral'],
|
2008-06-02 17:41:35 -04:00
|
|
|
libraries['ardour'],
|
|
|
|
libraries['ardour_cp'],
|
2008-09-17 07:26:31 -04:00
|
|
|
libraries['sndfile'],
|
2008-06-02 17:41:35 -04:00
|
|
|
libraries['midi++2'],
|
2008-09-18 20:47:49 -04:00
|
|
|
libraries['evoral'],
|
2008-06-02 17:41:35 -04:00
|
|
|
libraries['pbd'],
|
|
|
|
libraries['sigc2'],
|
|
|
|
libraries['usb'],
|
|
|
|
libraries['xml'],
|
|
|
|
libraries['glib2'],
|
|
|
|
libraries['glibmm2']
|
|
|
|
])
|
|
|
|
|
|
|
|
libardour_genericmidi = genericmidi.SharedLibrary('ardour_genericmidi', genericmidi_files)
|
|
|
|
|
|
|
|
Default(libardour_genericmidi)
|
|
|
|
|
|
|
|
if env['NLS']:
|
|
|
|
i18n (genericmidi, genericmidi_files, env)
|
|
|
|
|
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3', 'surfaces'), libardour_genericmidi))
|
|
|
|
|
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
|
|
|
[ 'SConscript' ] +
|
|
|
|
genericmidi_files +
|
|
|
|
glob.glob('po/*.po') + glob.glob('*.h')))
|