non/mixer/wscript

107 lines
3.1 KiB
Plaintext
Raw Normal View History

2012-11-14 10:54:03 +01:00
#!/usr/bin/env python
import subprocess
import waflib.Options as Options
import string
import os
# Version of this package (even if built as a child)
2021-01-28 02:50:26 +01:00
PACKAGE_VERSION = '1.3.0'
2012-11-14 10:54:03 +01:00
# Variables for 'waf dist'
APPNAME = 'non-mixer'
VERSION = PACKAGE_VERSION
# Mandatory variables
top = '.'
out = 'build'
def options(opt):
opt.load('compiler_c')
opt.load('compiler_cxx')
opt.load('gnu_dirs')
def configure(conf):
conf.load('compiler_c')
conf.load('compiler_cxx')
conf.load('gnu_dirs')
conf.check(header_name='ladspa.h', define_name='HAVE_LADSPA_H', mandatory=True)
2012-11-14 10:54:03 +01:00
conf.check_cfg(package='lrdf', uselib_store='LRDF',args="--cflags --libs",
atleast_version='0.4.0', mandatory=True)
conf.define('VERSION', PACKAGE_VERSION)
2012-11-17 02:20:20 +01:00
conf.define('SYSTEM_PATH', '/'.join( [ conf.env.DATADIR, APPNAME ] ) )
conf.define('DOCUMENT_PATH', '/'.join( [ conf.env.DATADIR, 'doc' ] ) )
conf.define('PIXMAP_PATH', '/'.join( [ conf.env.DATADIR, 'pixmaps' ] ) )
2012-11-14 10:54:03 +01:00
conf.write_config_header('config.h', remove=False)
2012-11-17 02:20:20 +01:00
2012-11-14 10:54:03 +01:00
print('')
def build(bld):
libs = ''
bld.program( source = '''
src/Chain.C
src/Controller_Module.C
src/DPM.C
src/Gain_Module.C
2013-06-27 08:49:29 +02:00
src/Spatializer_Module.C
2012-11-14 10:54:03 +01:00
src/JACK_Module.C
src/AUX_Module.C
2012-11-14 10:54:03 +01:00
src/LADSPAInfo.C
src/Meter_Indicator_Module.C
src/Meter_Module.C
src/Mixer.C
src/Mixer_Strip.C
src/Module.C
src/Module_Parameter_Editor.C
src/Mono_Pan_Module.C
src/Plugin_Chooser_UI.fl
src/Plugin_Chooser.C
2012-11-14 10:54:03 +01:00
src/NSM.C
src/Panner.C
src/Plugin_Module.C
src/Project.C
2013-08-06 09:03:19 +02:00
src/Group.C
2012-11-14 10:54:03 +01:00
src/main.C
2013-10-01 04:10:17 +02:00
src/SpectrumView.C
src/Spatialization_Console.C
2012-11-14 10:54:03 +01:00
''',
target = 'non-mixer',
2013-03-15 01:32:15 +01:00
includes = ['.', 'src', '..', '../nonlib'],
2012-11-14 10:54:03 +01:00
use = ['nonlib', 'fl_widgets'],
2013-04-12 01:37:10 +02:00
uselib = [ 'JACK', 'LIBLO', 'LRDF', 'NTK', 'NTK_IMAGES', 'PTHREAD', 'DL', 'M' ],
2012-11-14 10:54:03 +01:00
install_path = '${BINDIR}')
2013-07-09 06:53:20 +02:00
bld.program( source = 'src/midi-mapper.C',
target = 'non-midi-mapper',
includes = ['.', 'src', '..', '../nonlib'],
use = ['nonlib', 'fl_widgets'],
uselib = [ 'JACK', 'LIBLO', 'LRDF', 'NTK', 'NTK_IMAGES', 'PTHREAD', 'DL', 'M' ],
install_path = '${BINDIR}')
bld( features = 'subst',
source = 'non-mixer.desktop.in',
target = 'non-mixer.desktop',
encoding = 'utf8',
install_path = "${DATADIR}" + '/applications',
BIN_PATH = bld.env.BINDIR )
2012-11-14 10:54:03 +01:00
start_dir = bld.path.find_dir( 'icons/hicolor' )
bld.install_files('${DATADIR}/icons/hicolor', start_dir.ant_glob('**/*.png'),
cwd=start_dir, relative_trick=True)
bld.install_as('${DATADIR}/pixmaps/' + APPNAME + '/icon-256x256.png', 'icons/hicolor/256x256/apps/' + APPNAME + '.png')
2013-06-27 08:49:29 +02:00
start_dir = bld.path.find_dir( 'pixmaps' )
bld.install_files('${DATADIR}/pixmaps/' + APPNAME + '/', start_dir.ant_glob('*.png'),
cwd=start_dir, relative_trick=True)
2012-11-14 10:54:03 +01:00
2012-11-17 02:20:20 +01:00
bld.install_files( '/'.join( [ '${DATADIR}/doc', APPNAME ] ), bld.path.ant_glob( 'doc/*.html doc/*.png' ) )
2012-11-14 10:54:03 +01:00
bld.symlink_as( '${BINDIR}/' + APPNAME + '-noui', APPNAME )