13
0
livetrax/libs/surfaces/wiimote/SConscript
Sampo Savolainen 60f9ee3052 Added evoral dependency
git-svn-id: svn://localhost/ardour2/branches/3.0@4320 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-12-13 15:23:31 +00:00

62 lines
1.6 KiB
Python

# -*- python -*-
import os
import os.path
import glob
Import('env final_prefix install_prefix final_config_prefix libraries i18n')
wiimote = env.Clone()
#
# this defines the version number of libardour_wiimote
#
domain = 'ardour_wiimote'
wiimote.Append(DOMAIN = domain, MAJOR = 1, MINOR = 0, MICRO = 0)
wiimote.Append(CXXFLAGS = "-DPACKAGE=\\\"" + domain + "\\\"")
wiimote.Append(CXXFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
wiimote.Append(PACKAGE = domain)
wiimote.Append(POTFILE = domain + '.pot')
wiimote_files=Split("""
wiimote.cc
interface.cc
""")
wiimote.Append(CCFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE")
wiimote.Append(CXXFLAGS="-DDATA_DIR=\\\""+final_prefix+"/share\\\"")
wiimote.Append(CXXFLAGS="-DCONFIG_DIR=\\\""+final_config_prefix+"\\\"")
wiimote.Append(CXXFLAGS="-DLOCALEDIR=\\\""+final_prefix+"/share/locale\\\"")
wiimote.Append(LINKFLAGS="-lcwiid")
#wiimote.Append(CPPPATH = libraries['jack'].get('CPPPATH', []))
wiimote.Merge ([
libraries['ardour'],
libraries['ardour_cp'],
libraries['evoral'],
libraries['sndfile'],
libraries['midi++2'],
libraries['pbd'],
libraries['sigc2'],
libraries['usb'],
libraries['xml'],
libraries['glib2'],
libraries['glibmm2']
])
libardour_wiimote = wiimote.SharedLibrary('ardour_wiimote', wiimote_files)
if wiimote['WIIMOTE']:
Default(libardour_wiimote)
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour2', 'surfaces'), libardour_wiimote))
if env['NLS']:
i18n (wiimote, wiimote_files, env)
env.Alias('tarball', env.Distribute (env['DISTTREE'],
[ 'SConscript' ] +
wiimote_files +
glob.glob('po/*.po') + glob.glob('*.h')))