GTK2_ARDOUR_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
# Variables for 'waf dist'
-APPNAME = 'gtk2_ardour'
+APPNAME = 'gtk2_ardour3'
VERSION = GTK2_ARDOUR_VERSION
+I18N_PACKAGE = 'gtk2_ardour3'
# Mandatory variables
top = '.'
'ardour_ui_ed.cc',
'ardour_ui_mixer.cc',
'ardour_ui_options.cc',
+ 'ardour_window.cc',
'audio_clock.cc',
'audio_region_editor.cc',
'audio_region_view.cc',
'automation_time_axis.cc',
'axis_view.cc',
'bundle_manager.cc',
- 'cairo_widget.cc',
'canvas-flag.cc',
'canvas-hit.cc',
'canvas-note-event.cc',
'editor_markers.cc',
'editor_mixer.cc',
'editor_mouse.cc',
- 'editor_nudge.cc',
'editor_ops.cc',
'editor_regions.cc',
'editor_routes.cc',
'midi_port_dialog.cc',
'midi_region_view.cc',
'midi_scroomer.cc',
+ 'midi_selection.cc',
'midi_streamview.cc',
'midi_time_axis.cc',
'midi_tracer.cc',
'missing_file_dialog.cc',
'missing_plugin_dialog.cc',
+ 'mixer_actor.cc',
'mixer_group_tabs.cc',
'mixer_strip.cc',
'mixer_ui.cc',
'option_editor.cc',
'opts.cc',
'panner2d.cc',
+ 'panner_interface.cc',
'panner_ui.cc',
'piano_roll_header.cc',
'playlist_selector.cc',
autowaf.check_pkg(conf, 'libgnomecanvasmm-2.6',
uselib_store='GNOMECANVASMM', atleast_version='2.16')
autowaf.check_pkg(conf, 'ogg', uselib_store='OGG', atleast_version='1.1.2')
+ autowaf.check_pkg(conf, 'x11', uselib_store='X11', atleast_version='1.3', mandatory=False)
conf.write_config_header('gtk2ardour-config.h', remove=False)
def build(bld):
# GTK front-end; if we're using VST we build this as a shared library,
# otherwise it's a normal executabale
- if bld.is_defined('VST_SUPPORT'):
+ if bld.is_defined('WINDOWS_VST_SUPPORT'):
obj = bld(features = 'cxx c cxxshlib')
else:
obj = bld(features = 'cxx c cxxprogram')
obj.source = gtk2_ardour_sources
obj.name = 'gtk2_ardour'
obj.linkflags = []
- if bld.is_defined('VST_SUPPORT'):
+ if bld.is_defined('WINDOWS_VST_SUPPORT'):
obj.target = 'gtk2_ardour'
obj.includes += ['../libs/fst']
else:
if sys.platform == 'darwin':
obj.use += ' libappleutility'
obj.defines = [
- 'PACKAGE="gtk2_ardour"',
+ 'PACKAGE="' + I18N_PACKAGE + '"',
'VERSIONSTRING="' + bld.env['VERSION'] + '"',
'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',
'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"',
if bld.is_defined('FREESOUND'):
obj.source += [ 'sfdb_freesound_mootcher.cc' ]
+ obj.defines += [ 'FREESOUND' ]
- if bld.is_defined('VST_SUPPORT'):
- obj.source += [ 'vst_pluginui.cc' ]
- obj.defines += [ 'VST_SUPPORT' ]
- bld.env.append ('LINKFLAGS', '-lX11')
+ if bld.is_defined('WINDOWS_VST_SUPPORT'):
+ obj.source += [ 'windows_vst_plugin_ui.cc' ]
+ obj.defines += [ 'WINDOWS_VST_SUPPORT' ]
+ obj.uselib += ' X11 '
if bld.is_defined('LXVST_SUPPORT'):
- obj.source += [ 'lxvst_pluginui.cc' ]
+ obj.source += [ 'linux_vst_gui_support.cc', 'lxvst_plugin_ui.cc' ]
obj.defines += [ 'LXVST_SUPPORT' ]
- obj.linkflags += [ '-lX11' ]
+ obj.uselib += ' X11 '
+ if bld.is_defined('WINDOWS_VST_SUPPORT') or bld.is_defined('LXVST_SUPPORT'):
+ obj.source += [ 'vst_plugin_ui.cc' ]
+
if bld.is_defined('PHONE_HOME'):
obj.defines += [ 'PHONE_HOME' ]
if bld.is_defined('HAVE_COREAUDIO'):
TaskGen.task_gen.mappings['.mm'] = TaskGen.task_gen.mappings['.cc']
- obj.source += [ 'cocoacarbon.mm', 'au_pluginui.mm' ]
+ obj.source += [ 'cocoacarbon.mm' ]
obj.use += ' libappleutility '
- if bld.is_defined('VST_SUPPORT'):
+ if bld.is_defined('AUDIOUNIT_SUPPORT'):
+ obj.source += [ 'au_pluginui.mm' ]
+
+ if bld.is_defined('WINDOWS_VST_SUPPORT'):
# 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
obj = bld(features = 'cxx c cxxprogram wine')
'''
obj.includes = '../libs/fst'
obj.target = 'ardour-3.0-vst'
- obj.linkflags += ['-mwindows', '-Wl,--export-dynamic', '-lpthread']
+ obj.linkflags = ['-mwindows', '-Wl,--export-dynamic', '-lpthread']
obj.defines = ['_POSIX_SOURCE', 'USE_WS_PREFIX']
obj.uselib = 'ALSA'
obj.use = ['libpbd','libmidipp','libtaglib','libardour',
# Set up font sizes
if bld.is_defined('GTKOSX'): # OS X fonts
- basefont = "Lucida Grande"
+ basefont = ""
font_sizes = {
'TINY' : '7',
'SMALLER' : '9',
# not modified at present
bld.install_files(os.path.join(bld.env['SYSCONFDIR'], 'ardour3'),
'step_editing.bindings')
+ bld.install_files(os.path.join(bld.env['SYSCONFDIR'], 'ardour3'),
+ 'mixer.bindings')
# Icons/Images
bld.install_files('${DATADIR}/ardour3/icons', bld.path.ant_glob('icons/*.png'))
# i18n
if bld.is_defined('ENABLE_NLS'):
- mo_files = bld.path.ant_glob ('po/*.mo')
+ mo_files = bld.path.ant_glob('po/*.mo')
for mo in mo_files:
- lang = os.path.basename (mo).replace ('.mo', '')
- bld.install_as (os.path.join(bld.env['PREFIX'], 'share', 'locale',
- lang, 'LC_MESSAGES', APPNAME + '.mo'),
- mo)
+ lang = os.path.basename(mo.srcpath()).replace('.mo', '')
+ bld.install_as(os.path.join(bld.env['PREFIX'], 'share', 'locale',
+ lang, 'LC_MESSAGES', I18N_PACKAGE + '.mo'),
+ mo)
def i18n(bld):
- autowaf.build_i18n(bld, srcdir, 'gtk2_ardour', APPNAME, gtk2_ardour_sources)
+ 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,
+ 'Paul Davis')