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')
|
|
|
|
|
|
|
|
genericmidi = env.Copy()
|
|
|
|
|
|
|
|
#
|
|
|
|
# this defines the version number of libardour_genericmidi
|
|
|
|
#
|
|
|
|
|
|
|
|
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
|
2006-07-07 19:51:30 -04:00
|
|
|
midicontrollable.cc
|
2006-04-04 20:21:43 -04:00
|
|
|
""")
|
|
|
|
|
|
|
|
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\\\"")
|
|
|
|
|
|
|
|
genericmidi.Merge ([
|
2006-05-23 15:54:52 -04:00
|
|
|
libraries['ardour'],
|
|
|
|
libraries['ardour_cp'],
|
2006-11-24 22:10:11 -05:00
|
|
|
libraries['sndfile-ardour'],
|
2006-05-23 15:54:52 -04:00
|
|
|
libraries['midi++2'],
|
2006-06-29 18:21:30 -04:00
|
|
|
libraries['pbd'],
|
2006-05-23 15:54:52 -04:00
|
|
|
libraries['sigc2'],
|
|
|
|
libraries['usb'],
|
2006-06-07 10:54:12 -04:00
|
|
|
libraries['xml'],
|
2007-02-14 14:56:16 -05:00
|
|
|
libraries['glib2'],
|
|
|
|
libraries['glibmm2']
|
2006-05-23 15:54:52 -04:00
|
|
|
])
|
2006-04-04 20:21:43 -04:00
|
|
|
|
|
|
|
libardour_genericmidi = genericmidi.SharedLibrary('ardour_genericmidi', genericmidi_files)
|
|
|
|
|
|
|
|
Default(libardour_genericmidi)
|
|
|
|
|
|
|
|
if env['NLS']:
|
|
|
|
i18n (genericmidi, genericmidi_files, env)
|
|
|
|
|
2008-02-21 14:30:01 -05:00
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3', 'surfaces'), libardour_genericmidi))
|
2006-04-24 18:45:19 -04:00
|
|
|
|
2006-04-04 20:21:43 -04:00
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
2006-05-30 22:46:04 -04:00
|
|
|
[ 'SConscript' ] +
|
2006-04-04 20:21:43 -04:00
|
|
|
genericmidi_files +
|
|
|
|
glob.glob('po/*.po') + glob.glob('*.h')))
|