2005-09-25 14:42:24 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
import os
|
|
|
|
import os.path
|
|
|
|
import glob
|
|
|
|
|
|
|
|
Import('env install_prefix final_prefix config_prefix libraries i18n version')
|
|
|
|
|
|
|
|
gtkardour = env.Copy()
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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")
|
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'],
|
|
|
|
libraries['gtkmm2ext'],
|
2005-12-02 17:12:56 -05:00
|
|
|
# libraries['flowcanvas'],
|
2005-10-06 14:24:23 -04:00
|
|
|
libraries['midi++2'],
|
|
|
|
libraries['pbd3'],
|
|
|
|
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'],
|
|
|
|
libraries['sndfile'],
|
|
|
|
libraries['lrdf'],
|
|
|
|
libraries['glibmm2'],
|
|
|
|
libraries['pangomm'],
|
|
|
|
libraries['atkmm'],
|
|
|
|
libraries['gdkmm2'],
|
|
|
|
libraries['sigc2'],
|
|
|
|
libraries['gtk2'],
|
|
|
|
libraries['xml'],
|
|
|
|
libraries['soundtouch'],
|
|
|
|
libraries['samplerate'],
|
2005-11-14 03:38:16 -05:00
|
|
|
libraries['jack'],
|
2005-11-25 19:06:46 -05:00
|
|
|
libraries['glade2'],
|
2005-11-14 03:38:16 -05:00
|
|
|
libraries['libglademm']
|
2005-10-06 14:24:23 -04:00
|
|
|
])
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
if gtkardour['VST']:
|
|
|
|
gtkardour.Merge ([ libraries['fst']])
|
|
|
|
|
2005-10-31 19:56:09 -05:00
|
|
|
skipped_files=Split("""
|
|
|
|
connection_editor.cc
|
|
|
|
""")
|
|
|
|
|
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
|
|
|
|
ardour_dialog.cc
|
|
|
|
ardour_message.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
|
|
|
|
automation_gain_line.cc
|
|
|
|
automation_line.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
automation_pan_line.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
automation_time_axis.cc
|
|
|
|
axis_view.cc
|
2005-10-10 16:38:53 -04:00
|
|
|
canvas-imageframe.c
|
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
|
|
|
|
crossfade_edit.cc
|
|
|
|
crossfade_view.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
curvetest.cc
|
|
|
|
default_keys.cc
|
|
|
|
editing.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
editor.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
editor_actions.cc
|
|
|
|
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_imageframe.cc
|
|
|
|
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
|
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
|
2005-10-09 13:58:06 -04:00
|
|
|
gain_automation_time_axis.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
gain_meter.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
ghostregion.cc
|
2005-11-14 03:38:16 -05:00
|
|
|
glade_path.cc
|
|
|
|
glade_factory.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
grouped_buttons.cc
|
|
|
|
gtk-custom-hruler.c
|
|
|
|
gtk-custom-ruler.c
|
2005-11-22 00:10:12 -05:00
|
|
|
imageframe.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
imageframe_socket_handler.cc
|
|
|
|
imageframe_time_axis.cc
|
|
|
|
imageframe_time_axis_group.cc
|
|
|
|
imageframe_time_axis_view.cc
|
|
|
|
imageframe_view.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
io_selector.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
keyboard.cc
|
|
|
|
location_ui.cc
|
|
|
|
main.cc
|
|
|
|
marker.cc
|
|
|
|
marker_time_axis.cc
|
|
|
|
marker_time_axis_view.cc
|
|
|
|
marker_view.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
meter_bridge.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
meter_bridge_strip.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
|
|
|
|
pan_automation_time_axis.cc
|
|
|
|
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
|
|
|
|
redirect_automation_line.cc
|
|
|
|
redirect_automation_time_axis.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
redirect_box.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
region_editor.cc
|
|
|
|
region_gain_line.cc
|
|
|
|
region_selection.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
regionview.cc
|
|
|
|
route_params_ui.cc
|
2005-10-09 13:58:06 -04:00
|
|
|
route_redirect_selection.cc
|
|
|
|
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
|
|
|
|
tempo_dialog.cc
|
|
|
|
time_axis_view.cc
|
|
|
|
time_axis_view_item.cc
|
|
|
|
time_selection.cc
|
|
|
|
utils.cc
|
|
|
|
version.cc
|
|
|
|
visual_time_axis.cc
|
2005-11-13 13:13:50 -05:00
|
|
|
waveview.cc
|
2005-09-25 14:42:24 -04:00
|
|
|
""")
|
|
|
|
|
2005-11-14 03:38:16 -05:00
|
|
|
glade_files=glob.glob('glade/*.glade')
|
|
|
|
|
|
|
|
intl_files = gtkardour_files + glade_files + glob.glob('*.h')
|
|
|
|
|
2005-10-09 01:03:29 -04:00
|
|
|
mtest_files=Split("""
|
|
|
|
mtest.cc
|
|
|
|
""")
|
|
|
|
|
2005-10-31 19:56:09 -05:00
|
|
|
itest_files=Split("""
|
|
|
|
itest.cc
|
|
|
|
""")
|
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
extra_sources = []
|
|
|
|
vst_files = [ 'vst_pluginui.cc' ]
|
|
|
|
|
|
|
|
if env['VST']:
|
|
|
|
extra_sources += vst_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="-DDATA_DIR=\\\""+final_prefix+"/share\\\"")
|
|
|
|
gtkardour.Append(CXXFLAGS="-DLOCALEDIR=\\\""+final_prefix+"/share/locale\\\"")
|
2005-11-14 03:38:16 -05:00
|
|
|
gtkardour.Append(CXXFLAGS="-DGLADEPATH=\\\""+final_prefix+"/share/ardour/glade\\\"")
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
versionflag = '-DVERSIONSTRING=\\\"' + env['VERSION'] + '\\\"'
|
|
|
|
|
|
|
|
gtkardour.Append(CXXFLAGS=versionflag)
|
|
|
|
|
|
|
|
gtkardour.VersionBuild(['version.cc','version.h'], 'SConscript')
|
|
|
|
|
|
|
|
executable = 'ardour.bin'
|
|
|
|
|
|
|
|
ardour = gtkardour.Program(target = executable, 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)
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
Default(ardour)
|
|
|
|
|
|
|
|
if env['VERSIONED']:
|
|
|
|
Default (env.VersionedExecutable ('tagged_executable', ardour))
|
|
|
|
|
|
|
|
if env['NLS']:
|
2005-11-14 03:38:16 -05:00
|
|
|
Export('gtkardour', 'intl_files')
|
|
|
|
SConscript ('po/SConscript')
|
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
#install
|
|
|
|
|
|
|
|
|
|
|
|
env.Alias('install', env.InstallAs(os.path.join(install_prefix, 'bin')+'/ardour', ardour))
|
2005-12-04 23:43:00 -05:00
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour'), 'ardour2_ui.rc'))
|
2006-01-09 23:25:47 -05:00
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour'), 'ardour.menus'))
|
|
|
|
env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour'), 'ardour.bindings'))
|
2005-09-25 14:42:24 -04:00
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, 'share/ardour'), 'splash.ppm'))
|
2005-11-14 03:38:16 -05:00
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, 'share/ardour/glade'), glade_files))
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
#dist
|
|
|
|
env.Alias ('tarball', env.Distribute (env['DISTTREE'],
|
|
|
|
[ 'SConscript',
|
|
|
|
'i18n.h', 'gettext.h',
|
2006-01-09 23:25:47 -05:00
|
|
|
'editor_xpms', 'misc_xpms',
|
|
|
|
'crossfade_xpms.h', 'meter_xpms.h',
|
|
|
|
'ardour2_ui.rc', 'splash.ppm',
|
|
|
|
'ardour.menus', 'ardour.bindings'
|
2005-09-25 14:42:24 -04:00
|
|
|
] +
|
2005-11-14 03:38:16 -05:00
|
|
|
gtkardour_files + vst_files + glade_files +
|
2005-09-25 14:42:24 -04:00
|
|
|
glob.glob('po/*.po') + glob.glob('*.h')))
|
|
|
|
|
|
|
|
# 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 ;
|
|
|
|
"""
|
|
|
|
))
|