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
|
2011-10-26 17:47:08 -04:00
|
|
|
import time
|
|
|
|
from waflib.Task import Task
|
2009-02-25 18:59:55 -05:00
|
|
|
|
2011-11-21 16:27:30 -05:00
|
|
|
I18N_PACKAGE = 'gtk2_ardour3'
|
2009-02-25 18:59:55 -05:00
|
|
|
|
|
|
|
# Mandatory variables
|
2011-09-29 15:17:54 -04:00
|
|
|
top = '.'
|
|
|
|
out = 'build'
|
2009-02-25 18:59:55 -05:00
|
|
|
|
2009-02-25 21:24:16 -05:00
|
|
|
path_prefix = 'gtk2_ardour/'
|
|
|
|
|
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',
|
2011-10-26 17:01:14 -04:00
|
|
|
'ardour_button.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'ardour_dialog.cc',
|
|
|
|
'ardour_ui.cc',
|
|
|
|
'ardour_ui2.cc',
|
|
|
|
'ardour_ui_dependents.cc',
|
|
|
|
'ardour_ui_dialogs.cc',
|
|
|
|
'ardour_ui_ed.cc',
|
|
|
|
'ardour_ui_mixer.cc',
|
|
|
|
'ardour_ui_options.cc',
|
2011-11-18 16:56:01 -05:00
|
|
|
'ardour_window.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'audio_clock.cc',
|
|
|
|
'audio_region_editor.cc',
|
|
|
|
'audio_region_view.cc',
|
|
|
|
'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',
|
2013-05-04 22:02:05 -04:00
|
|
|
'big_clock_window.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'bundle_manager.cc',
|
2012-02-02 23:18:30 -05:00
|
|
|
'button_joiner.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'canvas-flag.cc',
|
|
|
|
'canvas-hit.cc',
|
|
|
|
'canvas-note-event.cc',
|
|
|
|
'canvas-note.cc',
|
|
|
|
'canvas_patch_change.cc',
|
|
|
|
'canvas-simpleline.c',
|
|
|
|
'canvas-simplerect.c',
|
|
|
|
'canvas-sysex.cc',
|
|
|
|
'canvas-waveview.c',
|
2011-03-02 17:43:19 -05:00
|
|
|
'clock_group.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'configinfo.cc',
|
|
|
|
'control_point.cc',
|
|
|
|
'control_point_dialog.cc',
|
|
|
|
'curvetest.cc',
|
|
|
|
'debug.cc',
|
|
|
|
'diamond.cc',
|
|
|
|
'edit_note_dialog.cc',
|
|
|
|
'editing.cc',
|
|
|
|
'editor.cc',
|
|
|
|
'editor_actions.cc',
|
|
|
|
'editor_audio_import.cc',
|
|
|
|
'editor_audiotrack.cc',
|
|
|
|
'editor_canvas.cc',
|
|
|
|
'editor_canvas_events.cc',
|
|
|
|
'editor_component.cc',
|
|
|
|
'editor_cursors.cc',
|
|
|
|
'editor_drag.cc',
|
|
|
|
'editor_route_groups.cc',
|
|
|
|
'editor_export_audio.cc',
|
|
|
|
'editor_group_tabs.cc',
|
|
|
|
'editor_keys.cc',
|
|
|
|
'editor_locations.cc',
|
|
|
|
'editor_markers.cc',
|
|
|
|
'editor_mixer.cc',
|
|
|
|
'editor_mouse.cc',
|
|
|
|
'editor_ops.cc',
|
|
|
|
'editor_regions.cc',
|
|
|
|
'editor_routes.cc',
|
|
|
|
'editor_rulers.cc',
|
|
|
|
'editor_selection.cc',
|
|
|
|
'editor_snapshots.cc',
|
|
|
|
'editor_summary.cc',
|
|
|
|
'editor_tempodisplay.cc',
|
|
|
|
'editor_timefx.cc',
|
|
|
|
'engine_dialog.cc',
|
|
|
|
'enums.cc',
|
|
|
|
'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',
|
|
|
|
'export_timespan_selector.cc',
|
|
|
|
'fft.cc',
|
|
|
|
'fft_graph.cc',
|
|
|
|
'fft_result.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',
|
|
|
|
'gtk-custom-hruler.c',
|
|
|
|
'gtk-custom-ruler.c',
|
2010-08-02 17:52:21 -04:00
|
|
|
'gtk_pianokeyboard.c',
|
2011-07-06 20:37:13 -04:00
|
|
|
'gui_object.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'insert_time_dialog.cc',
|
|
|
|
'interthread_progress_window.cc',
|
|
|
|
'io_selector.cc',
|
|
|
|
'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',
|
|
|
|
'lineset.cc',
|
|
|
|
'location_ui.cc',
|
|
|
|
'main.cc',
|
2012-05-31 19:14:03 -04:00
|
|
|
'main_clock.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'marker.cc',
|
|
|
|
'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',
|
|
|
|
'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_port_dialog.cc',
|
|
|
|
'midi_region_view.cc',
|
|
|
|
'midi_scroomer.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',
|
2010-11-09 01:03:51 -05:00
|
|
|
'missing_file_dialog.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'missing_plugin_dialog.cc',
|
2011-11-04 13:53:21 -04:00
|
|
|
'mixer_actor.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'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',
|
|
|
|
'nag.cc',
|
|
|
|
'new_plugin_preset_dialog.cc',
|
|
|
|
'normalize_dialog.cc',
|
2010-09-15 14:54:04 -04:00
|
|
|
'note_player.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',
|
|
|
|
'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',
|
|
|
|
'plugin_eq_gui.cc',
|
|
|
|
'plugin_selector.cc',
|
|
|
|
'plugin_ui.cc',
|
|
|
|
'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',
|
|
|
|
'patch_change_dialog.cc',
|
|
|
|
'progress_reporter.cc',
|
|
|
|
'prompter.cc',
|
|
|
|
'public_editor.cc',
|
|
|
|
'quantize_dialog.cc',
|
|
|
|
'rc_option_editor.cc',
|
|
|
|
'region_editor.cc',
|
|
|
|
'region_gain_line.cc',
|
|
|
|
'region_layering_order_editor.cc',
|
|
|
|
'region_selection.cc',
|
|
|
|
'region_view.cc',
|
|
|
|
'return_ui.cc',
|
|
|
|
'rhythm_ferret.cc',
|
|
|
|
'route_group_dialog.cc',
|
|
|
|
'route_group_menu.cc',
|
|
|
|
'route_params_ui.cc',
|
|
|
|
'route_processor_selection.cc',
|
|
|
|
'route_time_axis.cc',
|
|
|
|
'route_ui.cc',
|
2010-11-09 01:03:51 -05:00
|
|
|
'search_path_option.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'selection.cc',
|
|
|
|
'send_ui.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',
|
2011-03-16 12:32:56 -04:00
|
|
|
'simpleline.cc',
|
|
|
|
'simplerect.cc',
|
|
|
|
'splash.cc',
|
2011-02-16 23:45:49 -05:00
|
|
|
'speaker_dialog.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'startup.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',
|
|
|
|
'tape_region_view.cc',
|
|
|
|
'tempo_dialog.cc',
|
|
|
|
'tempo_lines.cc',
|
|
|
|
'theme_manager.cc',
|
|
|
|
'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',
|
|
|
|
'track_selection.cc',
|
|
|
|
'track_view_list.cc',
|
2011-04-05 22:04:37 -04:00
|
|
|
'transpose_dialog.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'ui_config.cc',
|
|
|
|
'utils.cc',
|
2011-05-02 09:38:16 -04:00
|
|
|
'verbose_cursor.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'version.cc',
|
2011-10-29 16:07:00 -04:00
|
|
|
'visibility_group.cc',
|
2011-02-11 13:04:09 -05:00
|
|
|
'volume_controller.cc',
|
2011-03-16 12:32:56 -04:00
|
|
|
'waveview.cc',
|
2013-05-04 22:02:05 -04:00
|
|
|
'window_manager.cc',
|
2013-04-11 13:49:29 -04:00
|
|
|
# video-timeline related sources:
|
|
|
|
'video_image_frame.cc',
|
|
|
|
'add_video_dialog.cc',
|
|
|
|
'editor_videotimeline.cc',
|
|
|
|
'video_timeline.cc',
|
|
|
|
'system_exec.cc',
|
|
|
|
'video_monitor.cc',
|
|
|
|
'transcode_ffmpeg.cc',
|
|
|
|
'transcode_video_dialog.cc',
|
|
|
|
'video_server_dialog.cc',
|
|
|
|
'utils_videotl.cc',
|
|
|
|
'export_video_dialog.cc',
|
|
|
|
'export_video_infobox.cc'
|
2009-07-22 09:51:16 -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 18:59:55 -05:00
|
|
|
|
|
|
|
def configure(conf):
|
2011-09-29 15:17:54 -04:00
|
|
|
conf.load('misc')
|
2011-09-29 15:58:05 -04:00
|
|
|
conf.load('compiler_cxx')
|
2013-06-11 10:58:24 -04:00
|
|
|
# we don't use hard-coded micro versions with ardour, so hard code it to zero
|
2011-05-16 14:02:38 -04:00
|
|
|
autowaf.build_version_files(
|
|
|
|
path_prefix + 'version.h',
|
|
|
|
path_prefix + 'version.cc',
|
2013-06-11 11:37:52 -04:00
|
|
|
'gtk2_ardour', conf.env['MAJOR'], conf.env['MINOR'], 0)
|
2011-04-22 18:15:21 -04:00
|
|
|
autowaf.configure(conf)
|
|
|
|
|
|
|
|
if re.search ("linux", sys.platform) != None:
|
|
|
|
autowaf.check_pkg(conf, 'alsa', uselib_store='ALSA')
|
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')
|
|
|
|
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')
|
2011-10-18 09:07:10 -04:00
|
|
|
autowaf.check_pkg(conf, 'libgnomecanvas-2.0',
|
|
|
|
uselib_store='GNOMECANVAS', atleast_version='2.30')
|
2011-05-25 17:28:17 -04:00
|
|
|
autowaf.check_pkg(conf, 'libgnomecanvasmm-2.6',
|
|
|
|
uselib_store='GNOMECANVASMM', atleast_version='2.16')
|
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)
|
2013-01-29 10:25:30 -05:00
|
|
|
autowaf.check_pkg(conf, 'fontconfig', uselib_store='FONTCONFIG')
|
2011-04-22 18:15:21 -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
|
|
|
|
|
|
|
# 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')
|
2009-02-25 18:59:55 -05:00
|
|
|
|
2010-07-11 17:55:11 -04:00
|
|
|
# Add a waf `feature' to allow compilation of things using winegcc
|
2011-09-29 15:58:05 -04:00
|
|
|
from waflib.TaskGen import feature
|
2010-07-11 17:55:11 -04:00
|
|
|
@feature("wine")
|
|
|
|
def set_winegcc(self):
|
2011-04-22 18:15:21 -04:00
|
|
|
self.env.LINK_CXX = self.env.LINK_CC = 'wineg++'
|
|
|
|
self.env.CC = 'winegcc'
|
2010-07-11 17:55:11 -04:00
|
|
|
|
2011-10-26 17:47:08 -04:00
|
|
|
def _doPyp(infileName, deps = False):
|
2011-09-29 11:22:11 -04:00
|
|
|
outStr = ''
|
2011-10-26 17:47:08 -04:00
|
|
|
out = []
|
|
|
|
re_spaces = re.compile("\s+")
|
|
|
|
|
2011-09-29 11:22:11 -04:00
|
|
|
if infileName == '-':
|
|
|
|
fd = sys.stdin
|
|
|
|
else:
|
2011-09-29 18:50:08 -04:00
|
|
|
fd = open(infileName)
|
2011-09-29 11:22:11 -04:00
|
|
|
inLines = fd.readlines()
|
|
|
|
if fd != sys.stdin:
|
|
|
|
fd.close()
|
2011-10-26 17:47:08 -04:00
|
|
|
|
2011-09-29 17:36:31 -04:00
|
|
|
|
2011-09-29 11:22:11 -04:00
|
|
|
for line in inLines:
|
|
|
|
bits = re_spaces.split(line)
|
|
|
|
if bits[0] == '##include':
|
|
|
|
incName = bits[1]
|
2011-10-26 17:47:08 -04:00
|
|
|
if (deps):
|
|
|
|
out += [ incName ]
|
|
|
|
else:
|
|
|
|
# assume included file comes from same place as source file
|
|
|
|
incName = os.path.join (os.path.dirname (infileName), incName);
|
|
|
|
outStr += _doPyp(incName)
|
2011-09-29 11:22:11 -04:00
|
|
|
else:
|
2011-10-26 17:47:08 -04:00
|
|
|
if not deps:
|
|
|
|
outStr += line
|
2011-09-29 15:17:54 -04:00
|
|
|
|
2011-09-29 11:22:11 -04:00
|
|
|
# done
|
2011-10-26 17:47:08 -04:00
|
|
|
if deps:
|
|
|
|
return out
|
|
|
|
else:
|
|
|
|
return outStr
|
2011-09-29 17:36:31 -04:00
|
|
|
|
2011-09-29 11:22:11 -04:00
|
|
|
def include_processor(task):
|
2011-09-29 15:17:54 -04:00
|
|
|
infileName = task.inputs[0].srcpath()
|
|
|
|
outfileName = os.path.join(out, task.outputs[0].bldpath())
|
2011-09-29 18:50:08 -04:00
|
|
|
fdOut = open (outfileName, "w")
|
2011-09-29 11:22:11 -04:00
|
|
|
fdOut.write (_doPyp(infileName))
|
|
|
|
fdOut.close ()
|
|
|
|
|
|
|
|
|
2011-02-15 13:02:50 -05:00
|
|
|
def build_color_scheme(path, prefix):
|
2011-04-22 18:15:21 -04:00
|
|
|
f = open (path, 'r')
|
|
|
|
color_scheme = ''
|
|
|
|
for line in f:
|
|
|
|
if re.search ('^#@color', line):
|
|
|
|
line.strip() # remove newline
|
|
|
|
words = line.split()
|
|
|
|
if len(color_scheme):
|
|
|
|
color_scheme += ';'
|
|
|
|
color_scheme += prefix
|
|
|
|
color_scheme += '_'
|
|
|
|
color_scheme += words[1]
|
|
|
|
color_scheme += ':'
|
|
|
|
color_scheme += words[2]
|
|
|
|
f.close()
|
|
|
|
return color_scheme
|
|
|
|
|
2009-02-25 18:59:55 -05:00
|
|
|
def build(bld):
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2013-06-11 11:37:52 -04:00
|
|
|
VERSION = "%s.%s" % (bld.env['MAJOR'], bld.env['MINOR'])
|
|
|
|
|
2011-11-21 12:42:29 -05:00
|
|
|
if bld.is_defined('WINDOWS_VST_SUPPORT'):
|
2012-02-29 15:16:06 -05:00
|
|
|
# If we require VST support we build a stub main() and the FST library
|
|
|
|
# here using winegcc, and link it to the GTK front-end library
|
2013-12-22 13:39:57 -05:00
|
|
|
obj = bld (features = 'cxx c cxxprogram wine')
|
|
|
|
obj.source = (
|
|
|
|
'../libs/fst/fst.c',
|
|
|
|
'../libs/fst/fstinfofile.c',
|
|
|
|
'../libs/fst/vsti.c',
|
|
|
|
'../libs/fst/vstwin.c',
|
|
|
|
'../vst/winmain.c',
|
|
|
|
)
|
|
|
|
#
|
|
|
|
# XXX do we really need to explicitly link to all of these for the wine executable?
|
|
|
|
#
|
2012-02-29 15:16:06 -05:00
|
|
|
obj.use = [ 'libpbd',
|
|
|
|
'libmidipp',
|
|
|
|
'libardour',
|
|
|
|
'libardour_cp',
|
2013-11-29 22:24:37 -05:00
|
|
|
'libtimecode',
|
|
|
|
'libmidipp',
|
2012-03-02 15:51:01 -05:00
|
|
|
'libgtk2_ardour',
|
2012-02-29 15:16:06 -05:00
|
|
|
'libgtkmm2ext',
|
2013-12-22 13:13:47 -05:00
|
|
|
]
|
2013-05-08 13:16:50 -04:00
|
|
|
obj.target = 'ardour-' + bld.env['VERSION'] + '-vst.exe.so'
|
2012-03-01 19:51:13 -05:00
|
|
|
obj.includes = [ '../libs/fst', '.' ]
|
2013-02-18 18:40:24 -05:00
|
|
|
obj.linkflags = ['-mwindows', '-Wl,--export-dynamic']
|
2012-02-29 15:16:06 -05:00
|
|
|
obj.defines = ['_POSIX_SOURCE', 'USE_WS_PREFIX']
|
|
|
|
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
|
|
|
|
# end of the wine executable
|
|
|
|
|
|
|
|
# now the shared library containing the GTK GUI for ardour
|
|
|
|
obj = bld (features = 'cxx c cxxshlib')
|
|
|
|
obj.source = gtk2_ardour_sources
|
2012-03-01 18:17:46 -05:00
|
|
|
obj.includes = [ '../libs/fst', '.' ]
|
2012-03-02 17:41:29 -05:00
|
|
|
obj.name = 'libgtk2_ardour'
|
2012-02-29 15:16:06 -05:00
|
|
|
obj.target = 'gtk2_ardour'
|
2011-04-22 18:15:21 -04:00
|
|
|
else:
|
2012-02-29 15:16:06 -05:00
|
|
|
# just the normal executable version of the GTK GUI
|
2013-12-22 13:39:57 -05:00
|
|
|
obj = bld (features = 'cxx c cxxprogram')
|
2012-02-29 15:16:06 -05:00
|
|
|
obj.source = gtk2_ardour_sources
|
2013-05-08 13:16:50 -04:00
|
|
|
obj.target = 'ardour-' + bld.env['VERSION']
|
2012-02-29 15:16:06 -05:00
|
|
|
obj.includes = ['.']
|
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',
|
|
|
|
'libtimecode',
|
|
|
|
'libmidipp',
|
|
|
|
'libgtkmm2ext',
|
|
|
|
]
|
2012-02-29 15:16:06 -05:00
|
|
|
|
|
|
|
# continue with setup of obj, which could be a shared library
|
|
|
|
# or an executable.
|
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
|
2013-11-29 22:24:37 -05:00
|
|
|
obj.uselib = 'UUID FLAC FONTCONFIG GLIBMM GTHREAD GTK OGG CURL DL'
|
2013-10-26 10:22:05 -04:00
|
|
|
obj.uselib += ' GTKMM GNOMECANVASMM GNOMECANVAS FFTW3F'
|
2013-03-21 16:16:48 -04:00
|
|
|
obj.uselib += ' AUDIOUNITS OSX GTKOSX LO '
|
2013-10-26 10:58:14 -04:00
|
|
|
if bld.is_defined('USE_EXTERNAL_LIBS'):
|
|
|
|
obj.uselib += ' TAGLIB'
|
|
|
|
else:
|
2013-12-22 13:39:57 -05:00
|
|
|
obj.use += ('libtaglib')
|
2011-04-22 18:15:21 -04:00
|
|
|
if sys.platform == 'darwin':
|
2011-09-29 15:17:54 -04:00
|
|
|
obj.use += ' libappleutility'
|
2011-05-16 14:02:38 -04:00
|
|
|
obj.defines = [
|
2011-11-21 17:24:56 -05:00
|
|
|
'PACKAGE="' + I18N_PACKAGE + '"',
|
2011-05-16 14:02:38 -04:00
|
|
|
'VERSIONSTRING="' + bld.env['VERSION'] + '"',
|
|
|
|
'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',
|
2011-09-29 15:17:54 -04:00
|
|
|
'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"',
|
2012-05-18 13:24:06 -04:00
|
|
|
'LOCALEDIR="' + os.path.join(os.path.normpath(bld.env['DATADIR']), 'locale') + '"',
|
2011-05-16 14:02:38 -04:00
|
|
|
'PROGRAM_NAME="' + bld.env['PROGRAM_NAME'] + '"'
|
|
|
|
]
|
|
|
|
obj.includes += ['../libs']
|
2011-04-22 18:15:21 -04: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
|
|
|
|
2012-10-04 18:21:59 -04:00
|
|
|
if bld.is_defined('NEED_INTL'):
|
|
|
|
obj.linkflags = ' -lintl'
|
|
|
|
|
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' ]
|
2012-10-04 18:21:59 -04:00
|
|
|
obj.use += [ 'X11' ]
|
|
|
|
|
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' ]
|
2012-10-04 18:21:59 -04:00
|
|
|
obj.use += [ 'X11' ]
|
2011-11-22 19:55:25 -05:00
|
|
|
|
|
|
|
if bld.is_defined('WINDOWS_VST_SUPPORT') or bld.is_defined('LXVST_SUPPORT'):
|
|
|
|
obj.source += [ 'vst_plugin_ui.cc' ]
|
2011-11-13 09:53:49 -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-12-02 15:03:03 -05:00
|
|
|
obj.source += [ 'cocoacarbon.mm' ]
|
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' ]
|
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
# Wrappers
|
|
|
|
|
|
|
|
wrapper_subst_dict = {
|
|
|
|
'INSTALL_PREFIX' : bld.env['PREFIX'],
|
2011-09-29 15:17:54 -04:00
|
|
|
'LIBDIR' : os.path.normpath(bld.env['LIBDIR']),
|
2012-05-18 13:24:06 -04:00
|
|
|
'DATADIR' : os.path.normpath(bld.env['DATADIR']),
|
|
|
|
'SYSCONFDIR' : os.path.normpath(bld.env['SYSCONFDIR']),
|
2011-09-29 15:17:54 -04:00
|
|
|
'LIBS' : 'build/libs',
|
2013-05-08 13:16:50 -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])
|
|
|
|
|
|
|
|
obj = bld(features = 'subst', rule= 'chmod 0755 ${TGT}')
|
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'
|
|
|
|
obj.target = 'ardour3'
|
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
|
|
|
|
2012-02-29 14:11:42 -05:00
|
|
|
if bld.is_defined('WINDOWS_VST_SUPPORT'):
|
|
|
|
obj = bld(features = 'subst')
|
|
|
|
obj.source = '../vst/ardourvst.in'
|
|
|
|
obj.target = 'ardourvst3'
|
|
|
|
obj.chmod = Utils.O755
|
|
|
|
obj.dict = wrapper_subst_dict
|
|
|
|
obj.install_path = bld.env['BINDIR']
|
|
|
|
set_subst_dict(obj, wrapper_subst_dict)
|
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
# Font configuration
|
|
|
|
|
|
|
|
dark_rc_subst_dict = {}
|
|
|
|
light_rc_subst_dict = {}
|
|
|
|
font_sizes = {}
|
|
|
|
base_font = ""
|
|
|
|
|
|
|
|
# Set up font sizes
|
2011-09-30 12:22:04 -04:00
|
|
|
if bld.is_defined('GTKOSX'): # OS X fonts
|
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
|
|
|
}
|
2013-03-09 10:12:27 -05:00
|
|
|
|
|
|
|
# There is no acceptable monospace font available on older versions of OS X
|
|
|
|
# and no API on those versions to load TTF files that will work with
|
|
|
|
# GTK/fontconfig/pango.
|
|
|
|
#
|
|
|
|
# In addition, the ArdourMono font gets clipped for some reason on OS X
|
|
|
|
#
|
|
|
|
# Moreover, Lucida Grande just seems to work even though it is not monospace
|
|
|
|
# so just use it.
|
|
|
|
#
|
|
|
|
font_names = {
|
|
|
|
'MONOSPACE' : 'Lucida Grande',
|
|
|
|
}
|
2011-04-22 18:15:21 -04:00
|
|
|
else: # Linux/X11 fonts
|
|
|
|
basefont = '' # unspecified - use system defaults
|
|
|
|
font_sizes = {
|
|
|
|
'SMALLER' : '8',
|
|
|
|
'SMALL' : '9',
|
|
|
|
'NORMAL' : '10',
|
2013-08-09 00:50:41 -04:00
|
|
|
'BIG' : '14',
|
2013-03-05 08:51:14 -05:00
|
|
|
'BIGGER' : '17',
|
2011-04-22 18:15:21 -04:00
|
|
|
'LARGE' : '18',
|
|
|
|
'LARGER' : '24',
|
|
|
|
'HUGER' : '34',
|
2012-12-10 20:43:25 -05:00
|
|
|
'MASSIVE' : '60',
|
2012-12-12 09:50:10 -05:00
|
|
|
}
|
|
|
|
font_names = {
|
2013-01-30 08:13:57 -05:00
|
|
|
'MONOSPACE' : '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])
|
|
|
|
|
|
|
|
dark_rc_subst_dict[key] = fontstyle
|
|
|
|
light_rc_subst_dict[key] = fontstyle
|
|
|
|
|
2011-06-07 12:42:48 -04:00
|
|
|
# @FONT_SIZE_XXXX@
|
|
|
|
for sizename,points in iter(font_sizes.items()):
|
|
|
|
key = "_".join (['FONT_SIZE',sizename])
|
|
|
|
dark_rc_subst_dict[key] = points
|
|
|
|
light_rc_subst_dict[key] = points
|
|
|
|
|
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
|
|
|
|
dark_rc_subst_dict[key] = text
|
|
|
|
light_rc_subst_dict[key] = text
|
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
# RC files
|
2011-05-16 14:02:38 -04:00
|
|
|
dark_rc_subst_dict['COLOR_SCHEME'] = build_color_scheme(
|
|
|
|
'gtk2_ardour/ardour3_ui_dark.rc.in', 'ARDOUR_DARK')
|
2011-04-22 18:15:21 -04:00
|
|
|
dark_rc_subst_dict['COLPREFIX'] = 'ARDOUR_DARK'
|
2011-05-16 14:02:38 -04:00
|
|
|
light_rc_subst_dict['COLOR_SCHEME'] = build_color_scheme(
|
|
|
|
'gtk2_ardour/ardour3_ui_light.rc.in', 'ARDOUR_LIGHT')
|
2011-04-22 18:15:21 -04:00
|
|
|
light_rc_subst_dict['COLPREFIX'] = 'ARDOUR_LIGHT'
|
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
obj = bld(features = 'subst')
|
2011-06-09 11:44:09 -04:00
|
|
|
obj.source = [ 'ardour3_ui_dark.rc.in' ]
|
2011-09-29 11:22:11 -04:00
|
|
|
obj.target = 'ardour3_ui_dark.rc.pre'
|
|
|
|
obj.install_path = None
|
2011-09-29 15:17:54 -04:00
|
|
|
set_subst_dict(obj, dark_rc_subst_dict)
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
obj = bld(features = 'subst')
|
2011-06-09 11:44:09 -04:00
|
|
|
obj.source = [ 'ardour3_ui_light.rc.in' ]
|
2011-09-29 11:22:11 -04:00
|
|
|
obj.target = 'ardour3_ui_light.rc.pre'
|
|
|
|
obj.install_path = None
|
2011-09-29 15:17:54 -04:00
|
|
|
set_subst_dict(obj, light_rc_subst_dict)
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
obj = bld(features = 'subst')
|
2011-06-09 11:44:09 -04:00
|
|
|
obj.source = [ 'ardour3_styles.rc.in' ]
|
|
|
|
obj.target = 'ardour3_dark_styles.rc'
|
2011-09-29 11:22:11 -04:00
|
|
|
obj.install_path = None
|
2011-09-29 15:17:54 -04:00
|
|
|
set_subst_dict(obj, dark_rc_subst_dict)
|
2011-06-09 11:44:09 -04:00
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
obj = bld(features = 'subst')
|
2011-06-09 11:44:09 -04:00
|
|
|
obj.source = [ 'ardour3_styles.rc.in' ]
|
|
|
|
obj.target = 'ardour3_light_styles.rc'
|
2011-09-29 11:22:11 -04:00
|
|
|
obj.install_path = None
|
2011-09-29 15:17:54 -04:00
|
|
|
set_subst_dict(obj, light_rc_subst_dict)
|
2011-06-09 11:44:09 -04:00
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
obj = bld(features = 'subst')
|
2011-06-09 11:44:09 -04:00
|
|
|
obj.source = [ 'ardour3_fonts.rc.in' ]
|
|
|
|
obj.target = 'ardour3_dark_fonts.rc'
|
2011-09-29 11:22:11 -04:00
|
|
|
obj.install_path = None
|
2011-09-29 15:17:54 -04:00
|
|
|
set_subst_dict(obj, dark_rc_subst_dict)
|
2011-06-09 11:44:09 -04:00
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
obj = bld(features = 'subst')
|
2011-06-09 11:44:09 -04:00
|
|
|
obj.source = [ 'ardour3_fonts.rc.in' ]
|
|
|
|
obj.target = 'ardour3_light_fonts.rc'
|
2011-09-29 11:22:11 -04:00
|
|
|
obj.install_path = None
|
2011-09-29 15:17:54 -04:00
|
|
|
set_subst_dict(obj, light_rc_subst_dict)
|
2011-06-09 11:44:09 -04:00
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
obj = bld(rule = 'cp ${SRC} ${TGT}')
|
2011-06-09 11:44:09 -04:00
|
|
|
obj.source = [ 'ardour3_widget_list.rc' ]
|
|
|
|
obj.target = 'ardour3_widgets.rc'
|
2011-09-29 11:22:11 -04:00
|
|
|
obj.install_path = None
|
|
|
|
|
2011-10-22 08:54:04 -04:00
|
|
|
obj = bld (rule = include_processor)
|
|
|
|
obj.source = [ 'ardour3_ui_dark.rc.pre' ]
|
2011-10-26 17:47:08 -04:00
|
|
|
# find and add all ##include dependencies as sources
|
|
|
|
obj.source += _doPyp (bld.path.find_resource ('ardour3_ui_dark.rc.in').srcpath(), True)
|
2011-10-22 08:54:04 -04:00
|
|
|
obj.target = 'ardour3_ui_dark.rc'
|
|
|
|
obj.install_path = '${SYSCONFDIR}/ardour3'
|
|
|
|
|
|
|
|
obj = bld (rule = include_processor)
|
|
|
|
obj.source = [ 'ardour3_ui_light.rc.pre' ]
|
2011-10-26 17:47:08 -04:00
|
|
|
# find and add all ##include dependencies as sources
|
|
|
|
obj.source += _doPyp (bld.path.find_resource ('ardour3_ui_light.rc.in').srcpath(), True)
|
2011-10-22 08:54:04 -04:00
|
|
|
obj.target = 'ardour3_ui_light.rc'
|
|
|
|
obj.install_path = '${SYSCONFDIR}/ardour3'
|
2011-06-09 11:44:09 -04:00
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
# Menus
|
|
|
|
menus_argv = []
|
2011-09-30 12:22:04 -04:00
|
|
|
if bld.is_defined('GTKOSX'):
|
2013-10-12 17:04:37 -04:00
|
|
|
menus_argv = [ '-E', '-P', '-DGTKOSX' ]
|
2011-04-22 18:15:21 -04:00
|
|
|
else:
|
|
|
|
menus_argv = [ '-E', '-P' ]
|
2013-03-12 17:00:09 -04:00
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
obj = bld(features = 'command-output')
|
2011-04-22 18:15:21 -04:00
|
|
|
obj.command = 'cpp'
|
|
|
|
obj.command_is_external = True
|
|
|
|
obj.no_inputs = True
|
|
|
|
obj.argv = menus_argv
|
|
|
|
obj.stdin = 'ardour.menus.in'
|
|
|
|
obj.stdout = 'ardour.menus'
|
2013-04-11 13:49:29 -04:00
|
|
|
obj.dep_vars = ['GTKOSX']
|
2011-09-29 15:17:54 -04:00
|
|
|
bld.install_files(os.path.join(bld.env['SYSCONFDIR'], 'ardour3'),
|
2011-05-16 14:02:38 -04:00
|
|
|
'ardour.menus')
|
2011-04-22 18:15:21 -04:00
|
|
|
|
|
|
|
# Keybindings
|
|
|
|
|
2011-05-16 14:02:38 -04:00
|
|
|
# 'SAE-de-keypad', 'SAE-de-nokeypad', 'SAE-us-keypad',
|
|
|
|
# 'SAE-us-nokeypad', 'ergonomic-us'
|
2011-04-22 18:15:21 -04:00
|
|
|
|
|
|
|
for b in [ 'mnemonic-us' ] :
|
2011-09-29 15:17:54 -04:00
|
|
|
obj = bld(
|
2011-05-16 14:02:38 -04:00
|
|
|
target = b + '.bindings',
|
|
|
|
source = b + '.bindings.in',
|
2011-10-18 18:36:00 -04:00
|
|
|
rule = '../tools/fmt-bindings --platform="%s" --winkey="%s" --accelmap <${SRC} >${TGT}' % (sys.platform, bld.env['WINDOWS_KEY'] )
|
2011-05-16 14:02:38 -04:00
|
|
|
)
|
2011-09-29 15:17:54 -04:00
|
|
|
obj.install_path = os.path.join(bld.env['SYSCONFDIR'], 'ardour3')
|
2011-03-16 12:32:56 -04:00
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
# not modified at present
|
2011-09-29 15:17:54 -04:00
|
|
|
bld.install_files(os.path.join(bld.env['SYSCONFDIR'], 'ardour3'),
|
2011-05-16 14:02:38 -04:00
|
|
|
'step_editing.bindings')
|
2011-11-05 19:36:43 -04:00
|
|
|
bld.install_files(os.path.join(bld.env['SYSCONFDIR'], 'ardour3'),
|
|
|
|
'mixer.bindings')
|
2011-03-16 12:32:56 -04:00
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
# Icons/Images
|
2011-09-29 19:24:55 -04:00
|
|
|
bld.install_files('${DATADIR}/ardour3/icons', bld.path.ant_glob('icons/*.png'))
|
|
|
|
bld.install_files('${DATADIR}/ardour3/pixmaps', bld.path.ant_glob('pixmaps/*.xpm'))
|
2011-04-22 18:15:21 -04:00
|
|
|
bld.install_files('${DATADIR}/ardour3', 'splash.png')
|
2013-01-29 10:25:30 -05:00
|
|
|
bld.install_files('${DATADIR}/ardour3', 'ArdourMono.ttf')
|
2009-02-25 18:59:55 -05:00
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
# Default UI configuration
|
2011-09-29 15:17:54 -04:00
|
|
|
bld.install_files('${SYSCONFDIR}/ardour3', 'ardour3_ui_default.conf')
|
2011-09-29 17:36:31 -04:00
|
|
|
|
2011-04-22 18:15:21 -04:00
|
|
|
# Default export stuff
|
2011-09-29 19:24:55 -04:00
|
|
|
bld.install_files('${SYSCONFDIR}/ardour3/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', '')
|
|
|
|
bld.install_as(os.path.join(bld.env['PREFIX'], 'share', 'locale',
|
2011-11-21 18:20:31 -05:00
|
|
|
lang, 'LC_MESSAGES', I18N_PACKAGE + '.mo'),
|
2011-11-05 12:35:24 -04:00
|
|
|
mo)
|
2011-04-22 18:15:21 -04:00
|
|
|
|
|
|
|
def i18n(bld):
|
2011-11-21 16:27:30 -05:00
|
|
|
autowaf.build_i18n(bld, top, 'gtk2_ardour', I18N_PACKAGE, gtk2_ardour_sources,
|
|
|
|
'Paul Davis')
|
|
|
|
|
|
|
|
def i18n_pot(bld):
|
|
|
|
autowaf.build_i18n_pot(bld, top, 'gtk2_ardour', I18N_PACKAGE, gtk2_ardour_sources,
|
|
|
|
'Paul Davis')
|
|
|
|
|
|
|
|
def i18n_po(bld):
|
|
|
|
autowaf.build_i18n_po(bld, top, 'gtk2_ardour', I18N_PACKAGE, gtk2_ardour_sources,
|
|
|
|
'Paul Davis')
|
|
|
|
|
|
|
|
def i18n_mo(bld):
|
|
|
|
autowaf.build_i18n_mo(bld, top, 'gtk2_ardour', I18N_PACKAGE, gtk2_ardour_sources,
|
2011-11-05 12:35:24 -04:00
|
|
|
'Paul Davis')
|