2006-05-23 15:54:52 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
import os
|
|
|
|
import os.path
|
|
|
|
import glob
|
|
|
|
|
|
|
|
Import('env final_prefix install_prefix final_config_prefix libraries i18n')
|
|
|
|
|
|
|
|
cp = env.Copy()
|
|
|
|
|
|
|
|
#
|
|
|
|
# this defines the version number of libardour_cp
|
|
|
|
#
|
|
|
|
|
|
|
|
domain = 'ardour_cp'
|
|
|
|
|
|
|
|
cp.Append(DOMAIN = domain, MAJOR = 1, MINOR = 0, MICRO = 0)
|
|
|
|
cp.Append(CXXFLAGS = "-DPACKAGE=\\\"" + domain + "\\\"")
|
|
|
|
cp.Append(CXXFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
|
|
|
|
cp.Append(PACKAGE = domain)
|
|
|
|
cp.Append(POTFILE = domain + '.pot')
|
|
|
|
|
|
|
|
cp_files=Split("""
|
|
|
|
basic_ui.cc
|
|
|
|
control_protocol.cc
|
2006-06-15 18:31:13 -04:00
|
|
|
smpte.cc
|
2006-05-23 15:54:52 -04:00
|
|
|
""")
|
|
|
|
|
|
|
|
cp.Append(CCFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE")
|
|
|
|
cp.Append(CXXFLAGS="-DDATA_DIR=\\\""+final_prefix+"/share\\\"")
|
|
|
|
cp.Append(CXXFLAGS="-DCONFIG_DIR=\\\""+final_config_prefix+"\\\"")
|
|
|
|
cp.Append(CXXFLAGS="-DLOCALEDIR=\\\""+final_prefix+"/share/locale\\\"")
|
|
|
|
|
|
|
|
cp.Merge ([
|
|
|
|
libraries['ardour'],
|
2006-11-19 11:45:16 -05:00
|
|
|
libraries['sndfile-ardour'],
|
2006-05-23 15:54:52 -04:00
|
|
|
libraries['sigc2'],
|
2006-07-05 15:47:25 -04:00
|
|
|
libraries['pbd'],
|
2006-05-23 15:54:52 -04:00
|
|
|
libraries['midi++2'],
|
|
|
|
libraries['xml'],
|
2006-06-13 03:27:52 -04:00
|
|
|
libraries['usb'],
|
|
|
|
libraries['glib2'],
|
|
|
|
libraries['glibmm2']
|
2006-05-23 15:54:52 -04:00
|
|
|
])
|
|
|
|
|
|
|
|
libardour_cp = cp.SharedLibrary('ardour_cp', cp_files)
|
|
|
|
|
|
|
|
Default(libardour_cp)
|
|
|
|
|
|
|
|
if env['NLS']:
|
|
|
|
i18n (cp, cp_files, env)
|
|
|
|
|
2007-01-09 18:24:54 -05:00
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour2'), libardour_cp))
|
2006-05-23 15:54:52 -04:00
|
|
|
|
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
2006-06-13 03:27:52 -04:00
|
|
|
[ 'SConscript' ] +
|
2006-05-23 15:54:52 -04:00
|
|
|
cp_files +
|
2006-06-15 18:31:13 -04:00
|
|
|
glob.glob('po/*.po') + glob.glob('*.h') + glob.glob('control_protocol/*.h')))
|