2005-09-25 14:42:24 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
import os
|
|
|
|
import os.path
|
|
|
|
import glob
|
|
|
|
|
2007-01-09 18:24:54 -05:00
|
|
|
Import('env install_prefix final_prefix config_prefix libraries i18n ardour_version')
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
gtkardour = env.Copy()
|
2006-10-21 15:01:50 -04:00
|
|
|
gtkmmtests = env.Copy()
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
#
|
|
|
|
# this defines the version number of the GTK interface to ardour
|
|
|
|
#
|
|
|
|
|
|
|
|
domain = 'gtk_ardour'
|
|
|
|
|
2005-09-25 16:33:00 -04:00
|
|
|
gtkardour.Append(DOMAIN=domain, MAJOR=1,MINOR=0,MICRO=2)
|
2005-11-25 19:06:46 -05:00
|
|
|
gtkardour.Append(CCFLAGS="-DPACKAGE=\\\"" + domain + "\\\"")
|
2005-09-25 14:42:24 -04:00
|
|
|
gtkardour.Append(CXXFLAGS="-DPACKAGE=\\\"" + domain + "\\\"")
|
2005-10-22 11:30:17 -04:00
|
|
|
gtkardour.Append(CXXFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
|
2006-11-19 11:45:16 -05:00
|
|
|
gtkardour.Append(CPPPATH="#/") # for top level svn_revision.h
|
2005-12-02 17:12:56 -05:00
|
|
|
#gtkardour.Append(CXXFLAGS="-DFLOWCANVAS_AA")
|
2005-09-25 14:42:24 -04:00
|
|
|
gtkardour.Append(PACKAGE=domain)
|
|
|
|
gtkardour.Append(POTFILE=domain + '.pot')
|
|
|
|
|
2005-10-06 14:24:23 -04:00
|
|
|
gtkardour.Merge ([
|
|
|
|
libraries['ardour'],
|
2006-05-23 15:54:52 -04:00
|
|
|
libraries['ardour_cp'],
|
2005-10-06 14:24:23 -04:00
|
|
|
libraries['gtkmm2ext'],
|
|
|
|
libraries['midi++2'],
|
2006-07-05 15:47:25 -04:00
|
|
|
libraries['pbd'],
|
2005-10-06 14:24:23 -04:00
|
|
|
libraries['gtkmm2'],
|
2005-10-31 19:56:09 -05:00
|
|
|
libraries['glib2'],
|
2005-10-22 11:30:17 -04:00
|
|
|
libraries['libgnomecanvas2'],
|
2005-10-06 14:24:23 -04:00
|
|
|
libraries['libgnomecanvasmm'],
|
|
|
|
libraries['sysmidi'],
|
2006-11-19 11:45:16 -05:00
|
|
|
libraries['sndfile-ardour'],
|
2006-06-14 21:34:54 -04:00
|
|
|
libraries['flac'],
|
2005-10-06 14:24:23 -04:00
|
|
|
libraries['lrdf'],
|
|
|
|
libraries['glibmm2'],
|
|
|
|
libraries['pangomm'],
|
|
|
|
libraries['atkmm'],
|
|
|
|
libraries['gdkmm2'],
|
|
|
|
libraries['sigc2'],
|
|
|
|
libraries['gtk2'],
|
|
|
|
libraries['xml'],
|
2006-05-07 13:17:38 -04:00
|
|
|
libraries['xslt'],
|
2005-10-06 14:24:23 -04:00
|
|
|
libraries['soundtouch'],
|
|
|
|
libraries['samplerate'],
|
2006-05-11 20:30:13 -04:00
|
|
|
libraries['jack']
|
2005-10-06 14:24:23 -04:00
|
|
|
])
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2006-10-21 15:01:50 -04:00
|
|
|
gtkmmtests.Append(CXXFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
|
|
|
|
|
|
|
|
gtkmmtests.Merge ([
|
|
|
|
libraries['gtkmm2'],
|
|
|
|
libraries['glib2'],
|
|
|
|
libraries['glibmm2'],
|
|
|
|
libraries['pangomm'],
|
|
|
|
libraries['atkmm'],
|
|
|
|
libraries['gdkmm2'],
|
|
|
|
libraries['sigc2'],
|
|
|
|
libraries['gtk2']
|
|
|
|
])
|
|
|
|
|
2006-05-03 16:51:08 -04:00
|
|
|
if gtkardour['DMALLOC']:
|
|
|
|
gtkardour.Merge([libraries['dmalloc']])
|
|
|
|
gtkardour.Append(CCFLAGS='-DUSE_DMALLOC')
|
|
|
|
|
2006-03-12 22:27:58 -05:00
|
|
|
if gtkardour['FFT_ANALYSIS']:
|
|
|
|
gtkardour.Merge ([libraries['fftw3f']])
|
2006-03-13 13:09:11 -05:00
|
|
|
gtkardour.Append(CCFLAGS='-DFFT_ANALYSIS')
|
2006-03-12 22:27:58 -05:00
|
|
|
|
2005-10-31 19:56:09 -05:00
|
|
|
skipped_files=Split("""
|
|
|
|
connection_editor.cc
|
|
|
|
""")
|
|
|
|
|
2006-08-31 15:17:00 -04:00
|
|
|
audiounit_files=Split("""
|
2006-08-10 23:24:57 -04:00
|
|
|
au_pluginui.cc
|
|
|
|
""")
|
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 12:01:34 -04:00
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
gtkardour_files=Split("""
|
2005-10-09 13:58:06 -04:00
|
|
|
about.cc
|
2005-10-10 16:38:53 -04:00
|
|
|
actions.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
add_route_dialog.cc
|
2007-06-27 17:37:08 -04:00
|
|
|
add_midi_cc_track_dialog.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
ardour_dialog.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
ardour_ui.cc
|
|
|
|
ardour_ui2.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
ardour_ui_dependents.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
ardour_ui_dialogs.cc
|
|
|
|
ardour_ui_ed.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
ardour_ui_mixer.cc
|
2005-12-31 13:20:42 -05:00
|
|
|
ardour_ui_options.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
audio_clock.cc
|
|
|
|
audio_time_axis.cc
|
2006-07-23 08:03:19 -04:00
|
|
|
audio_region_editor.cc
|
2007-07-06 23:19:04 -04:00
|
|
|
control_point.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
automation_line.cc
|
|
|
|
automation_time_axis.cc
|
2007-06-29 00:02:58 -04:00
|
|
|
automation_controller.cc
|
2006-07-23 08:03:19 -04:00
|
|
|
midi_time_axis.cc
|
|
|
|
midi_streamview.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
axis_view.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
canvas-simpleline.c
|
2005-10-12 12:28:26 -04:00
|
|
|
simpleline.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
canvas-simplerect.c
|
2005-10-12 12:28:26 -04:00
|
|
|
simplerect.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
canvas-waveview.c
|
2007-07-06 23:19:04 -04:00
|
|
|
diamond.cc
|
2007-07-30 12:33:10 -04:00
|
|
|
canvas-midi-event.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
crossfade_edit.cc
|
|
|
|
crossfade_view.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
curvetest.cc
|
2007-01-09 18:24:54 -05:00
|
|
|
enums.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
editing.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
editor.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
editor_actions.cc
|
2006-03-22 12:03:00 -05:00
|
|
|
editor_audio_import.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
editor_audiotrack.cc
|
2005-11-28 17:36:26 -05:00
|
|
|
editor_canvas.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
editor_canvas_events.cc
|
|
|
|
editor_cursors.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
editor_edit_groups.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
editor_export_audio.cc
|
|
|
|
editor_hscroller.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
editor_keyboard.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
editor_keys.cc
|
|
|
|
editor_markers.cc
|
|
|
|
editor_mixer.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
editor_mouse.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
editor_nudge.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
editor_ops.cc
|
|
|
|
editor_region_list.cc
|
|
|
|
editor_route_list.cc
|
|
|
|
editor_rulers.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
editor_scrub.cc
|
2007-01-28 12:44:13 -05:00
|
|
|
editor_selection.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
editor_selection_list.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
editor_tempodisplay.cc
|
|
|
|
editor_timefx.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
export_dialog.cc
|
2006-03-05 14:39:16 -05:00
|
|
|
export_session_dialog.cc
|
|
|
|
export_region_dialog.cc
|
|
|
|
export_range_markers_dialog.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
gain_meter.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
ghostregion.cc
|
|
|
|
gtk-custom-hruler.c
|
|
|
|
gtk-custom-ruler.c
|
2005-09-25 14:42:24 -04:00
|
|
|
io_selector.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
keyboard.cc
|
2006-08-10 23:24:57 -04:00
|
|
|
ladspa_pluginui.cc
|
2007-06-27 18:06:35 -04:00
|
|
|
latency_gui.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
location_ui.cc
|
|
|
|
main.cc
|
|
|
|
marker.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
mixer_strip.cc
|
|
|
|
mixer_ui.cc
|
|
|
|
new_session_dialog.cc
|
|
|
|
option_editor.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
opts.cc
|
2007-01-09 18:24:54 -05:00
|
|
|
panner.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
panner2d.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
panner_ui.cc
|
|
|
|
playlist_selector.cc
|
|
|
|
plugin_selector.cc
|
|
|
|
plugin_ui.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
prompter.cc
|
|
|
|
public_editor.cc
|
2007-06-27 16:23:48 -04:00
|
|
|
processor_box.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
region_gain_line.cc
|
|
|
|
region_selection.cc
|
2006-08-01 13:19:38 -04:00
|
|
|
region_view.cc
|
|
|
|
audio_region_view.cc
|
2006-08-14 04:44:14 -04:00
|
|
|
midi_region_view.cc
|
2006-08-01 13:19:38 -04:00
|
|
|
tape_region_view.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
route_params_ui.cc
|
2007-06-27 16:23:48 -04:00
|
|
|
route_processor_selection.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
route_ui.cc
|
|
|
|
selection.cc
|
2005-10-12 16:06:20 -04:00
|
|
|
sfdb_ui.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
send_ui.cc
|
|
|
|
streamview.cc
|
2006-07-23 08:03:19 -04:00
|
|
|
audio_streamview.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
tempo_dialog.cc
|
2007-05-25 16:29:12 -04:00
|
|
|
theme_manager.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
time_axis_view.cc
|
|
|
|
time_axis_view_item.cc
|
2006-07-23 08:03:19 -04:00
|
|
|
route_time_axis.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
time_selection.cc
|
2007-06-29 13:13:09 -04:00
|
|
|
ui_config.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
utils.cc
|
|
|
|
version.cc
|
2005-11-13 13:13:50 -05:00
|
|
|
waveview.cc
|
2006-03-12 22:27:58 -05:00
|
|
|
""")
|
|
|
|
|
|
|
|
fft_analysis_files=Split("""
|
2006-03-12 16:58:52 -05:00
|
|
|
analysis_window.cc
|
|
|
|
fft_graph.cc
|
|
|
|
fft_result.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
""")
|
|
|
|
|
2006-10-21 15:01:50 -04:00
|
|
|
pixmap_files = glob.glob('pixmaps/*.xpm')
|
|
|
|
icon_files = glob.glob ('icons/*.png')
|
2005-11-14 03:38:16 -05:00
|
|
|
|
2006-05-11 20:30:13 -04:00
|
|
|
intl_files = gtkardour_files + glob.glob('*.h')
|
2005-11-14 03:38:16 -05:00
|
|
|
|
2005-10-09 01:03:29 -04:00
|
|
|
mtest_files=Split("""
|
|
|
|
mtest.cc
|
|
|
|
""")
|
|
|
|
|
2006-08-12 15:43:09 -04:00
|
|
|
|
|
|
|
rcu_files=Split("""
|
|
|
|
rcu.cc
|
|
|
|
""")
|
|
|
|
|
2005-10-31 19:56:09 -05:00
|
|
|
itest_files=Split("""
|
|
|
|
itest.cc
|
|
|
|
""")
|
|
|
|
|
2006-08-29 17:21:48 -04:00
|
|
|
stest_files=Split("""
|
|
|
|
stest.cc
|
|
|
|
""")
|
|
|
|
|
2006-10-21 15:01:50 -04:00
|
|
|
tt_files=Split ("""
|
|
|
|
tt.cc
|
|
|
|
""")
|
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
extra_sources = []
|
2006-06-21 14:14:45 -04:00
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
vst_files = [ 'vst_pluginui.cc' ]
|
|
|
|
|
|
|
|
if env['VST']:
|
2006-06-21 14:14:45 -04:00
|
|
|
extra_sources += vst_files
|
|
|
|
gtkardour.Append (CCFLAGS="-DVST_SUPPORT", CPPPATH="#libs/fst")
|
2006-08-10 23:24:57 -04:00
|
|
|
|
2007-05-10 22:54:43 -04:00
|
|
|
cmt_files=Split("""
|
|
|
|
canvas-imageframe.c
|
|
|
|
editor_imageframe.cc
|
|
|
|
imageframe.cc
|
|
|
|
imageframe_socket_handler.cc
|
|
|
|
imageframe_time_axis.cc
|
|
|
|
imageframe_time_axis_group.cc
|
|
|
|
imageframe_time_axis_view.cc
|
|
|
|
imageframe_view.cc
|
|
|
|
marker_time_axis.cc
|
|
|
|
marker_time_axis_view.cc
|
|
|
|
marker_view.cc
|
|
|
|
visual_time_axis.cc
|
|
|
|
""")
|
|
|
|
|
|
|
|
if env['CMT']:
|
|
|
|
extra_sources += cmt_files
|
|
|
|
gtkardour.Append (CCFLAGS="-DWITH_CMT")
|
|
|
|
|
2006-08-31 15:17:00 -04:00
|
|
|
if gtkardour['AUDIOUNITS']:
|
|
|
|
extra_sources += audiounit_files
|
|
|
|
gtkardour.Append(CCFLAGS='-DHAVE_AUDIOUNITS')
|
2006-08-12 15:43:09 -04:00
|
|
|
gtkardour.Append(LINKFLAGS='-framework Carbon')
|
2006-08-10 23:24:57 -04:00
|
|
|
gtkardour.Merge([libraries['appleutility']])
|
|
|
|
|
2006-03-12 22:27:58 -05:00
|
|
|
if env['FFT_ANALYSIS']:
|
|
|
|
extra_sources += fft_analysis_files
|
|
|
|
|
2005-11-14 03:38:16 -05:00
|
|
|
intl_files += extra_sources
|
|
|
|
|
2005-09-25 14:42:24 -04: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 18:24:54 -05:00
|
|
|
executable = 'ardour-' + ardour_version
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
ardour = gtkardour.Program(target = executable, source = gtkardour_files + extra_sources)
|
2006-06-21 14:14:45 -04:00
|
|
|
ardourlib = gtkardour.SharedLibrary(target = 'ardourgtk', source = gtkardour_files + extra_sources)
|
|
|
|
|
2005-10-09 01:03:29 -04:00
|
|
|
mtest = gtkardour.Program(target = 'mtest', source = mtest_files)
|
2005-12-29 19:34:21 -05:00
|
|
|
itest = gtkardour.Program(target = 'itest', source = itest_files)
|
2006-08-12 15:43:09 -04:00
|
|
|
rcu = gtkardour.Program(target = 'rcu', source = rcu_files)
|
2006-10-21 15:01:50 -04:00
|
|
|
tt = gtkmmtests.Program(target = 'tt', source = tt_files)
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2007-08-02 15:18:40 -04:00
|
|
|
my_font_dict = { }
|
|
|
|
|
|
|
|
if gtkardour['DIST_TARGET'] == 'panther' or gtkardour['DIST_TARGET'] == 'tiger':
|
|
|
|
#
|
|
|
|
# OS X font rendering is different even with X11
|
|
|
|
#
|
|
|
|
my_font_dict['%FONT_TINY%'] = 'sans 7'
|
|
|
|
my_font_dict['%FONT_SMALLER%'] = 'sans 9'
|
|
|
|
my_font_dict['%FONT_SMALL%'] = 'sans 10'
|
|
|
|
my_font_dict['%FONT_NORMAL%'] = 'sans 11'
|
|
|
|
my_font_dict['%FONT_BIG%'] = 'sans 15'
|
|
|
|
my_font_dict['%FONT_BIGGER%'] = 'sans 16'
|
|
|
|
my_font_dict['%FONT_LARGE%'] = 'sans 20'
|
|
|
|
my_font_dict['%FONT_LARGER%'] = 'sans 28'
|
|
|
|
my_font_dict['%FONT_HUGER%'] = 'sans 36'
|
|
|
|
my_font_dict['%FONT_MASSIVE%'] = 'sans 60'
|
|
|
|
my_font_dict['%FONT_BOLD_TINY%'] = 'sans bold 7'
|
|
|
|
my_font_dict['%FONT_BOLD_SMALLER%'] = 'sans bold 9'
|
|
|
|
my_font_dict['%FONT_BOLD_SMALL%'] = 'sans bold 10'
|
|
|
|
my_font_dict['%FONT_BOLD_NORMAL%'] = 'sans bold 11'
|
|
|
|
my_font_dict['%FONT_BOLD_BIG%'] = 'sans bold 15'
|
|
|
|
my_font_dict['%FONT_BOLD_BIGGER%'] = 'sans bold 16'
|
|
|
|
my_font_dict['%FONT_BOLD_LARGE%'] = 'sans bold 20'
|
|
|
|
my_font_dict['%FONT_BOLD_LARGER%'] = 'sans bold 28'
|
|
|
|
my_font_dict['%FONT_BOLD_HUGER%'] = 'sans bold 36'
|
|
|
|
my_font_dict['%FONT_BOLD_MASSIVE%'] = 'sans bold 60'
|
|
|
|
my_font_dict['%FONT_ITALIC_TINY%'] = 'sans italic 7'
|
|
|
|
my_font_dict['%FONT_ITALIC_SMALLER%'] = 'sans italic 9'
|
|
|
|
my_font_dict['%FONT_ITALIC_SMALL%'] = 'sans italic 10'
|
|
|
|
my_font_dict['%FONT_ITALIC_NORMAL%'] = 'sans italic 11'
|
|
|
|
my_font_dict['%FONT_ITALIC_BIG%'] = 'sans italic 15'
|
|
|
|
my_font_dict['%FONT_ITALIC_BIGGER%'] = 'sans italic 16'
|
|
|
|
my_font_dict['%FONT_ITALIC_LARGE%'] = 'sans italic 20'
|
|
|
|
my_font_dict['%FONT_ITALIC_LARGER%'] = 'sans italic 28'
|
|
|
|
my_font_dict['%FONT_ITALIC_HUGER%'] = 'sans italic 36'
|
|
|
|
my_font_dict['%FONT_ITALIC_MASSIVE%'] = 'sans italic 60'
|
|
|
|
else:
|
|
|
|
#
|
|
|
|
# Linux/X11 font rendering
|
|
|
|
#
|
|
|
|
my_font_dict['%FONT_TINY%'] = 'sans 4'
|
|
|
|
my_font_dict['%FONT_SMALLER%'] = 'sans 6'
|
|
|
|
my_font_dict['%FONT_SMALL%'] = 'sans 7'
|
|
|
|
my_font_dict['%FONT_NORMAL%'] = 'sans 8'
|
|
|
|
my_font_dict['%FONT_BIG%'] = 'sans 12'
|
|
|
|
my_font_dict['%FONT_BIGGER%'] = 'sans 14'
|
|
|
|
my_font_dict['%FONT_LARGE%'] = 'sans 18'
|
|
|
|
my_font_dict['%FONT_LARGER%'] = 'sans 24'
|
|
|
|
my_font_dict['%FONT_HUGER%'] = 'sans 34'
|
|
|
|
my_font_dict['%FONT_MASSIVE%'] = 'sans 60'
|
|
|
|
my_font_dict['%FONT_BOLD_TINY%'] = 'sans bold 4'
|
|
|
|
my_font_dict['%FONT_BOLD_SMALLER%'] = 'sans bold 6'
|
|
|
|
my_font_dict['%FONT_BOLD_SMALL%'] = 'sans bold 7'
|
|
|
|
my_font_dict['%FONT_BOLD_NORMAL%'] = 'sans bold 8'
|
|
|
|
my_font_dict['%FONT_BOLD_BIG%'] = 'sans bold 12'
|
|
|
|
my_font_dict['%FONT_BOLD_BIGGER%'] = 'sans bold 14'
|
|
|
|
my_font_dict['%FONT_BOLD_LARGE%'] = 'sans bold 18'
|
|
|
|
my_font_dict['%FONT_BOLD_LARGER%'] = 'sans bold 24'
|
|
|
|
my_font_dict['%FONT_BOLD_HUGE%'] = 'sans bold 25'
|
|
|
|
my_font_dict['%FONT_BOLD_HUGER%'] = 'sans bold 34'
|
|
|
|
my_font_dict['%FONT_BOLD_MASSIVE%'] = 'sans bold 60'
|
|
|
|
my_font_dict['%FONT_ITALIC_TINY%'] = 'sans italic 4'
|
|
|
|
my_font_dict['%FONT_ITALIC_SMALLER%'] = 'sans italic 6'
|
|
|
|
my_font_dict['%FONT_ITALIC_SMALL%'] = 'sans italic 7'
|
|
|
|
my_font_dict['%FONT_ITALIC_NORMAL%'] = 'sans italic 8'
|
|
|
|
my_font_dict['%FONT_ITALIC_BIG%'] = 'sans italic 12'
|
|
|
|
my_font_dict['%FONT_ITALIC_BIGGER%'] = 'sans italic 14'
|
|
|
|
my_font_dict['%FONT_ITALIC_LARGE%'] = 'sans italic 18'
|
|
|
|
my_font_dict['%FONT_ITALIC_LARGER%'] = 'sans italic 24'
|
|
|
|
my_font_dict['%FONT_ITALIC_HUGE%'] = 'sans italic 25'
|
|
|
|
my_font_dict['%FONT_ITALIC_HUGER%'] = 'sans italic 34'
|
|
|
|
my_font_dict['%FONT_ITALIC_MASSIVE%'] = 'sans italic 60'
|
|
|
|
|
|
|
|
ardour_dark_theme = env.SubstInFile ('ardour2_ui_dark.rc', 'ardour2_ui_dark.rc.in', SUBST_DICT = my_font_dict)
|
|
|
|
ardour_light_theme = env.SubstInFile ('ardour2_ui_light.rc', 'ardour2_ui_light.rc.in', SUBST_DICT = my_font_dict)
|
|
|
|
|
2006-04-25 20:45:27 -04:00
|
|
|
my_subst_dict = { }
|
2007-03-18 02:07:08 -04:00
|
|
|
|
|
|
|
#
|
|
|
|
# null substitution just to avoid ardour.bindings being in svn
|
|
|
|
#
|
|
|
|
|
|
|
|
ardourbindings = env.SubstInFile ('ardour.bindings', 'ardour.bindings.in', SUBST_DICT = my_subst_dict);
|
|
|
|
|
2006-10-21 15:01:50 -04:00
|
|
|
my_subst_dict['%INSTALL_PREFIX%'] = final_prefix
|
2007-01-09 18:24:54 -05:00
|
|
|
my_subst_dict['%LIBDIR%'] = env['LIBDIR']
|
|
|
|
my_subst_dict['%VERSION%'] = ardour_version
|
2006-04-25 20:45:27 -04:00
|
|
|
|
|
|
|
ardoursh = env.SubstInFile ('ardour.sh','ardour.sh.in', SUBST_DICT = my_subst_dict);
|
2006-04-25 20:58:34 -04:00
|
|
|
env.AddPostAction (ardoursh, Chmod ('$TARGET', 0755))
|
2006-04-25 20:45:27 -04:00
|
|
|
|
2007-01-09 18:24:54 -05:00
|
|
|
ardourdev = env.SubstInFile ('ardev_common.sh','ardev_common.sh.in', SUBST_DICT = my_subst_dict);
|
|
|
|
env.AddPostAction (ardourdev, Chmod ('$TARGET', 0755))
|
|
|
|
|
2007-03-18 02:07:08 -04:00
|
|
|
Default(ardourbindings)
|
2007-01-09 18:24:54 -05:00
|
|
|
Default(ardourdev)
|
|
|
|
Default(ardoursh)
|
2007-08-02 15:18:40 -04:00
|
|
|
Default(ardour_dark_theme)
|
|
|
|
Default(ardour_light_theme)
|
2007-01-09 18:24:54 -05:00
|
|
|
|
2006-06-21 14:14:45 -04:00
|
|
|
if env['VST']:
|
|
|
|
Default(ardourlib)
|
|
|
|
# the library - into the library dir
|
2007-01-09 18:24:54 -05:00
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour2'), ardourlib))
|
2006-06-21 14:14:45 -04:00
|
|
|
else:
|
|
|
|
|
|
|
|
if env['VERSIONED']:
|
|
|
|
Default (env.VersionedExecutable ('tagged_executable', ardour))
|
|
|
|
else:
|
|
|
|
Default(ardour)
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2006-06-21 14:14:45 -04:00
|
|
|
#install
|
|
|
|
|
|
|
|
# the executable - into the library dir
|
2007-01-09 18:24:54 -05:00
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour2'), ardour))
|
2006-06-21 14:14:45 -04:00
|
|
|
# the script - into the bin dir
|
|
|
|
env.Alias('install', env.InstallAs(os.path.join(install_prefix, 'bin')+'/ardour2', ardoursh))
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
if env['NLS']:
|
2006-07-05 15:47:25 -04:00
|
|
|
i18n (gtkardour, gtkardour_files+skipped_files+fft_analysis_files, env)
|
2005-11-14 03:38:16 -05:00
|
|
|
|
2006-04-25 20:45:27 -04:00
|
|
|
# configuration files
|
2007-08-02 15:18:40 -04:00
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), ardour_dark_theme))
|
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), ardour_light_theme))
|
2006-03-29 14:29:15 -05:00
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), 'ardour.menus'))
|
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), 'ardour.bindings'))
|
2007-06-29 13:13:09 -04:00
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), 'ardour2_ui_default.conf'))
|
2006-04-25 20:45:27 -04:00
|
|
|
# data files
|
2007-01-09 18:24:54 -05:00
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, 'share', 'ardour2'), 'splash.png'))
|
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, 'share', 'ardour2', 'pixmaps'), pixmap_files))
|
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, 'share', 'ardour2', 'icons'), icon_files))
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2006-11-19 11:45:16 -05:00
|
|
|
env.Alias ('version', gtkardour.VersionBuild(['version.cc','version.h'], []))
|
2006-06-21 14:14:45 -04:00
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
#dist
|
|
|
|
env.Alias ('tarball', env.Distribute (env['DISTTREE'],
|
|
|
|
[ 'SConscript',
|
|
|
|
'i18n.h', 'gettext.h',
|
2006-06-13 03:27:52 -04:00
|
|
|
'ardour.sh.in',
|
2007-01-28 12:44:13 -05:00
|
|
|
'ardev_common.sh.in',
|
2007-04-14 14:39:01 -04:00
|
|
|
'ardev', 'ardbg',
|
2007-05-25 16:29:12 -04:00
|
|
|
'ardour2_ui_dark.rc', 'ardour2_ui_light.rc', 'splash.png',
|
2007-06-29 13:13:09 -04:00
|
|
|
'ardour.menus', 'ardour.bindings.in', 'ardour2_ui_default.conf',
|
2006-03-17 12:39:21 -05:00
|
|
|
'editor_xpms'
|
2005-09-25 14:42:24 -04:00
|
|
|
] +
|
2006-10-21 15:01:50 -04:00
|
|
|
gtkardour_files +
|
|
|
|
vst_files +
|
|
|
|
pixmap_files +
|
|
|
|
icon_files +
|
|
|
|
skipped_files +
|
|
|
|
audiounit_files +
|
|
|
|
fft_analysis_files +
|
|
|
|
glob.glob('po/*.po') + glob.glob('*.h')))
|
2005-09-25 14:42:24 -04: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 ;
|
|
|
|
"""
|
|
|
|
))
|