2009-02-25 18:59:55 -05:00
|
|
|
#!/usr/bin/env python
|
2011-09-29 15:17:54 -04:00
|
|
|
from waflib.extras import autowaf as autowaf
|
2011-09-29 15:58:05 -04:00
|
|
|
from waflib import Options, TaskGen
|
2011-09-29 15:17:54 -04:00
|
|
|
import waflib.Logs as Logs, waflib.Utils as Utils
|
2009-02-25 18:59:55 -05:00
|
|
|
import os
|
2009-08-08 18:36:32 -04:00
|
|
|
import sys
|
|
|
|
import re
|
2015-11-06 10:57:39 -05:00
|
|
|
import subprocess
|
|
|
|
import glob
|
2009-02-25 18:59:55 -05:00
|
|
|
|
2016-04-27 19:58:54 -04:00
|
|
|
@TaskGen.extension('.m')
|
|
|
|
def m_hook(self, node):
|
2022-01-24 18:27:20 -05:00
|
|
|
"""Alias .m files to be compiled the same as .c files, gcc will do the right thing."""
|
|
|
|
return self.create_compiled_task('c', node)
|
2016-04-27 19:58:54 -04:00
|
|
|
|
2009-07-22 09:51:16 -04:00
|
|
|
gtk2_ardour_sources = [
|
2011-03-16 12:32:56 -04:00
|
|
|
'about.cc',
|
|
|
|
'actions.cc',
|
|
|
|
'add_route_dialog.cc',
|
|
|
|
'ambiguous_file_dialog.cc',
|
|
|
|
'analysis_window.cc',
|
|
|
|
'ardour_dialog.cc',
|
2016-07-18 10:45:45 -04:00
|
|
|
'ardour_http.cc',
|
2019-12-14 17:26:25 -05:00
|
|
|
'ardour_message.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'ardour_ui.cc',
|
|
|
|
'ardour_ui2.cc',
|
2019-09-23 16:49:06 -04:00
|
|
|
'ardour_ui3.cc',
|
2024-02-14 18:33:34 -05:00
|
|
|
'ardour_ui_aaf.cc',
|
2019-09-23 16:49:06 -04:00
|
|
|
'ardour_ui_access_web.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'ardour_ui_dependents.cc',
|
|
|
|
'ardour_ui_dialogs.cc',
|
|
|
|
'ardour_ui_ed.cc',
|
2019-09-23 16:49:06 -04:00
|
|
|
'ardour_ui_engine.cc',
|
|
|
|
'ardour_ui_keys.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'ardour_ui_mixer.cc',
|
|
|
|
'ardour_ui_options.cc',
|
2019-09-23 16:49:06 -04:00
|
|
|
'ardour_ui_session.cc',
|
|
|
|
'ardour_ui_startup.cc',
|
|
|
|
'ardour_ui_video.cc',
|
2011-11-18 16:56:01 -05:00
|
|
|
'ardour_window.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'audio_clock.cc',
|
2021-12-09 21:45:25 -05:00
|
|
|
'audio_clip_editor.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'audio_region_editor.cc',
|
|
|
|
'audio_region_view.cc',
|
2021-11-29 17:30:34 -05:00
|
|
|
'audio_region_operations_box.cc',
|
|
|
|
'audio_region_properties_box.cc',
|
2021-12-15 19:08:15 -05:00
|
|
|
'audio_trigger_properties_box.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'audio_streamview.cc',
|
|
|
|
'audio_time_axis.cc',
|
|
|
|
'automation_controller.cc',
|
|
|
|
'automation_line.cc',
|
|
|
|
'automation_region_view.cc',
|
|
|
|
'automation_streamview.cc',
|
|
|
|
'automation_time_axis.cc',
|
|
|
|
'axis_view.cc',
|
2022-01-24 18:38:32 -05:00
|
|
|
# 'beatbox_gui.cc',
|
2021-02-13 12:39:32 -05:00
|
|
|
'bbt_marker_dialog.cc',
|
2013-05-04 22:02:05 -04:00
|
|
|
'big_clock_window.cc',
|
2017-12-22 14:21:27 -05:00
|
|
|
'big_transport_window.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'bundle_manager.cc',
|
2011-03-02 17:43:19 -05:00
|
|
|
'clock_group.cc',
|
2016-06-07 14:38:57 -04:00
|
|
|
'color_theme_manager.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'configinfo.cc',
|
|
|
|
'control_point.cc',
|
|
|
|
'control_point_dialog.cc',
|
2016-06-09 12:59:18 -04:00
|
|
|
'control_slave_ui.cc',
|
2021-12-07 16:47:00 -05:00
|
|
|
'cuebox_ui.cc',
|
2014-12-20 01:11:28 -05:00
|
|
|
'cursor_context.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'curvetest.cc',
|
|
|
|
'debug.cc',
|
2021-06-11 20:55:16 -04:00
|
|
|
'dsp_stats_ui.cc',
|
2021-06-11 23:02:06 -04:00
|
|
|
'dsp_stats_window.cc',
|
2015-11-14 10:29:50 -05:00
|
|
|
'duplicate_routes_dialog.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'edit_note_dialog.cc',
|
|
|
|
'editing.cc',
|
|
|
|
'editor.cc',
|
|
|
|
'editor_actions.cc',
|
|
|
|
'editor_audio_import.cc',
|
2015-07-31 23:41:26 -04:00
|
|
|
'editor_pt_import.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'editor_audiotrack.cc',
|
|
|
|
'editor_canvas.cc',
|
|
|
|
'editor_canvas_events.cc',
|
|
|
|
'editor_component.cc',
|
|
|
|
'editor_cursors.cc',
|
|
|
|
'editor_drag.cc',
|
|
|
|
'editor_route_groups.cc',
|
2023-09-07 15:20:05 -04:00
|
|
|
'editor_section_box.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'editor_export_audio.cc',
|
|
|
|
'editor_group_tabs.cc',
|
|
|
|
'editor_keys.cc',
|
|
|
|
'editor_locations.cc',
|
|
|
|
'editor_markers.cc',
|
|
|
|
'editor_mixer.cc',
|
|
|
|
'editor_mouse.cc',
|
2020-10-27 13:18:02 -04:00
|
|
|
'editor_ops.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'editor_regions.cc',
|
|
|
|
'editor_routes.cc',
|
|
|
|
'editor_rulers.cc',
|
2023-08-15 11:20:02 -04:00
|
|
|
'editor_sections.cc',
|
2020-10-19 14:37:54 -04:00
|
|
|
'editor_selection.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'editor_snapshots.cc',
|
2018-11-15 10:21:55 -05:00
|
|
|
'editor_sources.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'editor_summary.cc',
|
|
|
|
'editor_tempodisplay.cc',
|
|
|
|
'editor_timefx.cc',
|
|
|
|
'engine_dialog.cc',
|
|
|
|
'enums.cc',
|
2021-04-06 15:06:35 -04:00
|
|
|
'export_analysis_graphs.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'export_channel_selector.cc',
|
|
|
|
'export_dialog.cc',
|
|
|
|
'export_file_notebook.cc',
|
|
|
|
'export_filename_selector.cc',
|
|
|
|
'export_format_dialog.cc',
|
|
|
|
'export_format_selector.cc',
|
|
|
|
'export_preset_selector.cc',
|
2016-02-09 21:06:47 -05:00
|
|
|
'export_report.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'export_timespan_selector.cc',
|
2021-12-04 09:04:36 -05:00
|
|
|
'fitted_canvas_widget.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'fft.cc',
|
|
|
|
'fft_graph.cc',
|
|
|
|
'fft_result.cc',
|
2014-10-31 12:26:57 -04:00
|
|
|
'floating_text_entry.cc',
|
2019-01-18 13:22:54 -05:00
|
|
|
'foldback_strip.cc',
|
2013-08-08 14:08:20 -04:00
|
|
|
'sfdb_freesound_mootcher.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'gain_meter.cc',
|
|
|
|
'generic_pluginui.cc',
|
|
|
|
'ghostregion.cc',
|
|
|
|
'global_port_matrix.cc',
|
|
|
|
'group_tabs.cc',
|
2011-07-06 20:37:13 -04:00
|
|
|
'gui_object.cc',
|
2017-03-15 06:34:05 -04:00
|
|
|
'idleometer.cc',
|
2020-12-06 16:05:09 -05:00
|
|
|
'input_port_monitor.cc',
|
2015-06-16 06:23:50 -04:00
|
|
|
'insert_remove_time_dialog.cc',
|
2014-12-24 18:39:15 -05:00
|
|
|
'instrument_selector.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'interthread_progress_window.cc',
|
2021-01-28 21:31:37 -05:00
|
|
|
'io_button.cc',
|
2022-04-08 11:04:53 -04:00
|
|
|
'io_plugin_window.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'io_selector.cc',
|
2013-04-04 00:32:52 -04:00
|
|
|
'hit.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'keyboard.cc',
|
|
|
|
'keyeditor.cc',
|
|
|
|
'latency_gui.cc',
|
2010-05-05 16:29:46 -04:00
|
|
|
'led.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'level_meter.cc',
|
2022-09-07 19:02:50 -04:00
|
|
|
'library_download_dialog.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'location_ui.cc',
|
2020-07-19 18:29:56 -04:00
|
|
|
'loudness_dialog.cc',
|
2021-04-11 09:04:32 -04:00
|
|
|
'loudness_settings.cc',
|
2016-02-23 09:42:53 -05:00
|
|
|
'lua_script_manager.cc',
|
2017-04-24 16:12:09 -04:00
|
|
|
'luadialog.cc',
|
2016-02-21 16:08:36 -05:00
|
|
|
'luainstance.cc',
|
2016-02-23 09:42:13 -05:00
|
|
|
'luawindow.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'main.cc',
|
2012-05-31 19:14:03 -04:00
|
|
|
'main_clock.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'marker.cc',
|
2023-09-29 11:39:07 -04:00
|
|
|
'mergeable_line.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'midi_automation_line.cc',
|
2011-06-13 10:48:48 -04:00
|
|
|
'midi_channel_dialog.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'midi_channel_selector.cc',
|
2021-12-09 21:45:25 -05:00
|
|
|
'midi_clip_editor.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'midi_cut_buffer.cc',
|
2012-05-23 16:32:55 -04:00
|
|
|
'midi_export_dialog.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'midi_list_editor.cc',
|
|
|
|
'midi_region_view.cc',
|
2021-11-29 17:30:34 -05:00
|
|
|
'midi_region_operations_box.cc',
|
|
|
|
'midi_region_properties_box.cc',
|
2021-12-15 19:08:15 -05:00
|
|
|
'midi_trigger_properties_box.cc',
|
2011-12-12 14:03:46 -05:00
|
|
|
'midi_selection.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'midi_streamview.cc',
|
|
|
|
'midi_time_axis.cc',
|
|
|
|
'midi_tracer.cc',
|
2012-06-06 09:17:53 -04:00
|
|
|
'midi_velocity_dialog.cc',
|
2016-12-16 19:43:09 -05:00
|
|
|
'mini_timeline.cc',
|
2010-11-09 01:03:51 -05:00
|
|
|
'missing_file_dialog.cc',
|
2020-02-17 19:26:45 -05:00
|
|
|
'missing_filesource_dialog.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'missing_plugin_dialog.cc',
|
|
|
|
'mixer_group_tabs.cc',
|
|
|
|
'mixer_strip.cc',
|
|
|
|
'mixer_ui.cc',
|
2013-06-19 04:25:18 -04:00
|
|
|
'meterbridge.cc',
|
2013-06-23 10:05:52 -04:00
|
|
|
'meter_strip.cc',
|
2013-07-05 07:58:14 -04:00
|
|
|
'meter_patterns.cc',
|
2010-03-10 12:31:16 -05:00
|
|
|
'monitor_section.cc',
|
2011-01-07 12:36:01 -05:00
|
|
|
'mono_panner.cc',
|
2012-06-06 07:47:09 -04:00
|
|
|
'mono_panner_editor.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'mouse_cursors.cc',
|
2021-11-29 17:30:34 -05:00
|
|
|
'multi_region_properties_box.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'nag.cc',
|
|
|
|
'new_plugin_preset_dialog.cc',
|
2019-10-09 22:50:34 -04:00
|
|
|
'new_user_wizard.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'normalize_dialog.cc',
|
2013-04-04 00:32:52 -04:00
|
|
|
'note.cc',
|
2013-04-04 18:45:27 -04:00
|
|
|
'note_base.cc',
|
2010-09-15 14:54:04 -04:00
|
|
|
'note_player.cc',
|
2014-11-03 16:37:19 -05:00
|
|
|
'note_select_dialog.cc',
|
2013-03-21 16:16:48 -04:00
|
|
|
'nsm.cc',
|
|
|
|
'nsmclient.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'option_editor.cc',
|
|
|
|
'opts.cc',
|
|
|
|
'panner2d.cc',
|
2012-06-06 07:47:09 -04:00
|
|
|
'panner_editor.cc',
|
2011-12-26 09:05:19 -05:00
|
|
|
'panner_interface.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'panner_ui.cc',
|
2013-04-04 00:32:52 -04:00
|
|
|
'patch_change.cc',
|
2017-09-07 18:30:55 -04:00
|
|
|
'patch_change_widget.cc',
|
2020-04-07 12:38:33 -04:00
|
|
|
'pianokeyboard.cc',
|
|
|
|
'piano_key_bindings.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'piano_roll_header.cc',
|
2013-03-08 11:41:45 -05:00
|
|
|
'pingback.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'playlist_selector.cc',
|
2017-07-20 17:28:52 -04:00
|
|
|
'plugin_display.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'plugin_eq_gui.cc',
|
2021-05-26 19:02:11 -04:00
|
|
|
'plugin_manager_ui.cc',
|
2016-03-27 15:35:42 -04:00
|
|
|
'plugin_pin_dialog.cc',
|
2018-12-20 10:56:34 -05:00
|
|
|
'plugin_presets_ui.cc',
|
2019-10-24 23:09:43 -04:00
|
|
|
'plugin_scan_dialog.cc',
|
2016-05-19 10:29:39 -04:00
|
|
|
'plugin_setup_dialog.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'plugin_selector.cc',
|
|
|
|
'plugin_ui.cc',
|
2018-09-24 17:20:15 -04:00
|
|
|
'plugin_dspload_ui.cc',
|
2018-09-24 18:12:42 -04:00
|
|
|
'plugin_dspload_window.cc',
|
2024-03-24 13:54:32 -04:00
|
|
|
'plugin_window_proxy.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'port_group.cc',
|
2010-08-31 10:16:29 -04:00
|
|
|
'port_insert_ui.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'port_matrix.cc',
|
|
|
|
'port_matrix_body.cc',
|
|
|
|
'port_matrix_column_labels.cc',
|
|
|
|
'port_matrix_component.cc',
|
|
|
|
'port_matrix_grid.cc',
|
|
|
|
'port_matrix_labels.cc',
|
|
|
|
'port_matrix_row_labels.cc',
|
|
|
|
'processor_box.cc',
|
2017-05-05 07:31:49 -04:00
|
|
|
'processor_selection.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'patch_change_dialog.cc',
|
|
|
|
'progress_reporter.cc',
|
2018-10-10 05:09:24 -04:00
|
|
|
'pt_import_selector.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'public_editor.cc',
|
|
|
|
'quantize_dialog.cc',
|
|
|
|
'rc_option_editor.cc',
|
2021-02-15 18:08:02 -05:00
|
|
|
'rec_info_box.cc',
|
2020-12-06 16:05:09 -05:00
|
|
|
'recorder_group_tabs.cc',
|
2020-10-26 17:55:00 -04:00
|
|
|
'recorder_ui.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'region_editor.cc',
|
2024-04-16 21:53:30 -04:00
|
|
|
'region_fx_line.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'region_gain_line.cc',
|
|
|
|
'region_layering_order_editor.cc',
|
2022-01-17 20:55:43 -05:00
|
|
|
'region_list_base.cc',
|
2020-12-19 10:44:16 -05:00
|
|
|
'region_peak_cursor.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'region_selection.cc',
|
|
|
|
'region_view.cc',
|
|
|
|
'return_ui.cc',
|
|
|
|
'rhythm_ferret.cc',
|
|
|
|
'route_group_dialog.cc',
|
|
|
|
'route_group_menu.cc',
|
2022-01-25 17:19:20 -05:00
|
|
|
'route_list_base.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'route_params_ui.cc',
|
|
|
|
'route_processor_selection.cc',
|
|
|
|
'route_time_axis.cc',
|
|
|
|
'route_ui.cc',
|
2014-06-25 15:23:25 -04:00
|
|
|
'ruler_dialog.cc',
|
2015-07-05 08:50:02 -04:00
|
|
|
'save_as_dialog.cc',
|
2017-08-18 13:53:46 -04:00
|
|
|
'save_template_dialog.cc',
|
2010-11-09 01:03:51 -05:00
|
|
|
'search_path_option.cc',
|
2019-08-10 17:20:39 -04:00
|
|
|
'screensaver.cc',
|
2016-02-13 20:57:22 -05:00
|
|
|
'script_selector.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'selection.cc',
|
2021-11-29 17:30:34 -05:00
|
|
|
'selection_properties_box.cc',
|
2014-12-14 08:13:38 -05:00
|
|
|
'selection_memento.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'send_ui.cc',
|
2016-09-20 13:46:49 -04:00
|
|
|
'session_archive_dialog.cc',
|
2013-09-23 14:41:52 -04:00
|
|
|
'session_dialog.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'session_import_dialog.cc',
|
|
|
|
'session_metadata_dialog.cc',
|
|
|
|
'session_option_editor.cc',
|
|
|
|
'sfdb_ui.cc',
|
2011-04-19 22:48:34 -04:00
|
|
|
'shuttle_control.cc',
|
2022-10-18 10:53:04 -04:00
|
|
|
'simple_export_dialog.cc',
|
2021-11-29 17:30:34 -05:00
|
|
|
'slot_properties_box.cc',
|
2022-01-18 19:59:05 -05:00
|
|
|
'source_list_base.cc',
|
2014-05-19 15:50:37 -04:00
|
|
|
'soundcloud_export_selector.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'splash.cc',
|
2011-02-16 23:45:49 -05:00
|
|
|
'speaker_dialog.cc',
|
2019-10-09 22:50:34 -04:00
|
|
|
'startup_fsm.cc',
|
2010-08-15 12:39:51 -04:00
|
|
|
'step_editor.cc',
|
2010-08-02 17:52:21 -04:00
|
|
|
'step_entry.cc',
|
2010-11-30 15:22:43 -05:00
|
|
|
'stereo_panner.cc',
|
2012-06-06 07:47:09 -04:00
|
|
|
'stereo_panner_editor.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'streamview.cc',
|
|
|
|
'strip_silence_dialog.cc',
|
2017-03-10 17:51:39 -05:00
|
|
|
'stripable_colorpicker.cc',
|
2017-06-09 08:48:33 -04:00
|
|
|
'stripable_time_axis.cc',
|
2024-01-02 08:26:56 -05:00
|
|
|
'surround_strip.cc',
|
2013-04-04 00:32:52 -04:00
|
|
|
'sys_ex.cc',
|
2017-07-03 06:27:25 -04:00
|
|
|
'template_dialog.cc',
|
2016-05-07 13:03:12 -04:00
|
|
|
'tempo_curve.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'tempo_dialog.cc',
|
2018-02-09 10:59:39 -05:00
|
|
|
'grid_lines.cc',
|
2022-10-27 15:43:13 -04:00
|
|
|
'tempo_map_change.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'time_axis_view.cc',
|
|
|
|
'time_axis_view_item.cc',
|
|
|
|
'time_fx_dialog.cc',
|
2011-06-03 18:18:47 -04:00
|
|
|
'time_info_box.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'time_selection.cc',
|
2014-12-25 10:02:00 -05:00
|
|
|
'timers.cc',
|
2020-12-06 16:05:09 -05:00
|
|
|
'track_record_axis.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'track_selection.cc',
|
|
|
|
'track_view_list.cc',
|
2014-12-28 15:50:57 -05:00
|
|
|
'transform_dialog.cc',
|
2017-12-22 14:20:59 -05:00
|
|
|
'transport_control.cc',
|
|
|
|
'transport_control_ui.cc',
|
2018-09-18 18:52:20 -04:00
|
|
|
'transport_masters_dialog.cc',
|
2011-04-05 22:04:37 -04:00
|
|
|
'transpose_dialog.cc',
|
2021-12-12 08:25:49 -05:00
|
|
|
'trigger_clip_picker.cc',
|
2022-01-30 20:00:29 -05:00
|
|
|
'trigger_jump_dialog.cc',
|
2021-11-08 20:27:38 -05:00
|
|
|
'trigger_page.cc',
|
2022-01-17 21:39:49 -05:00
|
|
|
'trigger_region_list.cc',
|
2022-01-26 19:11:50 -05:00
|
|
|
'trigger_route_list.cc',
|
2022-01-18 20:42:09 -05:00
|
|
|
'trigger_source_list.cc',
|
2021-11-10 19:15:00 -05:00
|
|
|
'trigger_strip.cc',
|
2021-12-07 16:47:42 -05:00
|
|
|
'trigger_master.cc',
|
2021-09-07 01:00:00 -04:00
|
|
|
'trigger_ui.cc',
|
2021-07-21 19:22:09 -04:00
|
|
|
'triggerbox_ui.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'ui_config.cc',
|
|
|
|
'utils.cc',
|
2021-07-18 18:48:53 -04:00
|
|
|
'varispeed_dialog.cc',
|
2016-01-24 21:27:39 -05:00
|
|
|
'vca_master_strip.cc',
|
2011-05-02 09:38:16 -04:00
|
|
|
'verbose_cursor.cc',
|
2019-10-17 21:50:52 -04:00
|
|
|
'virtual_keyboard_window.cc',
|
2011-10-29 16:07:00 -04:00
|
|
|
'visibility_group.cc',
|
2013-05-04 22:02:05 -04:00
|
|
|
'window_manager.cc',
|
2022-01-24 18:38:32 -05:00
|
|
|
# video-timeline related sources:
|
2013-04-11 13:49:29 -04:00
|
|
|
'video_image_frame.cc',
|
|
|
|
'add_video_dialog.cc',
|
|
|
|
'editor_videotimeline.cc',
|
2016-05-21 12:44:41 -04:00
|
|
|
'vca_time_axis.cc',
|
2013-04-11 13:49:29 -04:00
|
|
|
'video_timeline.cc',
|
|
|
|
'video_monitor.cc',
|
|
|
|
'transcode_ffmpeg.cc',
|
|
|
|
'transcode_video_dialog.cc',
|
2023-01-08 11:52:20 -05:00
|
|
|
'velocity_ghost_region.cc',
|
2013-04-11 13:49:29 -04:00
|
|
|
'video_server_dialog.cc',
|
|
|
|
'utils_videotl.cc',
|
2022-03-06 11:56:00 -05:00
|
|
|
'export_video_dialog.cc'
|
2009-07-22 09:51:16 -04:00
|
|
|
]
|
|
|
|
|
2015-01-28 17:50:07 -05:00
|
|
|
def enoify (major, minor):
|
2015-11-29 11:48:21 -05:00
|
|
|
# Code names based on
|
|
|
|
# https://en.wikipedia.org/wiki/Brian_Eno_discography
|
|
|
|
#
|
|
|
|
# sort Studio albums + Collaborative albums + Compilation albums by Month/Year.
|
|
|
|
# (no Singles, no EPs, no Video Albums, no Production)
|
2015-01-28 17:50:07 -05:00
|
|
|
if major == 3:
|
|
|
|
return "\\n\\\"E-No\\\""
|
|
|
|
elif major == 4:
|
|
|
|
if minor == 0:
|
|
|
|
return "\\n\\\"No Pussyfooting\\\""
|
|
|
|
elif minor == 1:
|
|
|
|
return "\\n\\\"Here Come the Warm Jets\\\""
|
|
|
|
elif minor == 2:
|
|
|
|
return "\\n\\\"Taking Tiger Mountain\\\""
|
|
|
|
elif minor == 3:
|
|
|
|
return "\\n\\\"Lady June's Linguistic Leprosy\\\""
|
2015-08-05 18:50:54 -04:00
|
|
|
elif minor == 4:
|
|
|
|
return "\\n\\\"Discreet Music\\\""
|
|
|
|
elif minor == 5:
|
|
|
|
return "\\n\\\"Another Green World\\\""
|
|
|
|
elif minor == 6:
|
|
|
|
return "\\n\\\"Evening Star\\\""
|
2015-11-29 11:48:21 -05:00
|
|
|
elif minor == 7:
|
|
|
|
return "\\n\\\"Cluster and Eno\\\""
|
2016-05-30 15:01:16 -04:00
|
|
|
elif major == 5:
|
|
|
|
if minor == 0:
|
2015-11-29 11:48:21 -05:00
|
|
|
return "\\n\\\"Before and After Science\\\""
|
2016-05-30 15:01:16 -04:00
|
|
|
elif minor == 1:
|
|
|
|
return "\\n\\\"After the Heat\\\""
|
2016-08-17 11:03:06 -04:00
|
|
|
elif minor == 2:
|
|
|
|
return "\\n\\\"Music for Airports\\\""
|
|
|
|
elif minor == 3:
|
|
|
|
return "\\n\\\"Music for Films\\\""
|
|
|
|
elif minor == 4:
|
|
|
|
return "\\n\\\"In a Land of Clear Colours\\\""
|
2016-09-29 14:46:04 -04:00
|
|
|
elif minor == 5:
|
|
|
|
return "\\n\\\"The Plateaux of Mirror\\\""
|
|
|
|
elif minor == 6:
|
2017-02-26 09:35:40 -05:00
|
|
|
return "\\n\\\"Possible Musics\\\"" # 1980 Collaborative
|
2016-09-29 14:46:04 -04:00
|
|
|
elif minor == 7:
|
2017-02-26 09:35:40 -05:00
|
|
|
return "\\n\\\"My Life in the Bush of Ghosts\\\"" # 1981
|
|
|
|
elif minor == 8:
|
|
|
|
return "\\n\\\"Music for Airplay\\\"" # 1981 Compilation
|
|
|
|
elif minor == 9:
|
|
|
|
return "\\n\\\"On Land\\\"" # 1982
|
2020-01-24 15:15:57 -05:00
|
|
|
elif minor == 10:
|
2017-02-26 09:35:40 -05:00
|
|
|
return "\\n\\\"Atmospheres and Soundtracks\\\"" # 1983
|
|
|
|
elif minor == 11:
|
|
|
|
return "\\n\\\"More Music for Films\\\"" # 1983
|
|
|
|
elif minor == 12:
|
|
|
|
return "\\n\\\"Working Backwards\\\"" # 1984 Compilation
|
2017-09-18 13:38:54 -04:00
|
|
|
elif major == 6:
|
|
|
|
if minor == 0:
|
2017-02-26 09:35:40 -05:00
|
|
|
return "\\n\\\"The Pearl\\\"" # 1984 Collaborative
|
2017-09-18 13:38:54 -04:00
|
|
|
elif minor == 1:
|
2017-02-26 09:35:40 -05:00
|
|
|
return "\\n\\\"Begegnungen\\\"" # 1984 Compilation
|
2017-09-18 13:38:54 -04:00
|
|
|
elif minor == 2:
|
|
|
|
return "\\n\\\"Thursday Afternoon\\\"" # 1985
|
|
|
|
elif minor == 3:
|
2020-01-24 15:15:57 -05:00
|
|
|
return "\\n\\\"Hybrid\\\"" # 1985 Collaborative
|
2020-11-22 14:22:42 -05:00
|
|
|
elif minor == 4 or minor == 5: # (there was on 6.4 release)
|
2020-01-24 15:15:57 -05:00
|
|
|
return "\\n\\\"Old Land\\\"" # 1985 Compilation
|
2021-04-06 19:43:21 -04:00
|
|
|
elif minor == 6 or minor == 7: # still on the desert island
|
2020-11-18 16:33:00 -05:00
|
|
|
return "\\n\\\"Desert Island Selection\\\"" # 1986 Compilation
|
2021-08-11 11:13:08 -04:00
|
|
|
else:
|
2021-06-22 19:02:13 -04:00
|
|
|
return "\\n\\\"After Bach\\\"" # the odd one out
|
2020-11-18 16:33:00 -05:00
|
|
|
elif major == 7:
|
|
|
|
if minor == 0:
|
|
|
|
return "\\n\\\"More Blank Than Frank\\\"" # 1986 Compilation
|
|
|
|
if minor == 1:
|
|
|
|
return "\\n\\\"Music for Films III\\\"" # 1988 Collaborative
|
|
|
|
if minor == 2:
|
|
|
|
return "\\n\\\"Wrong Way Up\\\"" # 1990 Collaborative
|
|
|
|
if minor == 3:
|
|
|
|
return "\\n\\\"Nerve Net\\\"" # 1992
|
|
|
|
if minor == 4:
|
|
|
|
return "\\n\\\"The Shutov Assembly\\\"" # 1992
|
|
|
|
if minor == 5:
|
|
|
|
return "\\n\\\"Neroli\\\"" # 1993
|
2023-09-11 11:13:06 -04:00
|
|
|
elif major == 8:
|
|
|
|
if minor == 0:
|
2023-06-26 07:16:55 -04:00
|
|
|
return "\\n\\\"Spinner\\\"" # 1995
|
2023-09-11 11:13:06 -04:00
|
|
|
if minor == 1:
|
2023-06-26 07:16:55 -04:00
|
|
|
return "\\n\\\"The Drop\\\"" # 1997
|
2023-09-11 11:13:06 -04:00
|
|
|
if minor == 2:
|
2023-06-26 07:16:55 -04:00
|
|
|
return "\\n\\\"Tracks and Traces\\\"" # 1997
|
2023-09-11 11:13:06 -04:00
|
|
|
if minor == 3:
|
2023-06-26 07:16:55 -04:00
|
|
|
return "\\n\\\"Music for White Cube\\\"" # 1997
|
2024-02-18 13:04:24 -05:00
|
|
|
if minor == 4:
|
|
|
|
return "\\n\\\"Music for the Marble Palace\\\"" # 1998
|
|
|
|
if minor == 5:
|
|
|
|
return "\\n\\\"I Dormienti\\\"" # 1999
|
|
|
|
if minor == 6:
|
|
|
|
return "\\n\\\"Kite Stories\\\"" # 1999
|
|
|
|
if minor == 7:
|
|
|
|
return "\\n\\\"Sonora Portraits\\\"" # 1999 Compilation
|
|
|
|
if minor == 8:
|
|
|
|
return "\\n\\\"Music for Civic Recovery Centre\\\"" # 2000
|
|
|
|
if minor == 9:
|
|
|
|
return "\\n\\\"Music for Onmyo-Ji\\\"" # 2000 Collaborative
|
|
|
|
if minor == 10:
|
|
|
|
return "\\n\\\"Compact Forest Proposal\\\"" # 2001
|
|
|
|
if minor == 11:
|
|
|
|
return "\\n\\\"Drawn from Life\\\"" # 2001 Collaborative
|
2015-01-28 17:50:07 -05:00
|
|
|
return "\\\"\\\""
|
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
def options(opt):
|
2022-01-25 11:43:36 -05:00
|
|
|
pass
|
2009-02-25 18:59:55 -05:00
|
|
|
|
|
|
|
def configure(conf):
|
2022-01-23 16:46:10 -05:00
|
|
|
conf.load('misc') # make 'command-output' available
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2011-05-16 14:02:38 -04:00
|
|
|
# TODO: Insert a sanity check for on OS X to ensure CoreAudio is present
|
|
|
|
|
2013-10-26 10:22:05 -04:00
|
|
|
autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F',
|
|
|
|
mandatory=True)
|
2011-05-16 14:02:38 -04:00
|
|
|
autowaf.check_pkg(conf, 'flac', uselib_store='FLAC',
|
|
|
|
atleast_version='1.2.1')
|
2011-09-29 15:58:05 -04:00
|
|
|
autowaf.check_pkg(conf, 'gthread-2.0', uselib_store='GTHREAD',
|
2011-05-16 14:02:38 -04:00
|
|
|
atleast_version='2.10.1')
|
2011-04-22 18:15:21 -04:00
|
|
|
autowaf.check_pkg(conf, 'ogg', uselib_store='OGG', atleast_version='1.1.2')
|
2012-12-18 11:42:26 -05:00
|
|
|
autowaf.check_pkg(conf, 'x11', uselib_store='X11', atleast_version='1.1', mandatory=False)
|
2016-10-13 21:30:45 -04:00
|
|
|
autowaf.check_pkg(conf, 'pangoft2', uselib_store='PANGOFT2', atleast_version='1.36.8', mandatory=False)
|
2013-01-29 10:25:30 -05:00
|
|
|
autowaf.check_pkg(conf, 'fontconfig', uselib_store='FONTCONFIG')
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2023-12-13 00:45:00 -05:00
|
|
|
if not conf.is_defined('YTK'):
|
|
|
|
autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK', atleast_version='2.18')
|
|
|
|
autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM', atleast_version='2.18', mandatory=True)
|
|
|
|
|
2019-12-09 17:27:04 -05:00
|
|
|
if conf.env.CC_NAME == 'gcc' and Options.options.strict:
|
|
|
|
conf.define('GLIB_DISABLE_DEPRECATION_WARNINGS', 1)
|
|
|
|
for var in ['CFLAGS', 'CXXFLAGS']:
|
|
|
|
for lib in ['GTK', 'GTKMM']:
|
|
|
|
for d in conf.env['INCLUDES_' + lib]:
|
|
|
|
conf.env.append_value(var, ['-isystem', d])
|
2016-04-27 19:58:54 -04:00
|
|
|
|
|
|
|
if sys.platform == 'darwin':
|
2022-08-01 18:14:32 -04:00
|
|
|
if conf.env['build_target'] in ['bigsur', 'monterey']:
|
|
|
|
# we cannot execute test code when x-compiling ARM on Intel,
|
Fix typos
Found via `codespell -q 3 -S *.po,./.git,./share/patchfiles,./libs,./msvc_extra_headers,./share/web_surfaces,*.patch -L acount,ba,buss,busses,discreet,doubleclick,hsi,ontop,retrn,ro,scrollin,seh,siz,sord,sur,te,trough,ue`
2022-09-21 21:01:23 -04:00
|
|
|
# besides, NSWindowWillStartLiveResizeNotification is definitely available
|
2022-08-01 18:14:32 -04:00
|
|
|
conf.define('HAVE_COCOA_LIVE_RESIZING', 1)
|
|
|
|
else:
|
|
|
|
conf.check(
|
|
|
|
msg ='Checking for Cocoa live resizing constants',
|
|
|
|
fragment = '#include <AppKit/NSWindow.h>\n int main(void) { (void) NSWindowWillStartLiveResizeNotification; return 0; }\n',
|
|
|
|
define_name = 'HAVE_COCOA_LIVE_RESIZING',
|
|
|
|
uselib_store = 'COCOA_LIVE_RESIZING',
|
|
|
|
compiler = 'cc',
|
|
|
|
compile_filename = 'test.m',
|
|
|
|
execute = True,
|
|
|
|
mandatory = False)
|
2016-04-27 19:58:54 -04:00
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
conf.write_config_header('gtk2ardour-config.h', remove=False)
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2014-09-06 11:59:53 -04:00
|
|
|
bak = conf.env['define_key']
|
2022-10-15 08:05:36 -04:00
|
|
|
conf.define('VERSIONSTRING', conf.env['VERSION'])
|
2015-01-28 17:50:07 -05:00
|
|
|
conf.define('CODENAME', enoify(int(conf.env['MAJOR']), int(conf.env['MINOR'])))
|
|
|
|
conf.env['define_key'] = ['VERSIONSTRING', 'CODENAME' ]
|
2014-09-06 11:59:53 -04:00
|
|
|
conf.write_config_header('gtk2ardour-version.h')
|
2022-01-25 14:43:15 -05:00
|
|
|
conf.env['define_key'] = bak
|
2014-09-06 11:59:53 -04:00
|
|
|
|
2009-02-25 18:59:55 -05:00
|
|
|
def build(bld):
|
2015-04-11 10:35:28 -04:00
|
|
|
I18N_PACKAGE = 'gtk2_ardour' + bld.env['MAJOR']
|
2013-06-11 11:37:52 -04:00
|
|
|
|
2016-03-20 15:52:12 -04:00
|
|
|
# Tool to dump lua-bindings (of gtk2ardour + libs)
|
|
|
|
if re.search ("linux", sys.platform) != None and bld.env['LUABINDINGDOC']:
|
|
|
|
obj = bld (features = 'cxx c cxxprogram')
|
|
|
|
obj.install_path = None
|
|
|
|
obj.source = list(gtk2_ardour_sources)
|
|
|
|
obj.target = 'luadoc'
|
2019-11-02 23:11:27 -04:00
|
|
|
obj.includes = ['.', '../libs', '../libs/vst3']
|
2016-03-20 15:52:12 -04:00
|
|
|
obj.use = [
|
|
|
|
'libpbd',
|
|
|
|
'libardour',
|
|
|
|
'libardour_cp',
|
2017-09-24 12:03:54 -04:00
|
|
|
'libtemporal',
|
2016-03-20 15:52:12 -04:00
|
|
|
'libmidipp',
|
|
|
|
'libgtkmm2ext',
|
|
|
|
'libcanvas',
|
2017-07-17 14:12:33 -04:00
|
|
|
'libwaveview',
|
2017-07-15 11:38:28 -04:00
|
|
|
'libwidgets',
|
2016-03-20 15:52:12 -04:00
|
|
|
'libptformat',
|
|
|
|
]
|
|
|
|
obj.defines = [
|
|
|
|
'NOMAIN',
|
|
|
|
'PACKAGE="' + I18N_PACKAGE + '"',
|
|
|
|
'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',
|
|
|
|
'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"',
|
|
|
|
'LOCALEDIR="' + os.path.normpath(bld.env['LOCALEDIR']) + '"',
|
|
|
|
]
|
|
|
|
obj.linkflags = ''
|
2023-12-13 00:45:00 -05:00
|
|
|
obj.uselib = 'UUID FLAC FONTCONFIG GTHREAD GTK OGG PANGOMM CURL DL CANVAS FFTW3F LO TAGLIB XML LILV RUBBERBAND AUBIO LRDF ARCHIVE VAMPSDK VAMPHOSTSDK'
|
2016-03-20 15:52:12 -04:00
|
|
|
obj.source += [ 'luadoc.cc', 'bundle_env_linux.cc' ]
|
2022-12-28 14:04:17 -05:00
|
|
|
obj.use += [ 'X11' ]
|
2023-12-13 00:45:00 -05:00
|
|
|
if bld.is_defined('YTK'):
|
|
|
|
obj.use += [ 'libytk', 'libytkmm' ]
|
|
|
|
obj.uselib += ' GLIBMM GIOMM PANGOMM PANGOFT2 LIBPNG'
|
|
|
|
else:
|
|
|
|
obj.uselib += ' GTKMM'
|
2024-02-14 18:33:34 -05:00
|
|
|
|
2024-02-18 14:38:33 -05:00
|
|
|
if False and bld.is_defined('USE_EXTERNAL_LIBS'):
|
2024-02-14 18:33:34 -05:00
|
|
|
obj.uselib += ' LIBAAF'
|
|
|
|
else:
|
|
|
|
obj.use.extend (['libaaf'])
|
|
|
|
|
2023-05-04 15:31:13 -04:00
|
|
|
if bld.is_defined('HAVE_USB'):
|
|
|
|
obj.uselib += ' USB'
|
2016-03-20 15:52:12 -04:00
|
|
|
if bld.is_defined('HAVE_SUIL'):
|
|
|
|
obj.source += [ 'lv2_plugin_ui.cc' ]
|
2023-12-13 00:45:00 -05:00
|
|
|
if bld.is_defined('YTK'):
|
|
|
|
obj.use += [ 'libsuil' ]
|
|
|
|
else:
|
|
|
|
obj.uselib += ' SUIL'
|
2016-03-20 15:52:12 -04:00
|
|
|
if bld.is_defined('LXVST_SUPPORT'):
|
|
|
|
obj.source += [ 'vst_plugin_ui.cc' ]
|
|
|
|
obj.source += [ 'linux_vst_gui_support.cc', 'lxvst_plugin_ui.cc' ]
|
|
|
|
obj.defines += [ 'LXVST_SUPPORT' ]
|
|
|
|
|
2020-08-09 19:25:10 -04:00
|
|
|
if bld.is_defined('VST3_SUPPORT'):
|
|
|
|
obj.source += [ 'vst3_plugin_ui.cc' ]
|
|
|
|
if sys.platform == 'darwin':
|
|
|
|
obj.source += [ 'vst3_nsview_plugin_ui.mm' ]
|
|
|
|
elif bld.env['build_target'] == 'mingw':
|
|
|
|
obj.source += [ 'vst3_hwnd_plugin_ui.cc' ]
|
|
|
|
else:
|
|
|
|
obj.source += [ 'vst3_x11_plugin_ui.cc' ]
|
|
|
|
|
2017-07-15 11:38:28 -04:00
|
|
|
# # Tool to test libcanvas
|
|
|
|
# if re.search ("linux", sys.platform) != None and bld.env['CANVASTESTUI']:
|
|
|
|
# obj = bld (features = 'cxx c cxxprogram')
|
|
|
|
# obj.install_path = None
|
|
|
|
# obj.source = list(gtk2_ardour_sources)
|
|
|
|
# obj.source = [ 'ardour_button.cc', 'ui_config.cc', 'tooltips.cc' ]
|
|
|
|
# obj.target = 'canvas_test'
|
|
|
|
# obj.includes = ['.', '../libs']
|
|
|
|
# obj.use = [
|
|
|
|
# 'libpbd',
|
|
|
|
# 'libardour',
|
|
|
|
# 'libardour_cp',
|
2017-09-24 12:03:54 -04:00
|
|
|
# 'libtemporal',
|
2017-07-15 11:38:28 -04:00
|
|
|
# 'libmidipp',
|
|
|
|
# 'libgtkmm2ext',
|
|
|
|
# 'libcanvas',
|
|
|
|
# 'libptformat',
|
|
|
|
# ]
|
|
|
|
# obj.defines = [
|
|
|
|
# 'NOMAIN',
|
|
|
|
# 'PACKAGE="' + I18N_PACKAGE + '"',
|
|
|
|
# 'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',
|
|
|
|
# 'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"',
|
|
|
|
# 'LOCALEDIR="' + os.path.normpath(bld.env['LOCALEDIR']) + '"',
|
|
|
|
# ]
|
|
|
|
# obj.linkflags = ''
|
|
|
|
# obj.uselib = 'UUID FLAC FONTCONFIG GLIBMM GTHREAD GTK OGG CURL DL GTKMM CANVAS FFTW3F LO TAGLIB XML '
|
|
|
|
# # obj.source += [ 'canvas_test.cc', ]
|
|
|
|
# obj.source += [ 'toolbar_test.cc', 'enums.cc']
|
2016-12-11 09:45:42 -05:00
|
|
|
|
2021-06-03 12:12:29 -04:00
|
|
|
# executable version of the GTK GUI
|
|
|
|
if bld.env['build_target'] == 'mingw':
|
|
|
|
obj = bld (features = 'cxx c cxxprogram winres')
|
2011-04-22 18:15:21 -04:00
|
|
|
else:
|
2021-06-03 12:12:29 -04:00
|
|
|
obj = bld (features = 'cxx c cxxprogram')
|
|
|
|
|
|
|
|
# operate on copy to avoid adding sources twice
|
|
|
|
obj.source = list(gtk2_ardour_sources)
|
2022-10-15 08:05:36 -04:00
|
|
|
obj.target = 'ardour-' + bld.env['VERSION']
|
2021-06-03 12:12:29 -04:00
|
|
|
obj.includes = ['.']
|
2013-12-22 13:39:57 -05:00
|
|
|
|
2021-06-03 12:12:29 -04:00
|
|
|
if bld.is_defined('WINDOWS_VST_SUPPORT'):
|
|
|
|
obj.includes += [ '../libs/fst' ]
|
2014-02-21 21:06:33 -05:00
|
|
|
|
2013-12-22 13:39:57 -05:00
|
|
|
# at this point, "obj" refers to either the normal native executable
|
|
|
|
# OR the shared library built for use with wine on linux.
|
|
|
|
|
|
|
|
obj.use = [ 'libpbd',
|
|
|
|
'libardour',
|
|
|
|
'libardour_cp',
|
2017-09-24 12:03:54 -04:00
|
|
|
'libtemporal',
|
2013-12-22 13:39:57 -05:00
|
|
|
'libmidipp',
|
|
|
|
'libgtkmm2ext',
|
2013-12-23 15:35:49 -05:00
|
|
|
'libcanvas',
|
2017-07-17 14:12:33 -04:00
|
|
|
'libwaveview',
|
2017-07-15 11:38:28 -04:00
|
|
|
'libwidgets',
|
2015-07-31 23:41:26 -04:00
|
|
|
'libptformat',
|
2013-12-22 13:39:57 -05:00
|
|
|
]
|
2012-02-29 15:16:06 -05:00
|
|
|
|
2013-12-27 14:29:06 -05:00
|
|
|
obj.defines = [
|
2011-11-21 17:24:56 -05:00
|
|
|
'PACKAGE="' + I18N_PACKAGE + '"',
|
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
|
|
|
]
|
2014-04-29 16:06:32 -04:00
|
|
|
obj.install_path = bld.env['DLLDIR']
|
2015-10-18 08:22:55 -04:00
|
|
|
obj.linkflags = ''
|
2023-12-13 00:45:00 -05:00
|
|
|
obj.uselib = 'UUID FLAC FONTCONFIG GTHREAD OGG PANGOMM CURL DL CANVAS FFTW3F LO TAGLIB XML LILV RUBBERBAND AUBIO LRDF ARCHIVE VAMPSDK VAMPHOSTSDK'
|
2013-11-29 22:31:29 -05:00
|
|
|
|
2023-12-13 00:45:00 -05:00
|
|
|
if bld.is_defined('YTK'):
|
|
|
|
obj.use += [ 'libytk', 'libytkmm' ]
|
|
|
|
obj.uselib += ' GLIBMM GIOMM PANGOFT2 LIBPNG'
|
|
|
|
else:
|
|
|
|
obj.uselib += ' GTKMM GTK'
|
2024-02-14 18:33:34 -05:00
|
|
|
|
2024-02-20 13:11:32 -05:00
|
|
|
if False and bld.is_defined('USE_EXTERNAL_LIBS'):
|
2024-02-14 18:33:34 -05:00
|
|
|
obj.uselib += ' LIBAAF'
|
|
|
|
else:
|
|
|
|
obj.use.extend (['libaaf'])
|
|
|
|
|
2023-05-04 15:31:13 -04:00
|
|
|
if bld.is_defined('HAVE_USB'):
|
|
|
|
obj.uselib += ' USB'
|
2011-04-22 18:15:21 -04:00
|
|
|
if sys.platform == 'darwin':
|
2015-10-27 13:43:31 -04:00
|
|
|
obj.uselib += ' AUDIOUNITS OSX '
|
2013-04-04 00:32:52 -04:00
|
|
|
obj.use += ' libappleutility'
|
2014-03-02 11:30:51 -05:00
|
|
|
obj.source += [ 'cocoacarbon.mm', 'bundle_env_cocoa.cc' ]
|
2014-05-06 13:14:18 -04:00
|
|
|
elif bld.env['build_target'] == 'mingw':
|
2014-03-02 11:30:51 -05:00
|
|
|
obj.source += [ 'bundle_env_mingw.cc' ]
|
2014-10-04 20:12:25 -04:00
|
|
|
obj.source += [ 'windows_icon.rc' ]
|
2014-03-02 11:30:51 -05:00
|
|
|
else:
|
|
|
|
obj.source += [ 'bundle_env_linux.cc' ]
|
2022-12-28 14:04:17 -05:00
|
|
|
obj.use += [ 'X11' ]
|
2014-03-02 11:30:51 -05:00
|
|
|
|
2011-05-16 14:02:38 -04:00
|
|
|
obj.includes += ['../libs']
|
2019-11-02 23:11:27 -04:00
|
|
|
obj.includes += ['../libs/vst3']
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2014-01-10 16:07:57 -05:00
|
|
|
if bld.env['build_target'] == 'mingw':
|
2015-10-18 08:31:04 -04:00
|
|
|
obj.linkflags += ' -mwindows'
|
2016-10-13 21:30:45 -04:00
|
|
|
obj.use += [ 'PANGOFT2' ]
|
2014-01-10 16:07:57 -05:00
|
|
|
|
2011-09-29 16:29:06 -04:00
|
|
|
if bld.is_defined('HAVE_SUIL'):
|
2011-05-15 19:10:13 -04:00
|
|
|
obj.source += [ 'lv2_plugin_ui.cc' ]
|
2012-10-04 18:21:59 -04:00
|
|
|
obj.use += [ 'SUIL' ]
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2015-10-17 20:44:26 -04:00
|
|
|
if bld.is_defined('HAVE_FFTW35F') and bld.env['build_target'] != 'mingw':
|
2016-01-09 13:03:43 -05:00
|
|
|
bld.env['LIB_FFTW3F'] += ['fftw3f_threads']
|
2015-10-17 13:23:39 -04:00
|
|
|
|
2012-10-04 18:21:59 -04:00
|
|
|
if bld.is_defined('NEED_INTL'):
|
2015-10-18 08:22:55 -04:00
|
|
|
obj.linkflags += ' -lintl'
|
2012-10-04 18:21:59 -04:00
|
|
|
|
2011-11-21 12:42:29 -05:00
|
|
|
if bld.is_defined('WINDOWS_VST_SUPPORT'):
|
|
|
|
obj.source += [ 'windows_vst_plugin_ui.cc' ]
|
|
|
|
obj.defines += [ 'WINDOWS_VST_SUPPORT' ]
|
2015-11-29 11:52:42 -05:00
|
|
|
|
2011-09-30 12:22:04 -04:00
|
|
|
if bld.is_defined('LXVST_SUPPORT'):
|
2011-11-23 14:31:04 -05:00
|
|
|
obj.source += [ 'linux_vst_gui_support.cc', 'lxvst_plugin_ui.cc' ]
|
2011-09-20 16:29:47 -04:00
|
|
|
obj.defines += [ 'LXVST_SUPPORT' ]
|
2011-11-22 19:55:25 -05:00
|
|
|
|
2016-11-13 10:32:30 -05:00
|
|
|
if bld.is_defined('MACVST_SUPPORT'):
|
|
|
|
obj.source += [ 'mac_vst_plugin_ui.mm' ]
|
|
|
|
obj.defines += [ 'MACVST_SUPPORT' ]
|
|
|
|
|
|
|
|
if bld.is_defined('WINDOWS_VST_SUPPORT') or bld.is_defined('LXVST_SUPPORT') or bld.is_defined ('MACVST_SUPPORT'):
|
2011-11-22 19:55:25 -05:00
|
|
|
obj.source += [ 'vst_plugin_ui.cc' ]
|
2015-11-29 11:52:42 -05:00
|
|
|
|
2011-09-30 12:22:04 -04:00
|
|
|
if bld.is_defined('PHONE_HOME'):
|
2011-05-16 14:02:38 -04:00
|
|
|
obj.defines += [ 'PHONE_HOME' ]
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2011-10-18 11:08:42 -04:00
|
|
|
if bld.is_defined('HAVE_COREAUDIO'):
|
2011-04-22 18:15:21 -04:00
|
|
|
TaskGen.task_gen.mappings['.mm'] = TaskGen.task_gen.mappings['.cc']
|
2011-09-29 15:17:54 -04:00
|
|
|
obj.use += ' libappleutility '
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2011-12-02 15:03:03 -05:00
|
|
|
if bld.is_defined('AUDIOUNIT_SUPPORT'):
|
|
|
|
obj.source += [ 'au_pluginui.mm' ]
|
|
|
|
|
2020-08-09 19:25:10 -04:00
|
|
|
if bld.is_defined('VST3_SUPPORT'):
|
|
|
|
obj.source += [ 'vst3_plugin_ui.cc' ]
|
|
|
|
if sys.platform == 'darwin':
|
|
|
|
obj.source += [ 'vst3_nsview_plugin_ui.mm' ]
|
|
|
|
elif bld.env['build_target'] == 'mingw':
|
|
|
|
obj.source += [ 'vst3_hwnd_plugin_ui.cc' ]
|
|
|
|
else:
|
|
|
|
obj.source += [ 'vst3_x11_plugin_ui.cc' ]
|
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
# Wrappers
|
|
|
|
|
|
|
|
wrapper_subst_dict = {
|
|
|
|
'INSTALL_PREFIX' : bld.env['PREFIX'],
|
2014-04-10 10:23:16 -04:00
|
|
|
'LIBDIR' : os.path.normpath(bld.env['DLLDIR']),
|
2012-05-18 13:24:06 -04:00
|
|
|
'DATADIR' : os.path.normpath(bld.env['DATADIR']),
|
2014-06-03 08:27:36 -04:00
|
|
|
'CONFDIR' : os.path.normpath(bld.env['CONFDIR']),
|
2011-09-29 15:17:54 -04:00
|
|
|
'LIBS' : 'build/libs',
|
2022-10-15 08:05:36 -04:00
|
|
|
'VERSION' : bld.env['VERSION'],
|
|
|
|
'EXECUTABLE' : 'build/gtk2_ardour/ardour-' + bld.env['VERSION']
|
2011-04-22 18:15:21 -04:00
|
|
|
}
|
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
def set_subst_dict(obj, dict):
|
|
|
|
for i in dict:
|
|
|
|
setattr(obj, i, dict[i])
|
|
|
|
|
2014-12-28 04:20:25 -05:00
|
|
|
obj = bld(features = 'subst')
|
2011-04-22 18:15:21 -04:00
|
|
|
obj.source = 'ardev_common.sh.in'
|
|
|
|
obj.target = 'ardev_common_waf.sh'
|
2011-09-29 15:17:54 -04:00
|
|
|
obj.chmod = Utils.O755
|
2011-04-22 18:15:21 -04:00
|
|
|
obj.dict = wrapper_subst_dict
|
2011-09-29 15:17:54 -04:00
|
|
|
set_subst_dict(obj, wrapper_subst_dict)
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
obj = bld(features = 'subst')
|
2011-04-22 18:15:21 -04:00
|
|
|
obj.source = 'ardour.sh.in'
|
2022-10-15 18:59:21 -04:00
|
|
|
obj.target = 'ardour' + bld.env['MAJOR']
|
2011-09-29 15:17:54 -04:00
|
|
|
obj.chmod = Utils.O755
|
2011-04-22 18:15:21 -04:00
|
|
|
obj.dict = wrapper_subst_dict
|
|
|
|
obj.install_path = bld.env['BINDIR']
|
2011-09-29 15:17:54 -04:00
|
|
|
set_subst_dict(obj, wrapper_subst_dict)
|
2011-04-22 18:15:21 -04:00
|
|
|
|
|
|
|
# Font configuration
|
|
|
|
|
2014-12-08 11:00:00 -05:00
|
|
|
font_subst_dict = {}
|
2011-04-22 18:15:21 -04:00
|
|
|
font_sizes = {}
|
|
|
|
|
|
|
|
# Set up font sizes
|
2015-10-27 13:43:31 -04:00
|
|
|
if sys.platform == 'darwin':
|
2012-01-09 11:13:16 -05:00
|
|
|
basefont = ""
|
2011-04-22 18:15:21 -04:00
|
|
|
font_sizes = {
|
|
|
|
'SMALLER' : '9',
|
|
|
|
'SMALL' : '10',
|
|
|
|
'NORMAL' : '11',
|
2013-08-09 00:50:41 -04:00
|
|
|
'BIG' : '13',
|
2013-03-05 08:51:14 -05:00
|
|
|
'BIGGER' : '17',
|
2011-04-22 18:15:21 -04:00
|
|
|
'LARGE' : '18',
|
|
|
|
'LARGER' : '28',
|
|
|
|
'HUGER' : '36',
|
2012-12-10 20:43:25 -05:00
|
|
|
'MASSIVE' : '60',
|
2012-12-12 09:50:10 -05:00
|
|
|
}
|
2017-08-05 18:01:23 -04:00
|
|
|
if bld.env['build_target'] in ['panther', 'tiger', 'leopard'] or (Options.options.ppc and bld.env['build_target'] == 'snowleopard'):
|
2017-08-05 16:32:13 -04:00
|
|
|
# CTFontManagerRegisterFontsForURL for ArdourMono is 10.6 or newer
|
|
|
|
# "Lucida Grande" is not mono-spaced, but works for most cases, except big-clock-window
|
|
|
|
font_names = {
|
|
|
|
'MONOSPACE' : 'Monaco',
|
|
|
|
'CLOCKFONT' : 'Lucida Grande',
|
|
|
|
}
|
|
|
|
else:
|
|
|
|
font_names = {
|
|
|
|
'MONOSPACE' : 'Monaco',
|
|
|
|
'CLOCKFONT' : 'ArdourMono',
|
|
|
|
}
|
|
|
|
else: # Linux/X11 & Windows fonts
|
2011-04-22 18:15:21 -04:00
|
|
|
basefont = '' # unspecified - use system defaults
|
|
|
|
font_sizes = {
|
2014-12-21 11:55:03 -05:00
|
|
|
'SMALLER' : '6',
|
|
|
|
'SMALL' : '7',
|
|
|
|
'NORMAL' : '8',
|
|
|
|
'BIG' : '11',
|
|
|
|
'BIGGER' : '13.5',
|
|
|
|
'LARGE' : '14.5',
|
|
|
|
'LARGER' : '19',
|
|
|
|
'HUGER' : '27',
|
|
|
|
'MASSIVE' : '48',
|
2012-12-12 09:50:10 -05:00
|
|
|
}
|
|
|
|
font_names = {
|
2013-01-30 08:13:57 -05:00
|
|
|
'MONOSPACE' : 'ArdourMono',
|
2015-04-06 15:01:59 -04:00
|
|
|
'CLOCKFONT' : 'ArdourMono',
|
2012-12-12 09:50:10 -05:00
|
|
|
}
|
2011-03-16 12:32:56 -04:00
|
|
|
|
2011-06-07 12:42:48 -04:00
|
|
|
# Set up font substitution dictionary
|
|
|
|
# @FONT_XXXX@
|
2011-04-22 18:15:21 -04:00
|
|
|
for style in ['', 'BOLD', 'ITALIC']:
|
|
|
|
for sizename,points in iter(font_sizes.items()):
|
|
|
|
if (len (style)):
|
|
|
|
key = "_".join (['FONT',style,sizename])
|
|
|
|
fontstyle = " ".join ([basefont,style.lower(),points])
|
|
|
|
else:
|
|
|
|
key = "_".join (['FONT',sizename])
|
|
|
|
fontstyle = " ".join ([basefont,points])
|
2015-11-29 11:52:42 -05:00
|
|
|
|
2014-12-08 11:00:00 -05:00
|
|
|
font_subst_dict[key] = fontstyle
|
2015-11-29 11:52:42 -05:00
|
|
|
|
2011-06-07 12:42:48 -04:00
|
|
|
# @FONT_SIZE_XXXX@
|
|
|
|
for sizename,points in iter(font_sizes.items()):
|
2022-01-24 18:38:32 -05:00
|
|
|
key = "_".join (['FONT_SIZE',sizename])
|
|
|
|
font_subst_dict[key] = points
|
2011-06-07 12:42:48 -04:00
|
|
|
|
2012-12-12 09:50:10 -05:00
|
|
|
# various font names, eg @BOLD_MONOSPACE@
|
|
|
|
for font_sym,text in iter(font_names.items()):
|
|
|
|
key = font_sym
|
2014-12-08 11:00:00 -05:00
|
|
|
font_subst_dict[key] = text
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2019-12-04 16:59:51 -05:00
|
|
|
font_subst_dict['FONTFAMILY'] = ''
|
2014-12-08 11:00:00 -05:00
|
|
|
# RC file
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
obj = bld(features = 'subst')
|
2014-12-08 11:00:00 -05:00
|
|
|
obj.source = [ 'clearlooks.rc.in' ]
|
|
|
|
obj.target = 'clearlooks.rc'
|
2014-04-10 10:23:16 -04:00
|
|
|
obj.install_path = bld.env['CONFDIR']
|
2014-12-08 11:00:00 -05:00
|
|
|
set_subst_dict(obj, font_subst_dict)
|
2011-06-09 11:44:09 -04:00
|
|
|
|
2019-12-04 16:59:51 -05:00
|
|
|
font_subst_dict['FONTFAMILY'] = 'ArdourSans'
|
|
|
|
|
|
|
|
obj = bld(features = 'subst')
|
|
|
|
obj.source = [ 'clearlooks.rc.in' ]
|
|
|
|
obj.target = 'clearlooks.ardoursans.rc'
|
|
|
|
obj.install_path = bld.env['CONFDIR']
|
|
|
|
set_subst_dict(obj, font_subst_dict)
|
|
|
|
|
2014-06-13 12:20:33 -04:00
|
|
|
obj = bld(features = 'subst')
|
2014-09-07 10:48:09 -04:00
|
|
|
obj.source = [ 'default_ui_config.in' ]
|
|
|
|
obj.target = 'default_ui_config'
|
2014-12-08 11:00:00 -05:00
|
|
|
obj.install_path = bld.env['CONFDIR']
|
|
|
|
set_subst_dict(obj, font_subst_dict)
|
2014-06-13 12:20:33 -04:00
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
# Menus
|
|
|
|
menus_argv = []
|
2015-10-27 14:35:55 -04:00
|
|
|
if sys.platform == 'darwin':
|
|
|
|
menus_argv = [ '-E', '-P', '-D__APPLE__', '-' ]
|
2011-04-22 18:15:21 -04:00
|
|
|
else:
|
|
|
|
menus_argv = [ '-E', '-P' ]
|
2013-03-12 17:00:09 -04:00
|
|
|
|
2019-04-09 07:17:15 -04:00
|
|
|
if bld.is_defined('MIXBUS'):
|
|
|
|
menus_argv += [ '-DMIXBUS' ]
|
|
|
|
|
2015-07-31 23:41:26 -04:00
|
|
|
if bld.is_defined('PTFORMAT'):
|
|
|
|
menus_argv += [ '-DPTFORMAT' ]
|
|
|
|
|
2024-01-02 08:26:56 -05:00
|
|
|
if bld.is_defined('MIXBUS') or Options.options.debug:
|
|
|
|
menus_argv += [ '-DVAPOR' ]
|
|
|
|
|
2014-04-10 07:31:26 -04:00
|
|
|
# always build all versions of the menu definitions
|
|
|
|
# so that we can try them out with different program builds.
|
2024-04-25 11:26:33 -04:00
|
|
|
|
|
|
|
obj = bld(features = 'command-output')
|
|
|
|
obj.command = 'cpp'
|
|
|
|
obj.command_is_external = True
|
|
|
|
obj.no_inputs = True
|
|
|
|
obj.argv = menus_argv
|
|
|
|
obj.dep_vars = ['PTFORMAT', 'MIXBUS', 'WINDOWS', 'debug']
|
|
|
|
if bld.is_defined('LIVETRAX'):
|
|
|
|
obj.stdin = 'livetrax.menus.in'
|
|
|
|
else:
|
|
|
|
obj.stdin = 'ardour.menus.in'
|
|
|
|
obj.stdout = 'ardour.menus'
|
|
|
|
bld.install_files (bld.env['CONFDIR'], 'ardour.menus')
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2015-10-22 11:21:01 -04:00
|
|
|
# Freedesktop
|
2015-10-22 12:07:55 -04:00
|
|
|
freedesktop_subst_dict = {
|
2022-10-15 18:59:21 -04:00
|
|
|
'ARDOUR_EXEC' : bld.env['lwrcase_dirname'],
|
|
|
|
'ARDOUR_ICON' : bld.env['lwrcase_dirname'],
|
2022-10-15 08:05:36 -04:00
|
|
|
'VERSION': bld.env['VERSION'],
|
2022-10-15 18:59:21 -04:00
|
|
|
'DATE': bld.env['DATE'],
|
2015-10-22 12:07:55 -04:00
|
|
|
}
|
|
|
|
|
2015-10-22 11:21:01 -04:00
|
|
|
if bld.env['FREEDESKTOP']:
|
|
|
|
obj = bld(features = 'subst')
|
|
|
|
obj.source = 'ardour.desktop.in'
|
2022-10-15 18:59:21 -04:00
|
|
|
obj.target = bld.env['lwrcase_dirname'] + '.desktop'
|
2015-10-22 11:21:01 -04:00
|
|
|
obj.chmod = Utils.O644
|
2015-10-22 12:07:55 -04:00
|
|
|
obj.dict = freedesktop_subst_dict
|
|
|
|
set_subst_dict(obj, freedesktop_subst_dict)
|
2021-04-24 03:41:17 -04:00
|
|
|
bld.install_files (os.path.join (bld.env['PREFIX'], 'share/applications'), obj.target)
|
2015-10-22 11:21:01 -04:00
|
|
|
|
|
|
|
obj = bld(features = 'subst')
|
|
|
|
obj.source = 'ardour-mime-info.xml'
|
2015-10-22 15:05:20 -04:00
|
|
|
obj.target = 'ardour.xml'
|
2015-10-22 11:21:01 -04:00
|
|
|
obj.chmod = Utils.O644
|
2021-10-20 15:51:30 -04:00
|
|
|
bld.install_files (os.path.join (bld.env['PREFIX'], 'share/mime/packages'), obj.target)
|
2015-10-22 11:21:01 -04:00
|
|
|
|
2015-11-06 10:57:39 -05:00
|
|
|
# build appdata with translations
|
|
|
|
appdata_i18n_mo(bld)
|
|
|
|
appdata_i18n_xmlin(bld)
|
2015-10-26 06:04:06 -04:00
|
|
|
obj = bld(features = 'subst')
|
|
|
|
obj.source = 'ardour.appdata.xml.in'
|
2022-10-15 18:59:21 -04:00
|
|
|
obj.target = bld.env['lwrcase_dirname'] + '.appdata.xml'
|
2015-10-26 06:04:06 -04:00
|
|
|
obj.chmod = Utils.O644
|
|
|
|
obj.dict = freedesktop_subst_dict
|
|
|
|
set_subst_dict(obj, freedesktop_subst_dict)
|
2021-04-24 03:41:17 -04:00
|
|
|
bld.install_files (os.path.join (bld.env['PREFIX'], 'share/appdata'), obj.target)
|
2015-10-26 06:04:06 -04:00
|
|
|
|
2021-04-25 05:59:38 -04:00
|
|
|
# install desktop icon files
|
2022-10-15 18:59:21 -04:00
|
|
|
icon_file_name = bld.env['lwrcase_dirname'] + '.png'
|
2022-04-30 13:35:47 -04:00
|
|
|
bld.install_as('${PREFIX}/share/icons/hicolor/16x16/apps/' + icon_file_name, 'resources/Ardour-icon_16px.png')
|
|
|
|
bld.install_as('${PREFIX}/share/icons/hicolor/22x22/apps/'+ icon_file_name, 'resources/Ardour-icon_22px.png')
|
|
|
|
bld.install_as('${PREFIX}/share/icons/hicolor/32x32/apps/'+ icon_file_name, 'resources/Ardour-icon_32px.png')
|
|
|
|
bld.install_as('${PREFIX}/share/icons/hicolor/48x48/apps/'+ icon_file_name, 'resources/Ardour-icon_48px.png')
|
|
|
|
bld.install_as('${PREFIX}/share/icons/hicolor/256x256/apps/'+ icon_file_name, 'resources/Ardour-icon_256px.png')
|
|
|
|
bld.install_as('${PREFIX}/share/icons/hicolor/512x512/apps/'+ icon_file_name, 'resources/Ardour-icon_512px.png')
|
2021-04-25 05:59:38 -04:00
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
# Keybindings
|
|
|
|
|
2015-08-01 22:39:53 -04:00
|
|
|
# NATIVE ARDOUR BINDING FILES
|
2013-12-05 14:44:37 -05:00
|
|
|
# explicitly state the use of perl here so that it works on windows too
|
2017-07-03 06:27:25 -04:00
|
|
|
#
|
2021-03-24 18:42:33 -04:00
|
|
|
a_rule = 'perl %s/tools/fmt-bindings --platform="%s" --winkey="%s" --accelmap 1 ${SRC[0].abspath()} >${TGT}' % (bld.top_dir, sys.platform, bld.env['WINDOWS_KEY'] )
|
2015-10-26 13:35:45 -04:00
|
|
|
for b in [ 'ardour' ] :
|
2011-09-29 15:17:54 -04:00
|
|
|
obj = bld(
|
2015-10-26 13:35:45 -04:00
|
|
|
target = b + '.keys',
|
2022-09-21 10:51:32 -04:00
|
|
|
source = [ b + '.keys.in', 'mixer.bindings', 'processor_box.bindings', 'step_editing.bindings', 'monitor.bindings', 'trigger.bindings' ],
|
2013-12-05 14:44:37 -05:00
|
|
|
rule = a_rule
|
2011-05-16 14:02:38 -04:00
|
|
|
)
|
2014-04-29 16:06:32 -04:00
|
|
|
obj.install_path = bld.env['CONFDIR']
|
2017-07-03 06:27:25 -04:00
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
# Icons/Images
|
2014-04-10 10:23:16 -04:00
|
|
|
bld.install_files(os.path.join (bld.env['DATADIR'], 'icons'), bld.path.ant_glob('icons/*.png'))
|
|
|
|
bld.install_files(bld.env['DATADIR'], 'ArdourMono.ttf')
|
2019-12-05 17:33:27 -05:00
|
|
|
bld.install_files(bld.env['DATADIR'], 'ArdourSans.ttf')
|
2009-02-25 18:59:55 -05:00
|
|
|
|
2016-05-17 07:12:05 -04:00
|
|
|
# Application/Product specific resources (icon, splash)
|
2017-01-03 11:34:36 -05:00
|
|
|
pgmname = bld.env['PROGRAM_NAME']
|
2016-05-17 07:12:05 -04:00
|
|
|
bld.install_files(os.path.join(bld.env['DATADIR'], 'resources'), bld.path.ant_glob('resources/' + pgmname + '*'))
|
2016-05-16 12:47:00 -04:00
|
|
|
|
2015-08-17 07:37:06 -04:00
|
|
|
if bld.env['build_target'] == 'mingw':
|
|
|
|
# These icons need to overwrite the files already installed in the icons
|
|
|
|
# directory above. Do this in the external packaging scripts for now.
|
|
|
|
#bld.install_files(os.path.join (bld.env['DATADIR'], 'icons'), bld.path.ant_glob('icons/cursor_square/*.png'))
|
|
|
|
bld.install_files(os.path.join (bld.env['DATADIR'], 'icons'), 'icons/cursor_square/hotspots')
|
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
# Default UI configuration
|
2014-09-30 18:12:29 -04:00
|
|
|
bld.install_files(bld.env['CONFDIR'], 'default_ui_config')
|
2016-07-18 11:50:21 -04:00
|
|
|
# Color Themes. Find each color file for this program only
|
|
|
|
# and install
|
2022-01-25 14:43:15 -05:00
|
|
|
bld.install_files (os.path.join(bld.env['DATADIR'], 'themes'), bld.path.ant_glob ('themes/*-' + pgmname.lower() + '.colors'))
|
2011-09-29 17:36:31 -04:00
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
# Default export stuff
|
2015-03-11 21:36:33 -04:00
|
|
|
bld.install_files(os.path.join(bld.env['CONFDIR'], 'export'), bld.path.ant_glob('export/*.format'))
|
2011-04-22 18:15:21 -04:00
|
|
|
|
|
|
|
# i18n
|
2011-09-30 12:22:04 -04:00
|
|
|
if bld.is_defined('ENABLE_NLS'):
|
2011-11-05 12:35:24 -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', '')
|
2014-12-09 08:19:11 -05:00
|
|
|
bld.install_as (os.path.join(os.path.normpath(bld.env['LOCALEDIR']), lang, 'LC_MESSAGES', I18N_PACKAGE + '.mo'),
|
|
|
|
mo)
|
2011-04-22 18:15:21 -04:00
|
|
|
|
|
|
|
def i18n(bld):
|
2022-01-24 18:38:32 -05:00
|
|
|
I18N_PACKAGE = 'gtk2_ardour' + bld.env['MAJOR']
|
2022-01-24 16:24:13 -05:00
|
|
|
autowaf.build_i18n(bld, '.', 'gtk2_ardour', I18N_PACKAGE, gtk2_ardour_sources,
|
2022-01-24 18:38:32 -05:00
|
|
|
'Paul Davis')
|
|
|
|
appdata_i18n_pot(bld)
|
|
|
|
appdata_i18n_po(bld)
|
2015-11-29 11:52:42 -05:00
|
|
|
|
2011-11-21 16:27:30 -05:00
|
|
|
def i18n_pot(bld):
|
2022-01-24 18:38:32 -05:00
|
|
|
I18N_PACKAGE = 'gtk2_ardour' + bld.env['MAJOR']
|
2022-01-24 16:24:13 -05:00
|
|
|
autowaf.build_i18n_pot(bld, '.', 'gtk2_ardour', I18N_PACKAGE, gtk2_ardour_sources,
|
2022-01-24 18:38:32 -05:00
|
|
|
'Paul Davis')
|
|
|
|
appdata_i18n_pot(bld)
|
2011-11-21 16:27:30 -05:00
|
|
|
|
|
|
|
def i18n_po(bld):
|
2022-01-24 18:38:32 -05:00
|
|
|
I18N_PACKAGE = 'gtk2_ardour' + bld.env['MAJOR']
|
2022-01-24 16:24:13 -05:00
|
|
|
autowaf.build_i18n_po(bld, '.', 'gtk2_ardour', I18N_PACKAGE, gtk2_ardour_sources,
|
2022-01-24 18:38:32 -05:00
|
|
|
'Paul Davis')
|
|
|
|
appdata_i18n_po(bld)
|
2015-11-29 11:52:42 -05:00
|
|
|
|
2011-11-21 16:27:30 -05:00
|
|
|
def i18n_mo(bld):
|
2022-01-24 18:38:32 -05:00
|
|
|
I18N_PACKAGE = 'gtk2_ardour' + bld.env['MAJOR']
|
2022-01-24 16:24:13 -05:00
|
|
|
autowaf.build_i18n_mo(bld, '.', 'gtk2_ardour', I18N_PACKAGE, gtk2_ardour_sources,
|
2022-01-24 18:38:32 -05:00
|
|
|
'Paul Davis')
|
2015-11-06 10:57:39 -05:00
|
|
|
|
|
|
|
def appdata_i18n_pot(bld):
|
|
|
|
potfile = os.path.join(bld.top_dir, 'gtk2_ardour', 'appdata',
|
|
|
|
'ardour.appdata.pot')
|
2016-06-08 07:15:21 -04:00
|
|
|
if bld.cmd == 'i18n_pot':
|
2015-11-23 07:49:41 -05:00
|
|
|
Logs.info('Generating pot file from Ardour appdata')
|
|
|
|
itsfile = os.path.join(bld.top_dir, 'tools', 'as-metainfo.its')
|
|
|
|
adsource = os.path.join(bld.top_dir, 'gtk2_ardour',
|
|
|
|
'ardour.appdata.xml.in.in')
|
|
|
|
Logs.info('Updating ' + potfile)
|
2016-08-08 13:51:20 -04:00
|
|
|
try:
|
2022-01-24 18:38:32 -05:00
|
|
|
subprocess.call(('itstool', '-i', itsfile, '-o', potfile, adsource))
|
2016-08-08 13:51:20 -04:00
|
|
|
except:
|
2022-01-24 18:38:32 -05:00
|
|
|
print ('Error processing appdata pot file - ignored')
|
2015-11-23 07:49:41 -05:00
|
|
|
elif bld.cmd == 'clean' and os.path.exists(potfile):
|
|
|
|
Logs.info('Removing Ardour appdata pot file')
|
|
|
|
os.remove(potfile)
|
2015-11-06 10:57:39 -05:00
|
|
|
|
|
|
|
def appdata_i18n_po(bld):
|
|
|
|
autowaf.build_i18n_po(bld, bld.top_dir, os.path.join(
|
|
|
|
'gtk2_ardour', 'appdata'), 'ardour.appdata', 'dummy', 'dummy')
|
|
|
|
|
|
|
|
def appdata_i18n_mo(bld):
|
|
|
|
autowaf.build_i18n_mo(bld, bld.top_dir, os.path.join(
|
|
|
|
'gtk2_ardour', 'appdata'), 'ardour.appdata', 'dummy', 'dummy')
|
|
|
|
|
|
|
|
def appdata_i18n_xmlin(bld):
|
|
|
|
adxmlinfile = os.path.join(bld.top_dir, 'gtk2_ardour',
|
|
|
|
'ardour.appdata.xml.in')
|
2015-11-23 07:49:41 -05:00
|
|
|
if bld.cmd == 'build':
|
|
|
|
itsfile = os.path.join(bld.top_dir, 'tools', 'as-metainfo.its')
|
|
|
|
adxmlininfile = os.path.join(bld.top_dir, 'gtk2_ardour',
|
|
|
|
'ardour.appdata.xml.in.in')
|
|
|
|
mo_glob = os.path.join(bld.top_dir, 'gtk2_ardour', 'appdata', 'po', '*.mo')
|
|
|
|
mo_files = glob.glob(mo_glob)
|
|
|
|
Logs.info('Generating ' + adxmlinfile)
|
|
|
|
subprocess.call(['itstool', '-i', itsfile, '-o', adxmlinfile,
|
|
|
|
'-j', adxmlininfile] + mo_files)
|
|
|
|
elif bld.cmd == 'clean' and os.path.exists(adxmlinfile):
|
|
|
|
Logs.info('Removing ' + adxmlinfile)
|
|
|
|
os.remove(adxmlinfile)
|