2005-09-25 18:42:24 +00:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
import os.path
|
|
|
|
|
import glob
|
|
|
|
|
|
2007-01-09 23:24:54 +00:00
|
|
|
Import('env install_prefix final_prefix config_prefix libraries i18n ardour_version')
|
2005-09-25 18:42:24 +00:00
|
|
|
|
2008-09-10 15:03:30 +00:00
|
|
|
gtkardour = env.Clone()
|
|
|
|
|
gtkmmtests = env.Clone()
|
2005-09-25 18:42:24 +00:00
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# this defines the version number of the GTK interface to ardour
|
|
|
|
|
#
|
|
|
|
|
|
2007-10-11 22:07:47 +00:00
|
|
|
domain = 'gtk2_ardour'
|
2005-09-25 18:42:24 +00:00
|
|
|
|
2005-09-25 20:33:00 +00:00
|
|
|
gtkardour.Append(DOMAIN=domain, MAJOR=1,MINOR=0,MICRO=2)
|
2005-11-26 00:06:46 +00:00
|
|
|
gtkardour.Append(CCFLAGS="-DPACKAGE=\\\"" + domain + "\\\"")
|
2005-09-25 18:42:24 +00:00
|
|
|
gtkardour.Append(CXXFLAGS="-DPACKAGE=\\\"" + domain + "\\\"")
|
2007-11-12 23:44:49 +00:00
|
|
|
gtkardour.Append(CXXFLAGS=["-DLIBSIGC_DISABLE_DEPRECATED", "-DGLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED", "-DGLIBMM_EXCEPTIONS_ENABLED", "-DGLIBMM_PROPERTIES_ENABLED"])
|
2006-11-19 16:45:16 +00:00
|
|
|
gtkardour.Append(CPPPATH="#/") # for top level svn_revision.h
|
2005-12-02 22:12:56 +00:00
|
|
|
#gtkardour.Append(CXXFLAGS="-DFLOWCANVAS_AA")
|
2005-09-25 18:42:24 +00:00
|
|
|
gtkardour.Append(PACKAGE=domain)
|
|
|
|
|
gtkardour.Append(POTFILE=domain + '.pot')
|
|
|
|
|
|
2008-02-02 03:57:35 +00:00
|
|
|
if gtkardour['IS_OSX']:
|
2008-05-12 11:46:53 +00:00
|
|
|
gtkardour.Append (LINKFLAGS="-Xlinker -headerpad -Xlinker 2048 -framework CoreAudio")
|
2007-10-11 22:07:47 +00:00
|
|
|
|
2005-10-06 18:24:23 +00:00
|
|
|
gtkardour.Merge ([
|
|
|
|
|
libraries['ardour'],
|
2006-05-23 19:54:52 +00:00
|
|
|
libraries['ardour_cp'],
|
2008-02-02 17:58:24 +00:00
|
|
|
libraries['asound'],
|
2008-02-02 17:46:56 +00:00
|
|
|
libraries['atkmm'],
|
|
|
|
|
libraries['cairomm'],
|
|
|
|
|
libraries['fftw3'],
|
|
|
|
|
libraries['fftw3f'],
|
2008-03-17 20:54:03 +00:00
|
|
|
libraries['freetype2'],
|
2008-02-02 17:46:56 +00:00
|
|
|
libraries['gdkmm2'],
|
2005-11-01 00:56:09 +00:00
|
|
|
libraries['glib2'],
|
2008-02-02 17:46:56 +00:00
|
|
|
libraries['glibmm2'],
|
|
|
|
|
libraries['gtk2'],
|
|
|
|
|
libraries['gtkmm2'],
|
|
|
|
|
libraries['gtkmm2ext'],
|
|
|
|
|
libraries['jack'],
|
2005-10-22 15:30:17 +00:00
|
|
|
libraries['libgnomecanvas2'],
|
2005-10-06 18:24:23 +00:00
|
|
|
libraries['libgnomecanvasmm'],
|
|
|
|
|
libraries['lrdf'],
|
2008-02-02 17:46:56 +00:00
|
|
|
libraries['midi++2'],
|
2009-02-12 23:28:32 +00:00
|
|
|
libraries['smf'],
|
2008-09-19 00:47:49 +00:00
|
|
|
libraries['evoral'],
|
2005-10-06 18:24:23 +00:00
|
|
|
libraries['pangomm'],
|
2008-02-02 17:46:56 +00:00
|
|
|
libraries['pbd'],
|
2005-10-06 18:24:23 +00:00
|
|
|
libraries['samplerate'],
|
2008-02-02 17:46:56 +00:00
|
|
|
libraries['sigc2'],
|
2008-09-17 11:26:31 +00:00
|
|
|
libraries['sndfile'],
|
2008-09-17 08:44:51 +00:00
|
|
|
libraries['taglib'],
|
2008-02-02 17:46:56 +00:00
|
|
|
libraries['sysmidi'],
|
2008-02-02 03:57:35 +00:00
|
|
|
libraries['vamphost'],
|
2009-04-16 16:02:25 +00:00
|
|
|
libraries['vamp'],
|
2008-02-02 17:46:56 +00:00
|
|
|
libraries['xml'],
|
2008-02-02 17:58:24 +00:00
|
|
|
libraries['xslt']
|
2005-10-06 18:24:23 +00:00
|
|
|
])
|
2005-09-25 18:42:24 +00:00
|
|
|
|
2006-10-21 19:01:50 +00:00
|
|
|
gtkmmtests.Append(CXXFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
|
|
|
|
|
|
|
|
|
|
gtkmmtests.Merge ([
|
2008-02-02 17:46:56 +00:00
|
|
|
libraries['atkmm'],
|
|
|
|
|
libraries['gdkmm2'],
|
2006-10-21 19:01:50 +00:00
|
|
|
libraries['glib2'],
|
|
|
|
|
libraries['glibmm2'],
|
2008-02-02 17:58:24 +00:00
|
|
|
libraries['gtk2'],
|
2008-02-02 17:46:56 +00:00
|
|
|
libraries['gtkmm2'],
|
2006-10-21 19:01:50 +00:00
|
|
|
libraries['pangomm'],
|
2008-02-02 17:58:24 +00:00
|
|
|
libraries['sigc2']
|
2006-10-21 19:01:50 +00:00
|
|
|
])
|
|
|
|
|
|
2006-05-03 20:51:08 +00:00
|
|
|
if gtkardour['DMALLOC']:
|
|
|
|
|
gtkardour.Merge([libraries['dmalloc']])
|
|
|
|
|
gtkardour.Append(CCFLAGS='-DUSE_DMALLOC')
|
|
|
|
|
|
2008-04-11 14:06:50 +00:00
|
|
|
if gtkardour['FREESOUND']:
|
|
|
|
|
gtkardour.Merge ([libraries['curl']])
|
|
|
|
|
gtkardour.Append(CCFLAGS='-DFREESOUND')
|
|
|
|
|
|
2008-01-10 21:20:59 +00:00
|
|
|
if gtkardour['RUBBERBAND']:
|
2008-02-02 03:57:35 +00:00
|
|
|
gtkardour.Merge ([ libraries['rubberband'] ])
|
2008-01-10 21:20:59 +00:00
|
|
|
else:
|
|
|
|
|
gtkardour.Merge ([ libraries['soundtouch'] ])
|
|
|
|
|
|
2006-08-31 19:17:00 +00:00
|
|
|
audiounit_files=Split("""
|
2008-01-10 21:20:59 +00:00
|
|
|
au_pluginui.mm
|
2006-08-11 03:24:57 +00:00
|
|
|
""")
|
Large nasty commit in the form of a 5000 line patch chock-full of completely
unecessary changes. (Sorry, doing a "sprint" based thing, this is the end of the first one)
Achieved MIDI track and bus creation, associated Jack port and diskstream creation, and minimal GUI stuff for creating them. Should be set to start work on actually recording and playing midi to/from disk now.
Relevant (significant) changes:
- Creation of a Buffer class. Base class is type agnostic so things can point to a buffer but not care what kind it is (otherwise it'd be a template). Derived into AudioBuffer and MidiBuffer, with a type tag because checking type is necessary in parts of the code where dynamic_cast wouldn't be wise. Originally I considered this a hack, but passing around a type proved to be a very good solution to all the other problems (below). There is a 1:1 mapping between jack port data types and ardour Buffer types (with a conversion function), but that's easily removed if it ever becomes necessary. Having the type scoped in the Buffer class is maybe not the best spot for it, but whatever (this is proof of concept kinda stuff right now...)
- IO now has a "default" port type (passed to the constructor and stored as a member), used by ensure_io (and similar) to create n ports. IO::register_***_port has a type argument that defaults to the default type if not passed. Rationale: previous IO API is identical, no changes needed to existing code, but path is paved for multiple port types in one IO, which we will need for eg synth plugin inserts, among other things. This is not quite ideal (best would be to only have the two port register functions and have them take a type), but the alternative is a lot of work (namely destroying the 'ensure' functions and everything that uses them) for very little gain. (I am convinced after quite a few tries at the whiteboard that subclassing IO in any way is not a feasible option, look at it's inheritance diagram in Doxygen and you can see why)
- AudioEngine::register_audio_input_port is now register_input_port and takes a type argument. Ditto for output.
- (Most significant change) AudioDiskstream abstracted into Distream, and sibling MidiDiskstream created. Very much still a work in progress, but Diskstream is there to switch references over to (most already are), which is the important part. It is still unclear what the MIDI diskstream's relation to channels is, but I'm pretty sure they will be single channel only (so SMF Type 0) since noone can come up with a reason otherwise.
- MidiTrack creation. Same thing as AudioTrack but with a different default type basically. No big deal here.
- Random cleanups and variable renamings etc. because I have OCD and can't help myself. :)
Known broken: Loading of sessions containing MIDI tracks.
git-svn-id: svn://localhost/ardour2/branches/midi@641 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-06-26 16:01:34 +00:00
|
|
|
|
2007-10-11 22:07:47 +00:00
|
|
|
gtkosx_files=Split("""
|
2008-01-10 21:20:59 +00:00
|
|
|
cocoacarbon.mm
|
2007-10-11 22:07:47 +00:00
|
|
|
""")
|
|
|
|
|
|
|
|
|
|
x11_files=Split("""
|
|
|
|
|
x11.cc
|
|
|
|
|
""")
|
|
|
|
|
|
2005-09-25 18:42:24 +00:00
|
|
|
gtkardour_files=Split("""
|
2005-10-09 17:58:06 +00:00
|
|
|
about.cc
|
2005-10-10 20:38:53 +00:00
|
|
|
actions.cc
|
2007-06-27 21:37:08 +00:00
|
|
|
add_midi_cc_track_dialog.cc
|
2008-02-02 03:57:35 +00:00
|
|
|
add_route_dialog.cc
|
2008-10-13 19:45:20 +00:00
|
|
|
analysis_window.cc
|
2005-09-25 18:42:24 +00:00
|
|
|
ardour_dialog.cc
|
2008-02-02 03:57:35 +00:00
|
|
|
ardour_ui.cc
|
2008-09-23 17:53:52 +00:00
|
|
|
ardour_ui2.cc
|
2005-09-25 18:42:24 +00:00
|
|
|
ardour_ui_dependents.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
ardour_ui_dialogs.cc
|
|
|
|
|
ardour_ui_ed.cc
|
2005-09-25 18:42:24 +00:00
|
|
|
ardour_ui_mixer.cc
|
2005-12-31 18:20:42 +00:00
|
|
|
ardour_ui_options.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
audio_clock.cc
|
2006-07-23 12:03:19 +00:00
|
|
|
audio_region_editor.cc
|
2008-02-02 03:57:35 +00:00
|
|
|
audio_region_view.cc
|
|
|
|
|
audio_streamview.cc
|
|
|
|
|
audio_time_axis.cc
|
2007-06-29 04:02:58 +00:00
|
|
|
automation_controller.cc
|
2008-02-02 03:57:35 +00:00
|
|
|
automation_line.cc
|
2007-08-17 17:25:20 +00:00
|
|
|
automation_region_view.cc
|
2008-02-02 03:57:35 +00:00
|
|
|
automation_streamview.cc
|
|
|
|
|
automation_time_axis.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
axis_view.cc
|
2008-02-02 03:57:35 +00:00
|
|
|
bundle_manager.cc
|
2008-04-29 21:58:05 +00:00
|
|
|
canvas-note-event.cc
|
2008-03-15 00:37:17 +00:00
|
|
|
canvas-note.cc
|
2008-12-11 08:06:27 +00:00
|
|
|
canvas-flag.cc
|
2008-09-23 17:53:52 +00:00
|
|
|
canvas-program-change.cc
|
2009-02-13 08:29:12 +00:00
|
|
|
canvas-sysex.cc
|
2005-09-25 18:42:24 +00:00
|
|
|
canvas-simpleline.c
|
|
|
|
|
canvas-simplerect.c
|
|
|
|
|
canvas-waveview.c
|
2008-02-02 03:57:35 +00:00
|
|
|
control_point.cc
|
2008-12-18 17:46:28 +00:00
|
|
|
control_point_dialog.cc
|
2005-09-25 18:42:24 +00:00
|
|
|
crossfade_edit.cc
|
|
|
|
|
crossfade_view.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
curvetest.cc
|
2008-02-02 03:57:35 +00:00
|
|
|
diamond.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
editing.cc
|
2008-09-23 17:53:52 +00:00
|
|
|
editor.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
editor_actions.cc
|
2006-03-22 17:03:00 +00:00
|
|
|
editor_audio_import.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
editor_audiotrack.cc
|
2005-11-28 22:36:26 +00:00
|
|
|
editor_canvas.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
editor_canvas_events.cc
|
|
|
|
|
editor_cursors.cc
|
2005-09-25 18:42:24 +00:00
|
|
|
editor_edit_groups.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
editor_export_audio.cc
|
|
|
|
|
editor_hscroller.cc
|
2005-09-25 18:42:24 +00:00
|
|
|
editor_keyboard.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
editor_keys.cc
|
|
|
|
|
editor_markers.cc
|
|
|
|
|
editor_mixer.cc
|
2005-09-25 18:42:24 +00:00
|
|
|
editor_mouse.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
editor_nudge.cc
|
2005-09-25 18:42:24 +00:00
|
|
|
editor_ops.cc
|
|
|
|
|
editor_region_list.cc
|
|
|
|
|
editor_route_list.cc
|
|
|
|
|
editor_rulers.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
editor_scrub.cc
|
2007-01-28 17:44:13 +00:00
|
|
|
editor_selection.cc
|
2005-09-25 18:42:24 +00:00
|
|
|
editor_selection_list.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
editor_tempodisplay.cc
|
|
|
|
|
editor_timefx.cc
|
2007-10-11 22:07:47 +00:00
|
|
|
engine_dialog.cc
|
2008-02-02 03:57:35 +00:00
|
|
|
enums.cc
|
2008-09-17 08:44:51 +00:00
|
|
|
export_channel_selector.cc
|
2008-09-29 17:01:52 +00:00
|
|
|
export_dialog.cc
|
2008-09-17 08:44:51 +00:00
|
|
|
export_filename_selector.cc
|
2008-09-29 17:01:52 +00:00
|
|
|
export_file_notebook.cc
|
2008-09-23 17:53:52 +00:00
|
|
|
export_format_dialog.cc
|
2008-09-17 08:44:51 +00:00
|
|
|
export_format_selector.cc
|
2008-09-29 17:01:52 +00:00
|
|
|
export_preset_selector.cc
|
2008-09-17 08:44:51 +00:00
|
|
|
export_timespan_selector.cc
|
2008-10-13 19:45:20 +00:00
|
|
|
fft.cc
|
|
|
|
|
fft_graph.cc
|
|
|
|
|
fft_result.cc
|
2008-10-15 19:21:26 +00:00
|
|
|
plugin_eq_gui.cc
|
2005-09-25 18:42:24 +00:00
|
|
|
gain_meter.cc
|
2008-01-10 21:20:59 +00:00
|
|
|
generic_pluginui.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
ghostregion.cc
|
2009-01-23 21:24:11 +00:00
|
|
|
global_port_matrix.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
gtk-custom-hruler.c
|
|
|
|
|
gtk-custom-ruler.c
|
2005-09-25 18:42:24 +00:00
|
|
|
io_selector.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
keyboard.cc
|
2007-10-12 01:54:35 +00:00
|
|
|
keyeditor.cc
|
2007-06-27 22:06:35 +00:00
|
|
|
latency_gui.cc
|
2007-12-20 23:25:19 +00:00
|
|
|
level_meter.cc
|
2008-02-02 03:57:35 +00:00
|
|
|
lineset.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
location_ui.cc
|
|
|
|
|
main.cc
|
|
|
|
|
marker.cc
|
2008-09-23 17:53:52 +00:00
|
|
|
midi_channel_selector.cc
|
2008-02-02 03:57:35 +00:00
|
|
|
midi_port_dialog.cc
|
|
|
|
|
midi_region_view.cc
|
|
|
|
|
midi_scroomer.cc
|
|
|
|
|
midi_streamview.cc
|
|
|
|
|
midi_time_axis.cc
|
2005-09-25 18:42:24 +00:00
|
|
|
mixer_strip.cc
|
|
|
|
|
mixer_ui.cc
|
2008-12-12 14:43:24 +00:00
|
|
|
nag.cc
|
2005-09-25 18:42:24 +00:00
|
|
|
option_editor.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
opts.cc
|
2008-02-02 03:57:35 +00:00
|
|
|
panner.cc
|
2008-09-23 17:53:52 +00:00
|
|
|
panner2d.cc
|
2005-09-25 18:42:24 +00:00
|
|
|
panner_ui.cc
|
2008-01-13 17:45:17 +00:00
|
|
|
piano_roll_header.cc
|
2005-09-25 18:42:24 +00:00
|
|
|
playlist_selector.cc
|
|
|
|
|
plugin_selector.cc
|
|
|
|
|
plugin_ui.cc
|
2009-01-13 01:15:19 +00:00
|
|
|
port_group.cc
|
2009-01-20 14:46:00 +00:00
|
|
|
port_matrix.cc
|
|
|
|
|
port_matrix_body.cc
|
|
|
|
|
port_matrix_column_labels.cc
|
|
|
|
|
port_matrix_component.cc
|
|
|
|
|
port_matrix_grid.cc
|
2009-02-03 01:55:25 +00:00
|
|
|
port_matrix_labels.cc
|
2009-01-20 14:46:00 +00:00
|
|
|
port_matrix_row_labels.cc
|
2008-02-02 03:57:35 +00:00
|
|
|
processor_box.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
prompter.cc
|
|
|
|
|
public_editor.cc
|
|
|
|
|
region_gain_line.cc
|
|
|
|
|
region_selection.cc
|
2006-08-01 17:19:38 +00:00
|
|
|
region_view.cc
|
2008-02-02 03:57:35 +00:00
|
|
|
rhythm_ferret.cc
|
2005-09-25 18:42:24 +00:00
|
|
|
route_params_ui.cc
|
2007-06-27 20:23:48 +00:00
|
|
|
route_processor_selection.cc
|
2008-02-02 03:57:35 +00:00
|
|
|
route_time_axis.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
route_ui.cc
|
|
|
|
|
selection.cc
|
|
|
|
|
send_ui.cc
|
2008-09-26 08:29:30 +00:00
|
|
|
session_import_dialog.cc
|
2008-09-17 08:44:51 +00:00
|
|
|
session_metadata_dialog.cc
|
2008-02-02 03:57:35 +00:00
|
|
|
sfdb_ui.cc
|
|
|
|
|
simpleline.cc
|
|
|
|
|
simplerect.cc
|
2008-01-19 03:49:52 +00:00
|
|
|
splash.cc
|
2009-03-04 23:06:18 +00:00
|
|
|
startup.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
streamview.cc
|
2009-04-29 17:01:14 +00:00
|
|
|
strip_silence_dialog.cc
|
2008-02-02 03:57:35 +00:00
|
|
|
tape_region_view.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
tempo_dialog.cc
|
2008-02-02 03:57:35 +00:00
|
|
|
tempo_lines.cc
|
2007-05-25 20:29:12 +00:00
|
|
|
theme_manager.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
time_axis_view.cc
|
|
|
|
|
time_axis_view_item.cc
|
2009-02-27 01:20:25 +00:00
|
|
|
time_fx_dialog.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
time_selection.cc
|
2007-06-29 17:13:09 +00:00
|
|
|
ui_config.cc
|
2005-10-09 17:58:06 +00:00
|
|
|
utils.cc
|
|
|
|
|
version.cc
|
2005-11-13 18:13:50 +00:00
|
|
|
waveview.cc
|
2006-03-13 03:27:58 +00:00
|
|
|
""")
|
|
|
|
|
|
2008-04-11 14:06:50 +00:00
|
|
|
freesound_files=Split("""
|
|
|
|
|
sfdb_freesound_mootcher.cc
|
|
|
|
|
""")
|
|
|
|
|
|
2006-10-21 19:01:50 +00:00
|
|
|
pixmap_files = glob.glob('pixmaps/*.xpm')
|
|
|
|
|
icon_files = glob.glob ('icons/*.png')
|
2005-11-14 08:38:16 +00:00
|
|
|
|
2006-05-12 00:30:13 +00:00
|
|
|
intl_files = gtkardour_files + glob.glob('*.h')
|
2005-11-14 08:38:16 +00:00
|
|
|
|
2008-01-10 21:20:59 +00:00
|
|
|
evtest_files=Split("""
|
|
|
|
|
evtest.cc
|
|
|
|
|
""")
|
|
|
|
|
|
2005-10-09 05:03:29 +00:00
|
|
|
mtest_files=Split("""
|
|
|
|
|
mtest.cc
|
|
|
|
|
""")
|
|
|
|
|
|
2006-08-12 19:43:09 +00:00
|
|
|
|
|
|
|
|
rcu_files=Split("""
|
|
|
|
|
rcu.cc
|
|
|
|
|
""")
|
|
|
|
|
|
2005-11-01 00:56:09 +00:00
|
|
|
itest_files=Split("""
|
|
|
|
|
itest.cc
|
|
|
|
|
""")
|
|
|
|
|
|
2006-08-29 21:21:48 +00:00
|
|
|
stest_files=Split("""
|
|
|
|
|
stest.cc
|
|
|
|
|
""")
|
|
|
|
|
|
2006-10-21 19:01:50 +00:00
|
|
|
tt_files=Split ("""
|
|
|
|
|
tt.cc
|
|
|
|
|
""")
|
|
|
|
|
|
2005-09-25 18:42:24 +00:00
|
|
|
extra_sources = []
|
2006-06-21 18:14:45 +00:00
|
|
|
|
2005-09-25 18:42:24 +00:00
|
|
|
vst_files = [ 'vst_pluginui.cc' ]
|
|
|
|
|
|
|
|
|
|
if env['VST']:
|
2006-06-21 18:14:45 +00:00
|
|
|
extra_sources += vst_files
|
|
|
|
|
gtkardour.Append (CCFLAGS="-DVST_SUPPORT", CPPPATH="#libs/fst")
|
2006-08-11 03:24:57 +00:00
|
|
|
|
2008-09-10 21:27:39 +00:00
|
|
|
lv2_files = [ 'lv2_plugin_ui.cc' ]
|
|
|
|
|
|
2008-01-19 03:49:52 +00:00
|
|
|
if env['LV2']:
|
2008-09-10 21:27:39 +00:00
|
|
|
extra_sources += lv2_files
|
|
|
|
|
gtkardour.Append (CCFLAGS="-DHAVE_LV2")
|
2008-01-19 05:06:33 +00:00
|
|
|
gtkardour.Merge ([libraries['slv2']])
|
|
|
|
|
|
2007-05-11 02:54:43 +00:00
|
|
|
|
2007-10-11 22:07:47 +00:00
|
|
|
if gtkardour['GTKOSX']:
|
2008-01-10 21:20:59 +00:00
|
|
|
extra_sources += gtkosx_files
|
|
|
|
|
gtkardour.Append (CCFLAGS="-DTOP_MENUBAR -DGTKOSX")
|
|
|
|
|
gtkardour.Append (LINKFLAGS=" -framework AppKit -framework CoreAudioKit")
|
|
|
|
|
|
|
|
|
|
if gtkardour['AUDIOUNITS']:
|
|
|
|
|
extra_sources += audiounit_files
|
|
|
|
|
gtkardour.Append(CCFLAGS='-DHAVE_AUDIOUNITS')
|
|
|
|
|
gtkardour.Merge([libraries['appleutility']])
|
|
|
|
|
|
2007-10-11 22:07:47 +00:00
|
|
|
else:
|
|
|
|
|
extra_sources += x11_files
|
|
|
|
|
|
2006-08-11 03:24:57 +00:00
|
|
|
|
2008-04-11 14:06:50 +00:00
|
|
|
if env['FREESOUND']:
|
|
|
|
|
extra_sources += freesound_files
|
|
|
|
|
|
2005-11-14 08:38:16 +00:00
|
|
|
intl_files += extra_sources
|
|
|
|
|
|
2005-09-25 18:42:24 +00:00
|
|
|
gtkardour.Append(CCFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE")
|
|
|
|
|
gtkardour.Append(CXXFLAGS="-DLOCALEDIR=\\\""+final_prefix+"/share/locale\\\"")
|
|
|
|
|
|
|
|
|
|
versionflag = '-DVERSIONSTRING=\\\"' + env['VERSION'] + '\\\"'
|
|
|
|
|
|
|
|
|
|
gtkardour.Append(CXXFLAGS=versionflag)
|
|
|
|
|
|
2007-01-09 23:24:54 +00:00
|
|
|
executable = 'ardour-' + ardour_version
|
2005-09-25 18:42:24 +00:00
|
|
|
|
|
|
|
|
ardour = gtkardour.Program(target = executable, source = gtkardour_files + extra_sources)
|
2006-06-21 18:14:45 +00:00
|
|
|
ardourlib = gtkardour.SharedLibrary(target = 'ardourgtk', source = gtkardour_files + extra_sources)
|
|
|
|
|
|
2008-01-10 21:20:59 +00:00
|
|
|
evest = gtkmmtests.Program(target = 'evtest', source = evtest_files)
|
2005-10-09 05:03:29 +00:00
|
|
|
mtest = gtkardour.Program(target = 'mtest', source = mtest_files)
|
2005-12-30 00:34:21 +00:00
|
|
|
itest = gtkardour.Program(target = 'itest', source = itest_files)
|
2006-08-12 19:43:09 +00:00
|
|
|
rcu = gtkardour.Program(target = 'rcu', source = rcu_files)
|
2006-10-21 19:01:50 +00:00
|
|
|
tt = gtkmmtests.Program(target = 'tt', source = tt_files)
|
2005-09-25 18:42:24 +00:00
|
|
|
|
2007-08-02 19:18:40 +00:00
|
|
|
my_font_dict = { }
|
|
|
|
|
|
2008-02-02 03:57:35 +00:00
|
|
|
if gtkardour['IS_OSX']:
|
2007-08-02 19:18:40 +00:00
|
|
|
#
|
|
|
|
|
# OS X font rendering is different even with X11
|
|
|
|
|
#
|
2008-02-16 22:43:18 +00:00
|
|
|
|
|
|
|
|
font_sizes = {
|
|
|
|
|
'TINY' : '7',
|
|
|
|
|
'SMALLER' : '9',
|
|
|
|
|
'SMALL' : '10',
|
|
|
|
|
'NORMAL' : '11',
|
|
|
|
|
'BIG' : '12',
|
|
|
|
|
'BIGGER' : '14',
|
|
|
|
|
'LARGE' : '18',
|
|
|
|
|
'LARGER' : '28',
|
|
|
|
|
'HUGER' : '36',
|
|
|
|
|
'MASSIVE' : '60'
|
|
|
|
|
}
|
|
|
|
|
basefont = "Lucida Grande"
|
|
|
|
|
|
2007-08-02 19:18:40 +00:00
|
|
|
else:
|
|
|
|
|
#
|
|
|
|
|
# Linux/X11 font rendering
|
|
|
|
|
#
|
2008-02-16 22:43:18 +00:00
|
|
|
|
|
|
|
|
if gtkardour['OLDFONTS']:
|
|
|
|
|
font_sizes = {
|
|
|
|
|
'TINY' : '4',
|
|
|
|
|
'SMALLER' : '6',
|
|
|
|
|
'SMALL' : '7',
|
|
|
|
|
'NORMAL' : '8',
|
|
|
|
|
'BIG' : '12',
|
|
|
|
|
'BIGGER' : '14',
|
|
|
|
|
'LARGE' : '18',
|
|
|
|
|
'LARGER' : '24',
|
|
|
|
|
'HUGER' : '34',
|
|
|
|
|
'MASSIVE' : '60'
|
|
|
|
|
}
|
|
|
|
|
else:
|
|
|
|
|
font_sizes = {
|
|
|
|
|
'TINY' : '6',
|
|
|
|
|
'SMALLER' : '8',
|
|
|
|
|
'SMALL' : '9',
|
|
|
|
|
'NORMAL' : '10',
|
|
|
|
|
'BIG' : '14',
|
|
|
|
|
'BIGGER' : '16',
|
|
|
|
|
'LARGE' : '18',
|
|
|
|
|
'LARGER' : '24',
|
|
|
|
|
'HUGER' : '34',
|
|
|
|
|
'MASSIVE' : '60'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
basefont = "sans"
|
|
|
|
|
|
|
|
|
|
for style in ['', 'BOLD', 'ITALIC']:
|
|
|
|
|
for sizename,points in font_sizes.iteritems():
|
|
|
|
|
if (len (style)):
|
|
|
|
|
key = "_".join (['FONT',style,sizename])
|
|
|
|
|
fontstyle = " ".join ([basefont,style.lower(),points])
|
|
|
|
|
else:
|
|
|
|
|
key = "_".join (['FONT',sizename])
|
|
|
|
|
fontstyle = " ".join ([basefont,points])
|
|
|
|
|
|
|
|
|
|
key = '%' + key + '%'
|
|
|
|
|
my_font_dict[key] = fontstyle
|
2007-08-02 19:18:40 +00:00
|
|
|
|
2008-12-12 14:43:24 +00:00
|
|
|
#
|
|
|
|
|
# create menus based on build platform
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
if env['GTKOSX']:
|
|
|
|
|
ardour_menus = env.Command ('ardour.menus', 'ardour.menus.in', "cpp -E -P -DGTKOSX -DTOP_MENUBAR ardour.menus.in ardour.menus", chdir=1)
|
|
|
|
|
else:
|
|
|
|
|
ardour_menus = env.Command ('ardour.menus', 'ardour.menus.in', "cpp -E -P ardour.menus.in ardour.menus", chdir=1)
|
|
|
|
|
|
|
|
|
|
ardour_dark_theme = env.SubstInFile ('ardour3_ui_dark.rc',
|
|
|
|
|
'ardour3_ui_dark.rc.in',
|
|
|
|
|
SUBST_DICT = my_font_dict)
|
|
|
|
|
ardour_light_theme = env.SubstInFile ('ardour3_ui_light.rc',
|
|
|
|
|
'ardour3_ui_light.rc.in',
|
|
|
|
|
SUBST_DICT = my_font_dict)
|
|
|
|
|
|
|
|
|
|
ardour_dark_sae_theme = env.SubstInFile ('ardour3_ui_dark_sae.rc',
|
|
|
|
|
'ardour3_ui_dark_sae.rc.in',
|
|
|
|
|
SUBST_DICT = my_font_dict)
|
|
|
|
|
ardour_light_sae_theme = env.SubstInFile ('ardour3_ui_light_sae.rc',
|
|
|
|
|
'ardour3_ui_light_sae.rc.in',
|
|
|
|
|
SUBST_DICT = my_font_dict)
|
2007-08-02 19:18:40 +00:00
|
|
|
|
2006-04-26 00:45:27 +00:00
|
|
|
my_subst_dict = { }
|
2007-03-18 06:07:08 +00:00
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# null substitution just to avoid ardour.bindings being in svn
|
|
|
|
|
#
|
|
|
|
|
|
2008-01-10 21:20:59 +00:00
|
|
|
keybindings_dict = { }
|
|
|
|
|
|
2008-09-10 15:03:30 +00:00
|
|
|
if gtkardour['GTKOSX']:
|
2008-01-10 21:20:59 +00:00
|
|
|
#
|
2008-02-16 22:43:18 +00:00
|
|
|
# Command(Meta), Alt(Mod1), Ctrl, Shift
|
|
|
|
|
# **** as of february 4th 2008, OUR VERSION OF *****
|
|
|
|
|
# Gtk/Quartz maps:
|
|
|
|
|
# NSCommand (aka "Command" aka "Apple" aka "Cauliflower") -> Meta
|
|
|
|
|
# NSAlternate (aka "Option") -> Mod1
|
2008-01-10 21:20:59 +00:00
|
|
|
#
|
2008-02-16 22:43:18 +00:00
|
|
|
keybindings_dict['%PRIMARY%'] = 'Meta'
|
|
|
|
|
keybindings_dict['%SECONDARY%'] = 'Mod1'
|
2008-01-10 21:20:59 +00:00
|
|
|
keybindings_dict['%TERTIARY%'] = 'Shift'
|
|
|
|
|
keybindings_dict['%LEVEL4%'] = 'Ctrl'
|
2008-02-16 22:43:18 +00:00
|
|
|
keybindings_dict['%WINDOW%'] = 'Mod1'
|
2008-01-10 21:20:59 +00:00
|
|
|
else:
|
|
|
|
|
#
|
2008-03-17 20:54:03 +00:00
|
|
|
# Ctrl, Alt, Shift, Mod4(Super/Windows/Hyper)
|
2008-01-10 21:20:59 +00:00
|
|
|
#
|
|
|
|
|
keybindings_dict['%PRIMARY%'] = 'Ctrl'
|
|
|
|
|
keybindings_dict['%SECONDARY%'] = 'Alt'
|
|
|
|
|
keybindings_dict['%TERTIARY%'] = 'Shift'
|
2008-03-17 20:54:03 +00:00
|
|
|
keybindings_dict['%LEVEL4%'] = env['WINDOWS_KEY']
|
2008-01-10 22:22:29 +00:00
|
|
|
keybindings_dict['%WINDOW%'] = 'Alt'
|
2008-01-10 21:20:59 +00:00
|
|
|
|
2008-12-12 14:43:24 +00:00
|
|
|
for b in [ 'SAE-de-keypad', 'SAE-de-nokeypad', 'SAE-us-keypad', 'SAE-us-nokeypad', 'mnemonic-us', 'ergonomic-us' ]:
|
2008-02-16 22:43:18 +00:00
|
|
|
target_file = b + '.bindings'
|
|
|
|
|
src_file = target_file + '.in'
|
|
|
|
|
Default (env.SubstInFile (target_file, src_file, SUBST_DICT = keybindings_dict))
|
2007-03-18 06:07:08 +00:00
|
|
|
|
2009-02-26 22:30:13 +00:00
|
|
|
my_subst_dict['@INSTALL_PREFIX@'] = final_prefix
|
|
|
|
|
my_subst_dict['@LIBDIR@'] = env['LIBDIR']
|
|
|
|
|
my_subst_dict['@LIBS@'] = 'libs'
|
|
|
|
|
my_subst_dict['@VERSION@'] = ardour_version
|
2009-02-26 23:43:10 +00:00
|
|
|
my_subst_dict['@EXECUTABLE@'] = 'gtk2_ardour/ardour-' + ardour_version
|
2006-04-26 00:45:27 +00:00
|
|
|
|
|
|
|
|
ardoursh = env.SubstInFile ('ardour.sh','ardour.sh.in', SUBST_DICT = my_subst_dict);
|
2006-04-26 00:58:34 +00:00
|
|
|
env.AddPostAction (ardoursh, Chmod ('$TARGET', 0755))
|
2006-04-26 00:45:27 +00:00
|
|
|
|
2007-01-09 23:24:54 +00:00
|
|
|
ardourdev = env.SubstInFile ('ardev_common.sh','ardev_common.sh.in', SUBST_DICT = my_subst_dict);
|
|
|
|
|
env.AddPostAction (ardourdev, Chmod ('$TARGET', 0755))
|
|
|
|
|
|
|
|
|
|
Default(ardourdev)
|
|
|
|
|
Default(ardoursh)
|
2007-08-02 19:18:40 +00:00
|
|
|
Default(ardour_dark_theme)
|
|
|
|
|
Default(ardour_light_theme)
|
2008-12-12 14:43:24 +00:00
|
|
|
Default(ardour_dark_sae_theme)
|
|
|
|
|
Default(ardour_light_sae_theme)
|
|
|
|
|
Default(ardour_menus)
|
2007-01-09 23:24:54 +00:00
|
|
|
|
2006-06-21 18:14:45 +00:00
|
|
|
if env['VST']:
|
|
|
|
|
Default(ardourlib)
|
|
|
|
|
# the library - into the library dir
|
2008-01-13 21:34:04 +00:00
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3'), ardourlib))
|
2006-06-21 18:14:45 +00:00
|
|
|
else:
|
|
|
|
|
|
|
|
|
|
if env['VERSIONED']:
|
|
|
|
|
Default (env.VersionedExecutable ('tagged_executable', ardour))
|
|
|
|
|
else:
|
|
|
|
|
Default(ardour)
|
2005-09-25 18:42:24 +00:00
|
|
|
|
2006-06-21 18:14:45 +00:00
|
|
|
#install
|
|
|
|
|
|
|
|
|
|
# the executable - into the library dir
|
2008-01-13 21:34:04 +00:00
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3'), ardour))
|
2006-06-21 18:14:45 +00:00
|
|
|
# the script - into the bin dir
|
2008-01-13 21:34:04 +00:00
|
|
|
env.Alias('install', env.InstallAs(os.path.join(install_prefix, 'bin')+'/ardour3', ardoursh))
|
2005-09-25 18:42:24 +00:00
|
|
|
|
|
|
|
|
if env['NLS']:
|
2009-02-09 03:20:23 +00:00
|
|
|
i18n (gtkardour, gtkardour_files, env)
|
2005-11-14 08:38:16 +00:00
|
|
|
|
2006-04-26 00:45:27 +00:00
|
|
|
# configuration files
|
2008-01-13 21:34:04 +00:00
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), ardour_dark_theme))
|
|
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), ardour_light_theme))
|
2008-12-12 14:43:24 +00:00
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), ardour_dark_sae_theme))
|
|
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), ardour_light_sae_theme))
|
2008-02-21 19:30:01 +00:00
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), 'ardour3_ui_default.conf'))
|
2008-01-13 21:34:04 +00:00
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), 'ardour.menus'))
|
|
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), 'ardour-sae.menus'))
|
2008-02-21 19:30:01 +00:00
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), 'ergonomic-us.bindings'))
|
|
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), 'mnemonic-us.bindings'))
|
2008-12-12 14:43:24 +00:00
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), 'SAE-de-keypad.bindings'))
|
|
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), 'SAE-us-keypad.bindings'))
|
|
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), 'SAE-de-nokeypad.bindings'))
|
|
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour3'), 'SAE-us-nokeypad.bindings'))
|
2006-04-26 00:45:27 +00:00
|
|
|
# data files
|
2008-01-13 21:34:04 +00:00
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, 'share', 'ardour3'), 'splash.png'))
|
|
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, 'share', 'ardour3', 'pixmaps'), pixmap_files))
|
|
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, 'share', 'ardour3', 'icons'), icon_files))
|
2006-11-19 16:45:16 +00:00
|
|
|
env.Alias ('version', gtkardour.VersionBuild(['version.cc','version.h'], []))
|
2008-09-10 15:03:30 +00:00
|
|
|
env.Alias ('version', gtkardour.VersionBuild(['version.cc','version.h'], []))
|
2008-03-17 20:54:03 +00:00
|
|
|
|
|
|
|
|
# This will install icons and MIME type as per freedesktop.org specs. #
|
|
|
|
|
if env['FREEDESKTOP']:
|
|
|
|
|
desktop_icon_install_prefix = install_prefix + '/share/icons/hicolor'
|
|
|
|
|
# Install the desktop icons to the default locations #
|
2009-02-18 18:32:13 +00:00
|
|
|
env.Alias('install', env.InstallAs(os.path.join(desktop_icon_install_prefix, '16x16', 'apps', 'ardour3.png'), 'icons/ardour_icon_16px.png'))
|
|
|
|
|
env.Alias('install', env.InstallAs(os.path.join(desktop_icon_install_prefix, '22x22', 'apps', 'ardour3.png'), 'icons/ardour_icon_22px.png'))
|
|
|
|
|
env.Alias('install', env.InstallAs(os.path.join(desktop_icon_install_prefix, '32x32', 'apps', 'ardour3.png'), 'icons/ardour_icon_32px.png'))
|
|
|
|
|
env.Alias('install', env.InstallAs(os.path.join(desktop_icon_install_prefix, '48x48', 'apps', 'ardour3.png'), 'icons/ardour_icon_48px.png'))
|
2008-03-17 20:54:03 +00:00
|
|
|
# Install the mime type xml file and its icon #
|
2009-02-18 18:32:13 +00:00
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, 'share', 'mime', 'packages'), 'ardour3.xml'))
|
|
|
|
|
env.Alias('install', env.InstallAs(os.path.join(desktop_icon_install_prefix, '16x16', 'mimetypes', 'application-x-ardour3.png'), 'icons/application-x-ardour_16px.png'))
|
|
|
|
|
env.Alias('install', env.InstallAs(os.path.join(desktop_icon_install_prefix, '22x22', 'mimetypes', 'application-x-ardour3.png'), 'icons/application-x-ardour_22px.png'))
|
|
|
|
|
env.Alias('install', env.InstallAs(os.path.join(desktop_icon_install_prefix, '32x32', 'mimetypes', 'application-x-ardour3.png'), 'icons/application-x-ardour_32px.png'))
|
|
|
|
|
env.Alias('install', env.InstallAs(os.path.join(desktop_icon_install_prefix, '48x48', 'mimetypes', 'application-x-ardour3.png'), 'icons/application-x-ardour_48px.png'))
|
2008-03-17 20:54:03 +00:00
|
|
|
env.Alias('install', env.Command (os.path.join(install_prefix, 'share', 'mime'), [], 'update-mime-database $TARGET'))
|
|
|
|
|
# Update the icon cache #
|
|
|
|
|
env.Alias('install', env.Command (desktop_icon_install_prefix, [], 'touch --no-create $TARGET'))
|
|
|
|
|
env.Alias('install', env.Command (desktop_icon_install_prefix, [], 'gtk-update-icon-cache $TARGET'))
|
2009-02-18 18:32:13 +00:00
|
|
|
# Make the ardour3.desktop file and install it #
|
|
|
|
|
env.Alias('install', env.Command ('ardour3.desktop', 'ardour3.desktop.in', 'cat $SOURCES > $TARGET'))
|
|
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, 'share', 'applications'), 'ardour3.desktop'))
|
2008-03-17 20:54:03 +00:00
|
|
|
env.Alias('install', env.Command (os.path.join(install_prefix, 'share', 'applications'), [], 'update-desktop-database $TARGET'))
|
|
|
|
|
# uninstall target.. needed to run update-mime-database and update-desktop-database after removal. #`
|
|
|
|
|
remove_desktop_files = env.Command ('another_frobnicatory_decoy', [],
|
2009-02-18 18:32:13 +00:00
|
|
|
[ Delete (install_prefix + '/share/mime/packages/ardour3.xml'),
|
|
|
|
|
Delete (install_prefix + '/share/applications/ardour3.desktop'),
|
|
|
|
|
Delete (desktop_icon_install_prefix + '/16x16/apps/ardour3.png'),
|
|
|
|
|
Delete (desktop_icon_install_prefix + '/22x22/apps/ardour3.png'),
|
|
|
|
|
Delete (desktop_icon_install_prefix + '/32x32/apps/ardour3.png'),
|
|
|
|
|
Delete (desktop_icon_install_prefix + '/48x48/apps/ardour3.png'),
|
|
|
|
|
Delete (desktop_icon_install_prefix + '/16x16/mimetypes/application-x-ardour3.png'),
|
|
|
|
|
Delete (desktop_icon_install_prefix + '/22x22/mimetypes/application-x-ardour3.png'),
|
|
|
|
|
Delete (desktop_icon_install_prefix + '/32x32/mimetypes/application-x-ardour3.png'),
|
|
|
|
|
Delete (desktop_icon_install_prefix + '/48x48/mimetypes/application-x-ardour3.png'),
|
2008-03-17 20:54:03 +00:00
|
|
|
Action ('update-mime-database ' + install_prefix + '/share/mime'),
|
|
|
|
|
Action ('gtk-update-icon-cache ' + desktop_icon_install_prefix),
|
|
|
|
|
Action ('update-desktop-database ' + install_prefix + '/share/applications')])
|
|
|
|
|
env.Alias('uninstall', remove_desktop_files)
|
|
|
|
|
|
2005-09-25 18:42:24 +00:00
|
|
|
#dist
|
|
|
|
|
env.Alias ('tarball', env.Distribute (env['DISTTREE'],
|
|
|
|
|
[ 'SConscript',
|
|
|
|
|
'i18n.h', 'gettext.h',
|
2006-06-13 07:27:52 +00:00
|
|
|
'ardour.sh.in',
|
2007-01-28 17:44:13 +00:00
|
|
|
'ardev_common.sh.in',
|
2007-04-14 18:39:01 +00:00
|
|
|
'ardev', 'ardbg',
|
2008-12-12 14:43:24 +00:00
|
|
|
'ardour3_ui_dark.rc.in',
|
|
|
|
|
'ardour3_ui_light.rc.in',
|
|
|
|
|
'ardour3_ui_dark_sae.rc.in',
|
|
|
|
|
'ardour3_ui_light_sae.rc.in',
|
|
|
|
|
'splash.png',
|
|
|
|
|
'ardour.menus.in',
|
|
|
|
|
'ardour-sae.menus',
|
2008-04-11 14:06:50 +00:00
|
|
|
'mnemonic-us.bindings.in',
|
|
|
|
|
'ergonomic-us.bindings.in',
|
2008-12-12 14:43:24 +00:00
|
|
|
'SAE-us-keypad.bindings.in',
|
|
|
|
|
'SAE-us-nokeypad.bindings.in',
|
|
|
|
|
'SAE-de-keypad.bindings.in',
|
|
|
|
|
'SAE-de-nokeypad.bindings.in',
|
2008-01-13 21:34:04 +00:00
|
|
|
'ardour3_ui_default.conf',
|
2008-03-17 20:54:03 +00:00
|
|
|
'editor_xpms',
|
2009-02-18 18:32:13 +00:00
|
|
|
'ardour3.xml',
|
|
|
|
|
'ardour3.desktop.in'
|
2005-09-25 18:42:24 +00:00
|
|
|
] +
|
2006-10-21 19:01:50 +00:00
|
|
|
gtkardour_files +
|
|
|
|
|
vst_files +
|
|
|
|
|
pixmap_files +
|
|
|
|
|
icon_files +
|
|
|
|
|
audiounit_files +
|
2008-12-12 14:43:24 +00:00
|
|
|
lv2_files +
|
2007-10-11 22:07:47 +00:00
|
|
|
gtkosx_files +
|
|
|
|
|
x11_files +
|
2008-04-11 14:06:50 +00:00
|
|
|
freesound_files +
|
2006-10-21 19:01:50 +00:00
|
|
|
glob.glob('po/*.po') + glob.glob('*.h')))
|
2005-09-25 18:42:24 +00:00
|
|
|
|
|
|
|
|
# generate a prototype full-featured ardour_ui.rc file
|
|
|
|
|
|
|
|
|
|
env.Alias ('protorc', env.Command ('proto.rc', gtkardour_files, """
|
|
|
|
|
grep set_name $SOURCES | \
|
|
|
|
|
sed 's/.*("\([a-zA-Z_][a-zA-Z_]*\)").*/\\1/' | \
|
|
|
|
|
grep -v '\\.' | sort | uniq | \
|
|
|
|
|
awk '/\\./ {} { printf ("style \\"%s\\"\\n{\\n\
|
|
|
|
|
fg[NORMAL] = { 0, 0, 0 }\\n\
|
|
|
|
|
fg[ACTIVE] = { 0, 0, 0 }\\n\
|
|
|
|
|
fg[SELECTED] = { 0, 0, 0 }\\n\
|
|
|
|
|
bg[NORMAL] = { 0, 0, 0 }\\n\
|
|
|
|
|
bg[ACTIVE] = { 0, 0, 0 }\\n\
|
|
|
|
|
bg[SELECTED] = { 0, 0, 0 }\\n\
|
|
|
|
|
}\\nwidget \\"*%s\\" style \\"%s\\"\\nwidget \\"*%s*\\" style \\"%s\\"\\n\\n", \
|
|
|
|
|
$$0, $$0, $$0, $$0, $$0) }' > $TARGET && \
|
|
|
|
|
grep 'color_map\[[a-zA-Z_][a-zA-Z]*\]' $SOURCES | \
|
|
|
|
|
sed 's/.*\[\([a-zA-Z_][a-zA-Z_]*\)].*/\\1/'| \
|
|
|
|
|
sort | uniq | \
|
|
|
|
|
awk '{ printf ("style \\"%s\\"\\n{\\n\
|
|
|
|
|
fg[NORMAL] = { 0, 0, 0 }\\n\
|
|
|
|
|
fg[ACTIVE] = { 0, 0, 0 }\\n\
|
|
|
|
|
}\\nwidget \\"*%s\\" style \\"%s\\"\\n \\n\\n", $$0, $$0, $$0) }' >> $TARGET ;
|
|
|
|
|
"""
|
|
|
|
|
))
|