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
|
|
|
mackie = env.Clone()
|
2008-06-02 17:41:35 -04:00
|
|
|
|
|
|
|
#
|
|
|
|
# this defines the version number of libardour_mackie
|
|
|
|
#
|
|
|
|
|
|
|
|
domain = 'ardour_mackie'
|
|
|
|
|
|
|
|
mackie.Append(DOMAIN = domain, MAJOR = 1, MINOR = 0, MICRO = 0)
|
|
|
|
mackie.Append(CXXFLAGS = "-DPACKAGE=\\\"" + domain + "\\\"")
|
|
|
|
mackie.Append(CXXFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
|
|
|
|
mackie.Append(PACKAGE = domain)
|
|
|
|
mackie.Append(POTFILE = domain + '.pot')
|
|
|
|
|
|
|
|
if mackie['IS_OSX']:
|
|
|
|
mackie.Append (LINKFLAGS="-Xlinker -headerpad -Xlinker 2048")
|
|
|
|
|
|
|
|
mackie_files=Split("""
|
|
|
|
interface.cc
|
|
|
|
midi_byte_array.cc
|
|
|
|
controls.cc
|
|
|
|
route_signal.cc
|
|
|
|
mackie_midi_builder.cc
|
|
|
|
mackie_button_handler.cc
|
|
|
|
mackie_control_protocol_poll.cc
|
|
|
|
surface_port.cc
|
|
|
|
mackie_port.cc
|
|
|
|
types.cc
|
|
|
|
surface.cc
|
|
|
|
mackie_control_protocol.cc
|
|
|
|
bcf_surface.cc
|
|
|
|
mackie_surface.cc
|
|
|
|
""")
|
|
|
|
|
|
|
|
mackie.Append(CCFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE")
|
|
|
|
mackie.Append(CXXFLAGS="-DDATA_DIR=\\\""+final_prefix+"/share\\\"")
|
|
|
|
mackie.Append(CXXFLAGS="-DCONFIG_DIR=\\\""+final_config_prefix+"\\\"")
|
|
|
|
mackie.Append(CXXFLAGS="-DLOCALEDIR=\\\""+final_prefix+"/share/locale\\\"")
|
2008-09-10 17:27:39 -04:00
|
|
|
mackie.Append(CPPPATH = libraries['jack'].get('CPPPATH', []))
|
2008-06-02 17:41:35 -04:00
|
|
|
|
|
|
|
mackie.Merge ([
|
|
|
|
libraries['ardour'],
|
|
|
|
libraries['ardour_cp'],
|
|
|
|
libraries['sigc2'],
|
|
|
|
libraries['pbd'],
|
|
|
|
libraries['midi++2'],
|
|
|
|
libraries['xml'],
|
|
|
|
libraries['glib2'],
|
|
|
|
libraries['glibmm2'],
|
2008-09-17 07:26:31 -04:00
|
|
|
libraries['sndfile']
|
2008-06-02 17:41:35 -04:00
|
|
|
])
|
|
|
|
|
|
|
|
libardour_mackie = mackie.SharedLibrary('ardour_mackie', mackie_files)
|
|
|
|
|
|
|
|
test_files = Split("""
|
|
|
|
midi_byte_array.cc
|
|
|
|
test.cc
|
|
|
|
""")
|
|
|
|
mackie_test = Program('mackie_test', test_files )
|
|
|
|
|
|
|
|
if mackie['SURFACES']:
|
|
|
|
Default(libardour_mackie)
|
|
|
|
if env['NLS']:
|
|
|
|
i18n (mackie, mackie_files, env)
|
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3','surfaces'), libardour_mackie))
|
|
|
|
|
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
|
|
|
[ 'SConscript' ] +
|
|
|
|
mackie_files +
|
|
|
|
glob.glob('po/*.po') + glob.glob('*.h')))
|