# -*- python -*- import os import os.path import glob Import('env final_prefix install_prefix final_config_prefix libraries i18n') osc = env.Copy() # # this defines the version number of libardour_osc # domain = 'ardour_osc' osc.Append(DOMAIN = domain, MAJOR = 1, MINOR = 0, MICRO = 0) osc.Append(CXXFLAGS = "-DPACKAGE=\\\"" + domain + "\\\"") osc.Append(CXXFLAGS="-DLIBSIGC_DISABLE_DEPRECATED") osc.Append(PACKAGE = domain) osc.Append(POTFILE = domain + '.pot') osc_files=Split(""" interface.cc osc_server.cc """) osc.Append(CCFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE") osc.Append(CXXFLAGS="-DDATA_DIR=\\\""+final_prefix+"/share\\\"") osc.Append(CXXFLAGS="-DCONFIG_DIR=\\\""+final_config_prefix+"\\\"") osc.Append(CXXFLAGS="-DLOCALEDIR=\\\""+final_prefix+"/share/locale\\\"") osc.Merge ([ libraries['ardour'], libraries['sigc2'], libraries['pbd3'], libraries['lo'] ]) libardour_osc = osc.SharedLibrary('ardour_osc', osc_files) Default(libardour_osc) if env['NLS']: i18n (osc, osc_files, env) env.Alias('install', env.Install(os.path.join(install_prefix, 'lib/ardour2/surfaces'), libardour_osc)) env.Alias('tarball', env.Distribute (env['DISTTREE'], [ 'SConscript', 'i18n.h', 'gettext.h' ] + osc_files + glob.glob('po/*.po') + glob.glob('*.h')))