2013-10-10 23:59:12 -04:00
|
|
|
#!/usr/bin/env python
|
2011-09-29 15:17:54 -04:00
|
|
|
from waflib.extras import autowaf as autowaf
|
2020-01-21 18:47:33 -05:00
|
|
|
from waflib import Options, Task, Tools
|
2009-02-25 16:48:32 -05:00
|
|
|
import os
|
2013-07-15 12:46:35 -04:00
|
|
|
import sys
|
2009-10-06 18:07:10 -04:00
|
|
|
import re
|
|
|
|
import subprocess
|
2013-08-09 11:04:04 -04:00
|
|
|
import sys
|
2009-02-25 16:48:32 -05:00
|
|
|
|
2009-10-15 14:56:11 -04:00
|
|
|
# default state file version for this build
|
2019-12-04 17:07:42 -05:00
|
|
|
CURRENT_SESSION_FILE_VERSION = 6000
|
2009-10-15 14:56:11 -04:00
|
|
|
|
2015-01-08 10:57:46 -05:00
|
|
|
I18N_PACKAGE = 'ardour'
|
2009-02-25 16:48:32 -05:00
|
|
|
|
|
|
|
# Mandatory variables
|
2011-09-29 15:17:54 -04:00
|
|
|
top = '.'
|
|
|
|
out = 'build'
|
2009-02-25 16:48:32 -05:00
|
|
|
|
2009-02-25 21:24:16 -05:00
|
|
|
path_prefix = 'libs/ardour/'
|
|
|
|
|
2009-07-22 09:51:16 -04:00
|
|
|
libardour_sources = [
|
2011-03-16 12:32:56 -04:00
|
|
|
'amp.cc',
|
|
|
|
'analyser.cc',
|
2016-03-11 11:23:39 -05:00
|
|
|
'analysis_graph.cc',
|
2013-08-07 22:22:11 -04:00
|
|
|
'async_midi_port.cc',
|
2015-08-20 08:37:50 -04:00
|
|
|
'audio_backend.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'audio_buffer.cc',
|
|
|
|
'audio_library.cc',
|
|
|
|
'audio_playlist.cc',
|
|
|
|
'audio_playlist_importer.cc',
|
2011-05-13 15:55:39 -04:00
|
|
|
'audio_playlist_source.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'audio_port.cc',
|
|
|
|
'audio_region_importer.cc',
|
|
|
|
'audio_track.cc',
|
|
|
|
'audio_track_importer.cc',
|
|
|
|
'audioanalyser.cc',
|
|
|
|
'audioengine.cc',
|
|
|
|
'audiofile_tagger.cc',
|
|
|
|
'audiofilesource.cc',
|
|
|
|
'audioregion.cc',
|
|
|
|
'audiosource.cc',
|
|
|
|
'auditioner.cc',
|
|
|
|
'automatable.cc',
|
|
|
|
'automation.cc',
|
|
|
|
'automation_control.cc',
|
|
|
|
'automation_list.cc',
|
2012-07-13 17:05:45 -04:00
|
|
|
'automation_watch.cc',
|
2017-09-18 12:39:17 -04:00
|
|
|
'beats_samples_converter.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'broadcast_info.cc',
|
|
|
|
'buffer.cc',
|
|
|
|
'buffer_manager.cc',
|
|
|
|
'buffer_set.cc',
|
|
|
|
'bundle.cc',
|
|
|
|
'butler.cc',
|
2011-01-16 14:41:11 -05:00
|
|
|
'capturing_processor.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'chan_count.cc',
|
|
|
|
'chan_mapping.cc',
|
|
|
|
'config_text.cc',
|
2016-04-08 16:49:47 -04:00
|
|
|
'control_group.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'control_protocol_manager.cc',
|
2018-10-11 09:29:10 -04:00
|
|
|
'convolver.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'cycle_timer.cc',
|
2011-04-22 23:34:42 -04:00
|
|
|
'data_type.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'default_click.cc',
|
|
|
|
'debug.cc',
|
2014-06-11 10:31:29 -04:00
|
|
|
'delayline.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'delivery.cc',
|
|
|
|
'directory_names.cc',
|
2017-03-06 06:47:46 -05:00
|
|
|
'disk_io.cc',
|
|
|
|
'disk_reader.cc',
|
|
|
|
'disk_writer.cc',
|
2016-02-03 14:42:47 -05:00
|
|
|
'dsp_filter.cc',
|
2015-11-03 13:20:00 -05:00
|
|
|
'ebur128_analysis.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'element_import_handler.cc',
|
|
|
|
'element_importer.cc',
|
2013-09-19 17:34:23 -04:00
|
|
|
'engine_slave.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'enums.cc',
|
|
|
|
'event_type_map.cc',
|
|
|
|
'export_channel.cc',
|
|
|
|
'export_channel_configuration.cc',
|
|
|
|
'export_failed.cc',
|
|
|
|
'export_filename.cc',
|
|
|
|
'export_format_base.cc',
|
|
|
|
'export_format_manager.cc',
|
|
|
|
'export_format_specification.cc',
|
|
|
|
'export_formats.cc',
|
|
|
|
'export_graph_builder.cc',
|
|
|
|
'export_handler.cc',
|
|
|
|
'export_preset.cc',
|
|
|
|
'export_profile_manager.cc',
|
|
|
|
'export_status.cc',
|
|
|
|
'export_timespan.cc',
|
|
|
|
'file_source.cc',
|
|
|
|
'filename_extensions.cc',
|
|
|
|
'filesystem_paths.cc',
|
|
|
|
'filter.cc',
|
|
|
|
'find_session.cc',
|
2016-04-08 12:07:45 -04:00
|
|
|
'fixed_delay.cc',
|
2016-08-23 16:17:46 -04:00
|
|
|
'fluid_synth.cc',
|
2016-01-12 22:04:18 -05:00
|
|
|
'gain_control.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'globals.cc',
|
|
|
|
'graph.cc',
|
|
|
|
'graphnode.cc',
|
2013-07-22 12:42:01 -04:00
|
|
|
'iec1ppmdsp.cc',
|
|
|
|
'iec2ppmdsp.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'import.cc',
|
2018-10-10 05:17:57 -04:00
|
|
|
'import_pt.cc',
|
2012-06-11 08:07:17 -04:00
|
|
|
'instrument_info.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'internal_return.cc',
|
|
|
|
'internal_send.cc',
|
|
|
|
'interpolation.cc',
|
|
|
|
'io.cc',
|
|
|
|
'io_processor.cc',
|
2013-07-06 20:00:43 -04:00
|
|
|
'kmeterdsp.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'ladspa_plugin.cc',
|
2019-02-15 18:13:30 -05:00
|
|
|
'latent.cc',
|
2014-12-06 23:42:11 -05:00
|
|
|
'legatize.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'location.cc',
|
|
|
|
'location_importer.cc',
|
2015-09-19 21:17:26 -04:00
|
|
|
'ltc_file_reader.cc',
|
2012-12-14 11:18:47 -05:00
|
|
|
'ltc_slave.cc',
|
2016-03-18 17:52:19 -04:00
|
|
|
'lua_api.cc',
|
2016-02-23 09:41:02 -05:00
|
|
|
'luabindings.cc',
|
2016-02-13 16:32:34 -05:00
|
|
|
'luaproc.cc',
|
2016-02-12 07:24:41 -05:00
|
|
|
'luascripting.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'meter.cc',
|
|
|
|
'midi_automation_list_binder.cc',
|
|
|
|
'midi_buffer.cc',
|
2015-03-28 23:24:41 -04:00
|
|
|
'midi_channel_filter.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'midi_clock_slave.cc',
|
|
|
|
'midi_model.cc',
|
|
|
|
'midi_patch_manager.cc',
|
|
|
|
'midi_playlist.cc',
|
2011-05-28 21:54:19 -04:00
|
|
|
'midi_playlist_source.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'midi_port.cc',
|
|
|
|
'midi_region.cc',
|
|
|
|
'midi_ring_buffer.cc',
|
2014-04-28 19:58:24 -04:00
|
|
|
'midi_scene_change.cc',
|
|
|
|
'midi_scene_changer.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'midi_source.cc',
|
|
|
|
'midi_state_tracker.cc',
|
|
|
|
'midi_stretch.cc',
|
|
|
|
'midi_track.cc',
|
|
|
|
'midi_ui.cc',
|
2016-04-08 16:49:47 -04:00
|
|
|
'mididm.cc',
|
2013-08-07 22:22:11 -04:00
|
|
|
'midiport_manager.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'mix.cc',
|
2016-09-28 11:47:10 -04:00
|
|
|
'mode.cc',
|
2016-04-08 16:49:47 -04:00
|
|
|
'monitor_control.cc',
|
2010-03-10 12:31:16 -05:00
|
|
|
'monitor_processor.cc',
|
2019-12-06 12:18:33 -05:00
|
|
|
'mp3fileimportable.cc',
|
|
|
|
'mp3filesource.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'mtc_slave.cc',
|
|
|
|
'mtdm.cc',
|
2016-04-08 16:49:47 -04:00
|
|
|
'muteable.cc',
|
|
|
|
'mute_control.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'mute_master.cc',
|
|
|
|
'onset_detector.cc',
|
|
|
|
'operations.cc',
|
2011-01-26 20:31:03 -05:00
|
|
|
'pan_controllable.cc',
|
|
|
|
'pannable.cc',
|
|
|
|
'panner.cc',
|
|
|
|
'panner_manager.cc',
|
|
|
|
'panner_shell.cc',
|
2014-12-01 14:28:03 -05:00
|
|
|
'parameter_descriptor.cc',
|
2016-04-08 16:49:47 -04:00
|
|
|
'phase_control.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'playlist.cc',
|
|
|
|
'playlist_factory.cc',
|
2011-05-16 11:49:26 -04:00
|
|
|
'playlist_source.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'plugin.cc',
|
|
|
|
'plugin_insert.cc',
|
|
|
|
'plugin_manager.cc',
|
2017-10-30 22:15:43 -04:00
|
|
|
'polarity_processor.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'port.cc',
|
|
|
|
'port_insert.cc',
|
2013-07-31 19:47:20 -04:00
|
|
|
'port_manager.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'port_set.cc',
|
2016-05-16 07:30:28 -04:00
|
|
|
'presentation_info.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'process_thread.cc',
|
|
|
|
'processor.cc',
|
|
|
|
'progress.cc',
|
|
|
|
'quantize.cc',
|
|
|
|
'rc_configuration.cc',
|
2020-01-31 10:26:41 -05:00
|
|
|
'readable.cc',
|
2017-04-12 08:10:44 -04:00
|
|
|
'readonly_control.cc',
|
2017-12-05 10:00:21 -05:00
|
|
|
'raw_midi_parser.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'recent_sessions.cc',
|
2016-04-08 16:49:47 -04:00
|
|
|
'record_enable_control.cc',
|
2016-05-27 16:11:47 -04:00
|
|
|
'record_safe_control.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'region_factory.cc',
|
|
|
|
'resampled_source.cc',
|
|
|
|
'region.cc',
|
|
|
|
'return.cc',
|
|
|
|
'reverse.cc',
|
|
|
|
'route.cc',
|
2011-11-09 12:44:39 -05:00
|
|
|
'route_graph.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'route_group.cc',
|
|
|
|
'route_group_member.cc',
|
|
|
|
'rb_effect.cc',
|
2017-10-30 00:52:18 -04:00
|
|
|
'rt_tasklist.cc',
|
2014-04-28 19:58:24 -04:00
|
|
|
'scene_change.cc',
|
2014-03-10 17:28:18 -04:00
|
|
|
'search_paths.cc',
|
2017-05-05 07:31:21 -04:00
|
|
|
'selection.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'send.cc',
|
|
|
|
'session.cc',
|
2019-09-20 16:31:19 -04:00
|
|
|
'session_bundles.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'session_butler.cc',
|
|
|
|
'session_click.cc',
|
|
|
|
'session_command.cc',
|
|
|
|
'session_configuration.cc',
|
|
|
|
'session_directory.cc',
|
|
|
|
'session_events.cc',
|
|
|
|
'session_export.cc',
|
|
|
|
'session_handle.cc',
|
2012-12-14 11:18:47 -05:00
|
|
|
'session_ltc.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'session_metadata.cc',
|
|
|
|
'session_midi.cc',
|
|
|
|
'session_object.cc',
|
|
|
|
'session_playlists.cc',
|
|
|
|
'session_process.cc',
|
|
|
|
'session_rtevents.cc',
|
|
|
|
'session_state.cc',
|
|
|
|
'session_state_utils.cc',
|
|
|
|
'session_time.cc',
|
|
|
|
'session_transport.cc',
|
2016-04-02 17:34:05 -04:00
|
|
|
'sidechain.cc',
|
2016-04-24 21:47:52 -04:00
|
|
|
'slavable.cc',
|
2016-04-08 16:49:47 -04:00
|
|
|
'slavable_automation_control.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'smf_source.cc',
|
|
|
|
'sndfile_helpers.cc',
|
|
|
|
'sndfileimportable.cc',
|
|
|
|
'sndfilesource.cc',
|
2016-04-08 16:49:47 -04:00
|
|
|
'solo_control.cc',
|
|
|
|
'solo_isolate_control.cc',
|
|
|
|
'solo_safe_control.cc',
|
2013-10-07 09:44:35 -04:00
|
|
|
'soundcloud_upload.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'source.cc',
|
|
|
|
'source_factory.cc',
|
2010-11-26 12:43:03 -05:00
|
|
|
'speakers.cc',
|
2014-01-18 06:31:25 -05:00
|
|
|
'srcfilesource.cc',
|
2016-05-16 07:30:28 -04:00
|
|
|
'stripable.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'strip_silence.cc',
|
2014-03-13 11:50:44 -04:00
|
|
|
'system_exec.cc',
|
2013-03-17 09:53:30 -04:00
|
|
|
'revision.cc',
|
2019-10-14 21:00:32 -04:00
|
|
|
'rt_midibuffer.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'tape_file_matcher.cc',
|
|
|
|
'template_utils.cc',
|
|
|
|
'tempo.cc',
|
|
|
|
'tempo_map_importer.cc',
|
2010-04-13 16:48:33 -04:00
|
|
|
'thread_buffers.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'ticker.cc',
|
|
|
|
'track.cc',
|
|
|
|
'transient_detector.cc',
|
2014-12-28 15:50:57 -05:00
|
|
|
'transform.cc',
|
2019-09-17 20:26:03 -04:00
|
|
|
'transport_fsm.cc',
|
2018-09-18 18:51:59 -04:00
|
|
|
'transport_master.cc',
|
|
|
|
'transport_master_manager.cc',
|
2015-10-15 09:41:11 -04:00
|
|
|
'transpose.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'unknown_processor.cc',
|
|
|
|
'user_bundle.cc',
|
|
|
|
'utils.cc',
|
2016-01-22 14:42:25 -05:00
|
|
|
'vca.cc',
|
2016-01-25 22:15:07 -05:00
|
|
|
'vca_manager.cc',
|
2018-11-18 20:42:52 -05:00
|
|
|
'video_tools_paths.cc',
|
2013-07-22 12:42:01 -04:00
|
|
|
'vumeterdsp.cc',
|
2012-12-14 11:18:47 -05:00
|
|
|
'worker.cc'
|
2009-07-22 09:51:16 -04:00
|
|
|
]
|
|
|
|
|
2009-10-06 18:07:10 -04:00
|
|
|
def flac_supported():
|
2011-04-22 18:15:21 -04:00
|
|
|
cmd = subprocess.Popen ("sndfile-info testfile.flac",
|
|
|
|
stdout = subprocess.PIPE,
|
|
|
|
stderr = subprocess.STDOUT, shell = True)
|
|
|
|
out = cmd.communicate()[0].decode('utf-8');
|
|
|
|
return re.search ('unknown format', out) == None
|
2009-10-06 18:07:10 -04:00
|
|
|
|
|
|
|
def ogg_supported():
|
2011-04-22 18:15:21 -04:00
|
|
|
cmd = subprocess.Popen ("sndfile-info testfile.ogg",
|
|
|
|
stdout = subprocess.PIPE,
|
|
|
|
stderr = subprocess.STDOUT, shell = True)
|
|
|
|
out = cmd.communicate()[0].decode('utf-8');
|
|
|
|
return re.search ('unknown format', out) == None
|
2009-10-06 18:07:10 -04:00
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
def options(opt):
|
2011-04-22 18:15:21 -04:00
|
|
|
autowaf.set_options(opt)
|
2009-02-25 16:48:32 -05:00
|
|
|
|
|
|
|
def configure(conf):
|
2011-09-29 15:58:05 -04:00
|
|
|
conf.load('compiler_cxx')
|
|
|
|
conf.load('gas')
|
2013-06-13 10:53:36 -04:00
|
|
|
# we don't use hard-coded micro versions with ardour, so hard code it to zero
|
2011-04-22 18:15:21 -04:00
|
|
|
autowaf.configure(conf)
|
2011-05-16 14:02:38 -04:00
|
|
|
autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO',
|
2014-01-12 12:11:14 -05:00
|
|
|
atleast_version='0.3.2')
|
|
|
|
autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO4',
|
|
|
|
atleast_version='0.4.0', mandatory=False)
|
2011-04-22 18:15:21 -04:00
|
|
|
autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
|
2013-07-15 13:43:17 -04:00
|
|
|
if Options.options.dist_target != 'mingw':
|
2014-12-23 18:44:33 -05:00
|
|
|
if not Options.options.no_lrdf:
|
|
|
|
autowaf.check_pkg(conf, 'lrdf', uselib_store='LRDF',
|
|
|
|
atleast_version='0.4.0')
|
2013-07-15 13:43:17 -04:00
|
|
|
autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO',
|
|
|
|
atleast_version='0.3.2')
|
2011-05-16 14:02:38 -04:00
|
|
|
autowaf.check_pkg(conf, 'samplerate', uselib_store='SAMPLERATE',
|
|
|
|
atleast_version='0.1.0')
|
|
|
|
autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP',
|
|
|
|
atleast_version='2.0')
|
2013-08-09 11:04:04 -04:00
|
|
|
|
2018-12-28 09:47:55 -05:00
|
|
|
autowaf.check_pkg(conf, 'lv2', uselib_store='LV2',
|
2019-03-31 13:19:21 -04:00
|
|
|
atleast_version='1.2.0', mandatory=True)
|
2018-12-28 09:47:55 -05:00
|
|
|
autowaf.check_pkg(conf, 'lv2', uselib_store='LV2_1_10_0',
|
|
|
|
atleast_version='1.10.0', mandatory=False)
|
|
|
|
autowaf.check_pkg(conf, 'serd-0', uselib_store='SERD',
|
|
|
|
atleast_version='0.14.0', mandatory=True)
|
|
|
|
autowaf.check_pkg(conf, 'sord-0', uselib_store='SORD',
|
|
|
|
atleast_version='0.8.0', mandatory=True)
|
|
|
|
autowaf.check_pkg(conf, 'sratom-0', uselib_store='SRATOM',
|
|
|
|
atleast_version='0.2.0', mandatory=True)
|
|
|
|
autowaf.check_pkg(conf, 'lilv-0', uselib_store='LILV',
|
2019-06-24 15:52:27 -04:00
|
|
|
atleast_version='0.24.2', mandatory=True)
|
2018-12-28 09:47:55 -05:00
|
|
|
autowaf.check_pkg(conf, 'suil-0', uselib_store='SUIL',
|
|
|
|
atleast_version='0.6.0', mandatory=False)
|
|
|
|
conf.define ('LV2_SUPPORT', 1)
|
2012-01-27 20:45:15 -05:00
|
|
|
|
2016-03-13 19:17:08 -04:00
|
|
|
# non-standard LV2 extention -- TODO: add option to disable??
|
|
|
|
if conf.is_defined ('HAVE_LV2_1_10_0'):
|
|
|
|
conf.define ('LV2_EXTENDED', 1)
|
|
|
|
|
2011-10-28 20:12:41 -04:00
|
|
|
# autowaf.check_pkg(conf, 'soundtouch-1.0', uselib_store='SOUNDTOUCH',
|
|
|
|
# mandatory=False)
|
2011-05-16 14:02:38 -04:00
|
|
|
autowaf.check_pkg(conf, 'cppunit', uselib_store='CPPUNIT',
|
|
|
|
atleast_version='1.12.0', mandatory=False)
|
2011-04-22 18:15:21 -04:00
|
|
|
autowaf.check_pkg(conf, 'ogg', uselib_store='OGG', atleast_version='1.1.2')
|
2011-05-16 14:02:38 -04:00
|
|
|
autowaf.check_pkg(conf, 'flac', uselib_store='FLAC',
|
|
|
|
atleast_version='1.2.1')
|
|
|
|
autowaf.check_pkg(conf, 'libcurl', uselib_store='CURL',
|
|
|
|
atleast_version='7.0.0')
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2019-09-09 21:06:21 -04:00
|
|
|
autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW35F',
|
|
|
|
atleast_version='3.3.5', mandatory=False)
|
|
|
|
|
2014-01-12 15:39:58 -05:00
|
|
|
# controls whether we actually use it in preference to soundtouch
|
|
|
|
# Note: as of 2104, soundtouch (WSOLA) has been out-of-use for years.
|
2014-03-04 09:25:58 -05:00
|
|
|
conf.define('USE_RUBBERBAND', 1)
|
2011-04-22 18:15:21 -04:00
|
|
|
|
|
|
|
conf.define('CURRENT_SESSION_FILE_VERSION', CURRENT_SESSION_FILE_VERSION)
|
|
|
|
|
2011-09-30 08:14:44 -04:00
|
|
|
conf.check(header_name='sys/vfs.h', define_name='HAVE_SYS_VFS_H',mandatory=False)
|
2012-06-12 12:41:29 -04:00
|
|
|
conf.check(header_name='sys/statvfs.h', define_name='HAVE_SYS_STATVFS_H',mandatory=False)
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2011-09-30 08:14:44 -04:00
|
|
|
conf.check(header_name='unistd.h', define_name='HAVE_UNISTD',mandatory=False)
|
2011-04-22 18:15:21 -04:00
|
|
|
|
|
|
|
if flac_supported():
|
|
|
|
conf.define ('HAVE_FLAC', 1)
|
|
|
|
if ogg_supported():
|
|
|
|
conf.define ('HAVE_OGG', 1)
|
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
conf.write_config_header('libardour-config.h', remove=False)
|
2011-04-22 18:15:21 -04:00
|
|
|
|
|
|
|
# Boost headers
|
2011-09-29 15:17:54 -04:00
|
|
|
autowaf.check_header(conf, 'cxx', 'boost/shared_ptr.hpp')
|
|
|
|
autowaf.check_header(conf, 'cxx', 'boost/weak_ptr.hpp')
|
|
|
|
autowaf.check_header(conf, 'cxx', 'boost/scoped_ptr.hpp')
|
|
|
|
autowaf.check_header(conf, 'cxx', 'boost/ptr_container/ptr_list.hpp')
|
2014-03-04 09:25:58 -05:00
|
|
|
if conf.env['WINDOWS_VST_SUPPORT'] == True and Options.options.dist_target == 'mingw':
|
|
|
|
conf.check(compiler='cxx',
|
|
|
|
lib='gdi32',
|
|
|
|
mandatory=True,
|
|
|
|
uselib_store='GDI32')
|
2009-02-25 16:48:32 -05:00
|
|
|
|
2009-10-06 18:07:10 -04:00
|
|
|
|
2009-02-25 16:48:32 -05:00
|
|
|
def build(bld):
|
2013-06-13 10:53:36 -04:00
|
|
|
# Library version (UNIX style major, minor, micro)
|
|
|
|
# major increment <=> incompatible changes
|
|
|
|
# minor increment <=> compatible changes (additions)
|
|
|
|
# micro increment <=> no interface changes
|
2013-10-18 11:11:59 -04:00
|
|
|
LIBARDOUR_LIB_VERSION = "3.0.0"
|
2013-06-13 10:53:36 -04:00
|
|
|
|
2020-01-21 18:47:33 -05:00
|
|
|
# remove '${DEFINES_ST:DEFINES}' from run_str.
|
|
|
|
# x86_64-w64-mingw32-as (mingw) -D flag is for debug messages
|
|
|
|
if bld.env['build_target'] == 'mingw':
|
|
|
|
class asm(Task.classes['asm']): run_str = '${AS} ${ASFLAGS} ${ASMPATH_ST:INCPATHS} ${AS_SRC_F}${SRC} ${AS_TGT_F}${TGT}'
|
|
|
|
|
2015-11-23 07:52:14 -05:00
|
|
|
# operate on copy to avoid adding sources twice
|
|
|
|
sources = list(libardour_sources)
|
2015-11-29 11:52:42 -05:00
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
# Library
|
2013-03-20 17:18:55 -04:00
|
|
|
if bld.is_defined ('INTERNAL_SHARED_LIBS'):
|
2015-05-09 19:34:36 -04:00
|
|
|
obj = bld.shlib(features = 'c cxx cshlib cxxshlib', source=sources)
|
2013-10-17 10:52:02 -04:00
|
|
|
# macros for this shared library
|
2013-10-18 11:50:44 -04:00
|
|
|
obj.defines = [ 'LIBARDOUR_DLL_EXPORTS=1' ]
|
2013-03-20 17:18:55 -04:00
|
|
|
else:
|
2015-05-09 19:34:36 -04:00
|
|
|
obj = bld.stlib(features = 'c cxx cstlib cxxstlib', source=sources)
|
2020-01-13 18:52:01 -05:00
|
|
|
obj.cxxflags = [ bld.env['compiler_flags_dict']['pic'] ]
|
2015-05-12 22:22:01 -04:00
|
|
|
obj.cflags = [ bld.env['compiler_flags_dict']['pic'] ]
|
2013-10-17 10:52:02 -04:00
|
|
|
obj.defines = []
|
2013-03-20 17:18:55 -04:00
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
obj.export_includes = ['.']
|
2011-04-22 18:15:21 -04:00
|
|
|
obj.includes = ['.', '../surfaces/control_protocol', '..']
|
2013-04-04 00:32:52 -04:00
|
|
|
obj.name = 'libardour'
|
2011-04-22 18:15:21 -04:00
|
|
|
obj.target = 'ardour'
|
2016-03-19 07:47:37 -04:00
|
|
|
obj.uselib = ['GLIBMM','GTHREAD','AUBIO','SIGCPP','XML','UUID', 'LO',
|
2016-02-28 15:16:44 -05:00
|
|
|
'SNDFILE','SAMPLERATE','LRDF','AUDIOUNITS', 'GIOMM',
|
2014-03-04 09:25:58 -05:00
|
|
|
'OSX','BOOST','CURL','TAGLIB','VAMPSDK','VAMPHOSTSDK','RUBBERBAND']
|
2014-01-12 15:39:58 -05:00
|
|
|
obj.use = ['libpbd','libmidipp','libevoral',
|
2014-03-04 09:25:58 -05:00
|
|
|
'libaudiographer',
|
2017-09-24 12:03:54 -04:00
|
|
|
'libtemporal',
|
2016-02-23 09:41:02 -05:00
|
|
|
'liblua',
|
2018-10-10 05:17:57 -04:00
|
|
|
'libptformat',
|
2017-10-29 13:30:18 -04:00
|
|
|
'zita-resampler',
|
2018-10-11 09:29:10 -04:00
|
|
|
'zita-convolver',
|
2013-12-03 11:51:25 -05:00
|
|
|
]
|
2014-03-04 09:25:58 -05:00
|
|
|
if bld.env['build_target'] != 'mingw':
|
|
|
|
obj.uselib += ['DL']
|
2013-10-26 10:58:14 -04:00
|
|
|
if bld.is_defined('USE_EXTERNAL_LIBS'):
|
2016-08-23 16:17:46 -04:00
|
|
|
obj.uselib.extend(['VAMPSDK', 'LIBLTC', 'LIBFLUIDSYNTH'])
|
2013-10-26 10:58:14 -04:00
|
|
|
else:
|
2018-10-14 20:35:29 -04:00
|
|
|
obj.use.extend(['librubberband', 'libltc_includes', 'libltc', 'libfluidsynth_includes', 'libfluidsynth', 'libptformat'])
|
2013-10-26 10:58:14 -04:00
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
obj.vnum = LIBARDOUR_LIB_VERSION
|
2014-04-28 21:18:02 -04:00
|
|
|
obj.install_path = bld.env['LIBDIR']
|
2013-10-17 10:52:02 -04:00
|
|
|
obj.defines += [
|
2015-01-08 10:57:46 -05:00
|
|
|
'PACKAGE="' + I18N_PACKAGE + str(bld.env['MAJOR']) + '"',
|
2011-05-16 14:02:38 -04:00
|
|
|
'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',
|
2011-09-29 15:17:54 -04:00
|
|
|
'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"',
|
2014-12-09 08:19:11 -05:00
|
|
|
'LOCALEDIR="' + os.path.normpath(bld.env['LOCALEDIR']) + '"',
|
2016-11-06 19:27:26 -05:00
|
|
|
'LIBARDOUR="' + bld.env['lwrcase_dirname'] + '"'
|
2011-05-16 14:02:38 -04:00
|
|
|
]
|
2011-04-22 18:15:21 -04:00
|
|
|
|
|
|
|
#obj.source += ' st_stretch.cc st_pitch.cc '
|
|
|
|
#obj.uselib += ' SOUNDTOUCH '
|
|
|
|
#obj.add_objects = 'default/libs/surfaces/control_protocol/smpte_1.o'
|
|
|
|
|
2011-09-29 16:29:06 -04:00
|
|
|
if bld.is_defined('HAVE_LILV') :
|
2014-03-04 09:25:58 -05:00
|
|
|
obj.source += ['lv2_plugin.cc', 'lv2_evbuf.c', 'uri_map.cc']
|
2011-05-16 14:02:38 -04:00
|
|
|
obj.uselib += ['LILV']
|
2011-09-29 16:29:06 -04:00
|
|
|
if bld.is_defined('HAVE_SUIL'):
|
2011-05-16 14:02:38 -04:00
|
|
|
obj.uselib += ['SUIL']
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2011-11-21 12:42:29 -05:00
|
|
|
if bld.is_defined('WINDOWS_VST_SUPPORT'):
|
2011-11-22 11:30:58 -05:00
|
|
|
obj.source += [ 'windows_vst_plugin.cc']
|
2011-04-22 18:15:21 -04:00
|
|
|
obj.includes += [ '../fst' ]
|
2011-11-21 12:42:29 -05:00
|
|
|
obj.defines += [ 'WINDOWS_VST_SUPPORT' ]
|
2014-02-22 23:51:58 -05:00
|
|
|
if bld.env['build_target'] == 'mingw':
|
2015-01-17 12:19:25 -05:00
|
|
|
obj.use += [ 'vstwin' ]
|
2014-03-04 09:25:58 -05:00
|
|
|
obj.uselib += ['GDI32']
|
2011-09-29 17:36:31 -04:00
|
|
|
|
2011-09-30 12:22:04 -04:00
|
|
|
if bld.is_defined('LXVST_SUPPORT'):
|
2014-02-22 23:51:58 -05:00
|
|
|
obj.source += [ 'lxvst_plugin.cc', 'linux_vst_support.cc' ]
|
2011-09-29 17:36:31 -04:00
|
|
|
obj.defines += [ 'LXVST_SUPPORT' ]
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2016-11-13 10:31:15 -05:00
|
|
|
if bld.is_defined('WINDOWS_VST_SUPPORT') or bld.is_defined('LXVST_SUPPORT') or bld.is_defined('MACVST_SUPPORT'):
|
2016-11-15 11:07:04 -05:00
|
|
|
obj.source += [ 'session_vst.cc', 'vst_plugin.cc', 'vst_info_file.cc', 'vst_state.cc' ]
|
2011-11-22 11:30:58 -05:00
|
|
|
|
2016-11-13 10:31:15 -05:00
|
|
|
if bld.is_defined('MACVST_SUPPORT'):
|
|
|
|
obj.source += [ 'mac_vst_plugin.cc', 'mac_vst_support.cc' ]
|
|
|
|
obj.defines += [ 'MACVST_SUPPORT' ]
|
|
|
|
|
2011-10-18 11:08:42 -04:00
|
|
|
if bld.is_defined('HAVE_COREAUDIO'):
|
2011-04-22 18:15:21 -04:00
|
|
|
obj.source += [ 'coreaudiosource.cc', 'caimportable.cc' ]
|
2011-09-29 15:17:54 -04:00
|
|
|
obj.use += ['libappleutility']
|
2011-12-02 15:03:03 -05:00
|
|
|
|
|
|
|
if bld.is_defined('AUDIOUNIT_SUPPORT'):
|
2011-04-22 18:15:21 -04:00
|
|
|
obj.source += [ 'audio_unit.cc' ]
|
|
|
|
|
2015-05-12 22:22:01 -04:00
|
|
|
avx_sources = []
|
|
|
|
|
2011-09-30 13:50:08 -04:00
|
|
|
if Options.options.fpu_optimization:
|
2012-04-16 12:32:22 -04:00
|
|
|
if (bld.env['build_target'] == 'i386' or bld.env['build_target'] == 'i686'):
|
2015-05-12 22:22:01 -04:00
|
|
|
obj.source += [ 'sse_functions_xmm.cc', 'sse_functions.s', ]
|
|
|
|
avx_sources = [ 'sse_functions_avx_linux.cc' ]
|
2011-04-22 18:15:21 -04:00
|
|
|
elif bld.env['build_target'] == 'x86_64':
|
2015-05-12 22:22:01 -04:00
|
|
|
obj.source += [ 'sse_functions_xmm.cc', 'sse_functions_64bit.s', ]
|
|
|
|
avx_sources = [ 'sse_functions_avx_linux.cc' ]
|
2015-04-21 11:38:34 -04:00
|
|
|
elif bld.env['build_target'] == 'mingw':
|
2015-07-05 08:50:02 -04:00
|
|
|
# usability of the 64 bit windows assembler depends on the compiler target,
|
|
|
|
# not the build host, which in turn can only be inferred from the name
|
2015-11-29 11:52:42 -05:00
|
|
|
# of the compiler.
|
2015-08-12 01:39:12 -04:00
|
|
|
if re.search ('x86_64-w64', str(bld.env['CC'])):
|
2015-07-05 08:50:02 -04:00
|
|
|
obj.source += [ 'sse_functions_xmm.cc' ]
|
2015-05-12 22:22:01 -04:00
|
|
|
obj.source += [ 'sse_functions_64bit_win.s', 'sse_avx_functions_64bit_win.s' ]
|
|
|
|
avx_sources = [ 'sse_functions_avx.cc' ]
|
2015-11-29 11:52:42 -05:00
|
|
|
|
2015-05-12 22:22:01 -04:00
|
|
|
if avx_sources:
|
|
|
|
# as long as we want to use AVX intrinsics in this file,
|
|
|
|
# compile it with -mavx flag - append avx flag to the existing
|
|
|
|
avx_cxxflags = list(bld.env['CXXFLAGS'])
|
|
|
|
avx_cxxflags.append (bld.env['compiler_flags_dict']['avx'])
|
|
|
|
avx_cxxflags.append (bld.env['compiler_flags_dict']['pic'])
|
2020-01-20 17:08:11 -05:00
|
|
|
bld(features = 'cxx cxxstlib asm',
|
2015-05-12 22:22:01 -04:00
|
|
|
source = avx_sources,
|
|
|
|
cxxflags = avx_cxxflags,
|
|
|
|
includes = [ '.' ],
|
2017-09-24 12:03:54 -04:00
|
|
|
use = [ 'libtemporal', 'libpbd', 'libevoral', 'liblua' ],
|
2016-02-28 15:16:44 -05:00
|
|
|
uselib = [ 'GLIBMM', 'XML' ],
|
2015-05-12 22:22:01 -04:00
|
|
|
target = 'sse_avx_functions')
|
2015-11-29 11:52:42 -05:00
|
|
|
|
2015-05-12 22:22:01 -04:00
|
|
|
obj.use += ['sse_avx_functions' ]
|
2015-11-29 11:52:42 -05:00
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
# i18n
|
2011-09-30 12:22:04 -04:00
|
|
|
if bld.is_defined('ENABLE_NLS'):
|
2011-09-29 15:17:54 -04:00
|
|
|
mo_files = bld.path.ant_glob('po/*.mo')
|
2011-04-22 18:15:21 -04:00
|
|
|
for mo in mo_files:
|
2011-11-05 12:35:24 -04:00
|
|
|
lang = os.path.basename(mo.srcpath()).replace('.mo', '')
|
2015-01-08 10:57:46 -05:00
|
|
|
bld.install_as(os.path.join(bld.env['LOCALEDIR'], lang, 'LC_MESSAGES', I18N_PACKAGE + str(bld.env['MAJOR']) + '.mo'),
|
2011-05-16 14:02:38 -04:00
|
|
|
mo)
|
2009-07-17 18:12:21 -04:00
|
|
|
|
2011-11-12 22:54:29 -05:00
|
|
|
if bld.env['BUILD_TESTS'] and bld.is_defined('HAVE_CPPUNIT'):
|
2011-04-22 18:15:21 -04:00
|
|
|
# Unit tests
|
2013-07-11 10:57:21 -04:00
|
|
|
# only build these common sources once
|
|
|
|
testcommon = bld(features = 'cxx')
|
|
|
|
testcommon.includes = obj.includes + ['test', '../pbd', '..']
|
2013-08-10 01:19:36 -04:00
|
|
|
testcommon.source = ['test/testrunner.cc', 'test/test_needing_session.cc',
|
2015-02-15 00:05:22 -05:00
|
|
|
'test/dummy_lxvst.cc', 'test/audio_region_test.cc', 'test/test_util.cc', 'test/test_ui.cc']
|
2020-01-29 10:40:33 -05:00
|
|
|
testcommon.uselib = ['CPPUNIT','SIGCPP','GLIBMM','GTHREAD', 'OSX', 'FFTW3F',
|
2014-01-12 15:39:58 -05:00
|
|
|
'SAMPLERATE','XML','LRDF','COREAUDIO','TAGLIB','VAMPSDK','VAMPHOSTSDK','RUBBERBAND']
|
2013-10-26 10:58:14 -04:00
|
|
|
testcommon.use = ['libpbd','libmidipp','libevoral',
|
2014-04-07 13:50:29 -04:00
|
|
|
'libaudiographer','libardour']
|
2013-10-26 10:58:14 -04:00
|
|
|
if bld.is_defined('USE_EXTERNAL_LIBS'):
|
2016-08-23 16:17:46 -04:00
|
|
|
testcommon.uselib.extend(['LIBLTC', 'LIBFLUIDSYNTH'])
|
2013-10-26 10:58:14 -04:00
|
|
|
else:
|
2016-08-23 16:17:46 -04:00
|
|
|
testcommon.use.extend(['libltc', 'librubberband', 'libfluidsynth'])
|
2013-07-11 10:57:21 -04:00
|
|
|
testcommon.defines = [
|
2015-01-08 10:57:46 -05:00
|
|
|
'PACKAGE="libardour' + str(bld.env['MAJOR']) + 'test"',
|
2011-05-16 14:02:38 -04:00
|
|
|
'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',
|
2011-09-29 15:17:54 -04:00
|
|
|
'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"',
|
2014-12-09 08:19:11 -05:00
|
|
|
'LOCALEDIR="' + os.path.normpath(bld.env['LOCALEDIR']) + '"',
|
2011-05-16 14:02:38 -04:00
|
|
|
]
|
2013-07-11 10:57:21 -04:00
|
|
|
testcommon.name = 'testcommon'
|
|
|
|
|
|
|
|
if bld.env['SINGLE_TESTS']:
|
2013-10-11 07:54:40 -04:00
|
|
|
create_ardour_test_program(bld, obj.includes, 'audio_engine_test', 'test_audio_engine', ['test/audio_engine_test.cc'])
|
2013-07-11 10:57:21 -04:00
|
|
|
create_ardour_test_program(bld, obj.includes, 'automation_list_property_test', 'test_automation_list_property', ['test/automation_list_property_test.cc'])
|
|
|
|
create_ardour_test_program(bld, obj.includes, 'bbt', 'test_bbt', ['test/bbt_test.cc'])
|
|
|
|
create_ardour_test_program(bld, obj.includes, 'tempo', 'test_tempo', ['test/tempo_test.cc'])
|
2016-10-10 18:00:52 -04:00
|
|
|
create_ardour_test_program(bld, obj.includes, 'lua_script', 'test_lua_script', ['test/lua_script_test.cc'])
|
2019-09-05 08:52:08 -04:00
|
|
|
create_ardour_test_program(bld, obj.includes, 'midi_clock', 'test_midi_clock', ['test/midi_clock_test.cc'])
|
2013-07-11 10:57:21 -04:00
|
|
|
create_ardour_test_program(bld, obj.includes, 'resampled_source', 'test_resampled_source', ['test/resampled_source_test.cc'])
|
2017-09-18 23:36:57 -04:00
|
|
|
create_ardour_test_program(bld, obj.includes, 'samplewalk_to_beats', 'test_samplewalk_to_beats', ['test/samplewalk_to_beats_test.cc'])
|
|
|
|
create_ardour_test_program(bld, obj.includes, 'samplepos_plus_beats', 'test_samplepos_plus_beats', ['test/samplepos_plus_beats_test.cc'])
|
2013-07-11 10:57:21 -04:00
|
|
|
create_ardour_test_program(bld, obj.includes, 'playlist_equivalent_regions', 'test_playlist_equivalent_regions', ['test/playlist_equivalent_regions_test.cc'])
|
|
|
|
create_ardour_test_program(bld, obj.includes, 'playlist_layering', 'test_playlist_layering', ['test/playlist_layering_test.cc'])
|
2013-07-15 12:40:06 -04:00
|
|
|
create_ardour_test_program(bld, obj.includes, 'plugins_test', 'test_plugins', ['test/plugins_test.cc'])
|
2013-07-11 10:57:21 -04:00
|
|
|
create_ardour_test_program(bld, obj.includes, 'region_naming', 'test_region_naming', ['test/region_naming_test.cc'])
|
|
|
|
create_ardour_test_program(bld, obj.includes, 'control_surface', 'test_control_surfaces', ['test/control_surfaces_test.cc'])
|
|
|
|
create_ardour_test_program(bld, obj.includes, 'mtdm_test', 'test_mtdm', ['test/mtdm_test.cc'])
|
2015-08-02 20:13:35 -04:00
|
|
|
create_ardour_test_program(bld, obj.includes, 'sha1_test', 'test_sha1', ['test/sha1_test.cc'])
|
2013-07-11 11:11:45 -04:00
|
|
|
create_ardour_test_program(bld, obj.includes, 'session_test', 'test_session', ['test/session_test.cc'])
|
2015-09-14 02:56:22 -04:00
|
|
|
create_ardour_test_program(bld, obj.includes, 'dsp_load_calculator_test', 'test_dsp_load_calculator', ['test/dsp_load_calculator_test.cc'])
|
2013-07-11 10:57:21 -04:00
|
|
|
|
|
|
|
test_sources = '''
|
2013-10-11 07:54:40 -04:00
|
|
|
test/audio_engine_test.cc
|
2013-07-11 10:57:21 -04:00
|
|
|
test/automation_list_property_test.cc
|
|
|
|
test/bbt_test.cc
|
2015-09-14 02:56:22 -04:00
|
|
|
test/dsp_load_calculator_test.cc
|
2013-07-11 10:57:21 -04:00
|
|
|
test/tempo_test.cc
|
2016-10-10 18:00:52 -04:00
|
|
|
test/lua_script_test.cc
|
2019-09-05 08:52:08 -04:00
|
|
|
test/midi_clock_test.cc
|
2013-07-11 10:57:21 -04:00
|
|
|
test/resampled_source_test.cc
|
2017-09-18 23:36:57 -04:00
|
|
|
test/samplewalk_to_beats_test.cc
|
|
|
|
test/samplepos_plus_beats_test.cc
|
2013-07-11 10:57:21 -04:00
|
|
|
test/playlist_equivalent_regions_test.cc
|
|
|
|
test/playlist_layering_test.cc
|
2013-07-15 12:40:06 -04:00
|
|
|
test/plugins_test.cc
|
2013-07-11 10:57:21 -04:00
|
|
|
test/region_naming_test.cc
|
|
|
|
test/control_surfaces_test.cc
|
|
|
|
test/mtdm_test.cc
|
2015-08-02 20:13:35 -04:00
|
|
|
test/sha1_test.cc
|
2013-07-11 11:11:45 -04:00
|
|
|
test/session_test.cc
|
2013-07-11 10:57:21 -04:00
|
|
|
'''.split()
|
|
|
|
|
|
|
|
# Tests that don't work
|
|
|
|
# test/playlist_read_test.cc
|
|
|
|
# test/audio_region_read_test.cc
|
|
|
|
# test/combine_regions_test.cc
|
|
|
|
# test/mantis_3356_test.cc
|
|
|
|
|
|
|
|
create_ardour_test_program(bld, obj.includes, 'libardour-tests', 'run-tests', test_sources)
|
2009-05-04 18:10:15 -04:00
|
|
|
|
2015-11-04 23:06:03 -05:00
|
|
|
# Utility to load and save a session
|
|
|
|
load_save_session = bld(features = 'cxx cxxprogram')
|
|
|
|
load_save_session.source = '''
|
2012-06-18 14:28:40 -04:00
|
|
|
test/test_util.cc
|
2015-11-04 23:06:03 -05:00
|
|
|
test/test_ui.cc
|
|
|
|
test/load_save_session.cc
|
2012-06-18 14:28:40 -04:00
|
|
|
test/dummy_lxvst.cc
|
|
|
|
'''.split()
|
|
|
|
|
2015-11-04 23:06:03 -05:00
|
|
|
load_save_session.includes = obj.includes
|
|
|
|
load_save_session.includes.append ('test')
|
|
|
|
load_save_session.uselib = ['CPPUNIT','SIGCPP','GLIBMM','GTHREAD',
|
2020-01-29 10:40:33 -05:00
|
|
|
'SAMPLERATE','XML','LRDF','COREAUDIO', 'FFTW3F']
|
2015-11-04 23:06:03 -05:00
|
|
|
load_save_session.use = ['libpbd','libmidipp','libardour']
|
|
|
|
load_save_session.name = 'libardour-load-save-session'
|
|
|
|
load_save_session.target = 'load-save-session'
|
|
|
|
load_save_session.install_path = ''
|
|
|
|
load_save_session.defines = [
|
2015-01-08 10:57:46 -05:00
|
|
|
'PACKAGE="libardour' + str(bld.env['MAJOR']) + 'profile"',
|
2012-06-18 14:28:40 -04:00
|
|
|
'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',
|
|
|
|
'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"',
|
2014-12-09 08:19:11 -05:00
|
|
|
'LOCALEDIR="' + os.path.normpath(bld.env['LOCALEDIR']) + '"',
|
2012-06-18 14:28:40 -04:00
|
|
|
]
|
|
|
|
|
2012-01-23 10:01:08 -05:00
|
|
|
# Profiling
|
2012-06-18 20:25:26 -04:00
|
|
|
for p in ['runpc', 'lots_of_regions', 'load_session']:
|
2012-06-17 17:20:51 -04:00
|
|
|
profilingobj = bld(features = 'cxx cxxprogram')
|
|
|
|
profilingobj.source = '''
|
|
|
|
test/dummy_lxvst.cc
|
|
|
|
test/test_util.cc
|
|
|
|
'''.split()
|
|
|
|
|
|
|
|
profilingobj.source.append('test/profiling/%s.cc' % p)
|
|
|
|
|
|
|
|
profilingobj.includes = obj.includes
|
|
|
|
profilingobj.includes.append ('test')
|
2013-10-08 14:16:13 -04:00
|
|
|
profilingobj.uselib = ['CPPUNIT','SIGCPP','GLIBMM','GTHREAD',
|
2020-01-29 10:40:33 -05:00
|
|
|
'SAMPLERATE','XML','LRDF','COREAUDIO', 'FFTW3F']
|
2014-04-07 13:50:29 -04:00
|
|
|
profilingobj.use = ['libpbd','libmidipp','libardour']
|
2012-06-17 17:20:51 -04:00
|
|
|
profilingobj.name = 'libardour-profiling'
|
|
|
|
profilingobj.target = p
|
|
|
|
profilingobj.install_path = ''
|
|
|
|
profilingobj.defines = [
|
2015-01-08 10:57:46 -05:00
|
|
|
'PACKAGE="libardour' + str(bld.env['MAJOR']) + 'profile"',
|
2012-06-17 17:20:51 -04:00
|
|
|
'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',
|
|
|
|
'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"',
|
2014-12-09 08:19:11 -05:00
|
|
|
'LOCALEDIR="' + os.path.normpath(bld.env['LOCALEDIR']) + '"',
|
2012-06-17 17:20:51 -04:00
|
|
|
]
|
2012-01-23 10:01:08 -05:00
|
|
|
|
2013-07-11 10:57:21 -04:00
|
|
|
def create_ardour_test_program(bld, includes, name, target, sources):
|
|
|
|
testobj = bld(features = 'cxx cxxprogram')
|
|
|
|
testobj.includes = includes + ['test', '../pbd', '..']
|
|
|
|
testobj.source = sources
|
2020-01-29 10:40:33 -05:00
|
|
|
testobj.uselib = ['CPPUNIT','SIGCPP','GLIBMM','GTHREAD', 'FFTW3F',
|
2014-01-12 15:39:58 -05:00
|
|
|
'SAMPLERATE','XML','LRDF','COREAUDIO','TAGLIB','VAMPSDK','VAMPHOSTSDK','RUBBERBAND']
|
|
|
|
testobj.use = ['libpbd','libmidipp','libevoral',
|
2014-04-07 13:50:29 -04:00
|
|
|
'libaudiographer','libardour','testcommon']
|
2013-10-26 10:58:14 -04:00
|
|
|
if bld.is_defined('USE_EXTERNAL_LIBS'):
|
2016-08-23 16:17:46 -04:00
|
|
|
testobj.uselib.extend(['LIBLTC', 'LIBFLUIDSYNTH'])
|
2013-10-26 10:58:14 -04:00
|
|
|
else:
|
2016-08-23 16:17:46 -04:00
|
|
|
testobj.use.extend(['libltc', 'libfluidsynth'])
|
2013-10-26 10:58:14 -04:00
|
|
|
|
2013-07-11 10:57:21 -04:00
|
|
|
testobj.name = name
|
|
|
|
testobj.target = target
|
|
|
|
# not sure about install path
|
2014-04-28 21:18:02 -04:00
|
|
|
testobj.install_path = bld.env['LIBDIR']
|
2013-07-11 10:57:21 -04:00
|
|
|
testobj.defines = [
|
2015-01-08 10:57:46 -05:00
|
|
|
'PACKAGE="libardour' + str(bld.env['MAJOR']) + 'test"',
|
2013-07-11 10:57:21 -04:00
|
|
|
'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',
|
|
|
|
'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"',
|
2014-12-09 08:19:11 -05:00
|
|
|
'LOCALEDIR="' + os.path.normpath(bld.env['LOCALEDIR']) + '"',
|
2013-07-11 10:57:21 -04:00
|
|
|
]
|
|
|
|
|
2009-02-25 16:48:32 -05:00
|
|
|
def shutdown():
|
2011-04-22 18:15:21 -04:00
|
|
|
autowaf.shutdown()
|
2009-02-25 16:48:32 -05:00
|
|
|
|
2009-07-22 09:51:16 -04:00
|
|
|
def i18n(bld):
|
2015-01-08 10:57:46 -05:00
|
|
|
autowaf.build_i18n(bld, top, 'libs/ardour', I18N_PACKAGE + str(bld.env['MAJOR']), libardour_sources,
|
2011-11-21 16:27:30 -05:00
|
|
|
'Paul Davis')
|
|
|
|
|
|
|
|
def i18n_pot(bld):
|
2015-01-08 10:57:46 -05:00
|
|
|
autowaf.build_i18n(bld, top, 'libs/ardour', I18N_PACKAGE + str(bld.env['MAJOR']), libardour_sources,
|
2011-11-21 16:27:30 -05:00
|
|
|
'Paul Davis')
|
|
|
|
|
|
|
|
def i18n_po(bld):
|
2015-01-08 10:57:46 -05:00
|
|
|
autowaf.build_i18n_po(bld, top, 'libs/ardour', I18N_PACKAGE + str(bld.env['MAJOR']), libardour_sources,
|
2011-11-21 16:27:30 -05:00
|
|
|
'Paul Davis')
|
|
|
|
|
|
|
|
def i18n_mo(bld):
|
2015-01-08 10:57:46 -05:00
|
|
|
autowaf.build_i18n_mo(bld, top, 'libs/ardour', I18N_PACKAGE + str(bld.env['MAJOR']), libardour_sources,
|
2011-11-05 12:35:24 -04:00
|
|
|
'Paul Davis')
|