6096394bed0541a73a2b845a8ed566caac2f1a55
[ardour.git] / gtk2_ardour / wscript
1 #!/usr/bin/env python
2 from waflib.extras import autowaf as autowaf
3 from waflib import Options, TaskGen
4 import waflib.Logs as Logs, waflib.Utils as Utils
5 import os
6 import sys
7 import re
8 import time
9 from waflib.Task import Task
10
11 # Version of this package (even if built as a child)
12 MAJOR = '3'
13 MINOR = '0'
14 MICRO = '0'
15 GTK2_ARDOUR_VERSION = "%s.%s.%s" % (MAJOR, MINOR, MICRO)
16
17 # Variables for 'waf dist'
18 APPNAME = 'gtk2_ardour'
19 VERSION = GTK2_ARDOUR_VERSION
20
21 # Mandatory variables
22 top = '.'
23 out = 'build'
24
25 path_prefix = 'gtk2_ardour/'
26
27 gtk2_ardour_sources = [
28         'about.cc',
29         'actions.cc',
30         'add_midi_cc_track_dialog.cc',
31         'add_route_dialog.cc',
32         'ambiguous_file_dialog.cc',
33         'analysis_window.cc',
34         'ardour_button.cc',
35         'ardour_dialog.cc',
36         'ardour_ui.cc',
37         'ardour_ui2.cc',
38         'ardour_ui_dependents.cc',
39         'ardour_ui_dialogs.cc',
40         'ardour_ui_ed.cc',
41         'ardour_ui_mixer.cc',
42         'ardour_ui_options.cc',
43         'audio_clock.cc',
44         'audio_region_editor.cc',
45         'audio_region_view.cc',
46         'audio_streamview.cc',
47         'audio_time_axis.cc',
48         'automation_controller.cc',
49         'automation_line.cc',
50         'automation_region_view.cc',
51         'automation_streamview.cc',
52         'automation_time_axis.cc',
53         'axis_view.cc',
54         'bundle_manager.cc',
55         'cairo_widget.cc',
56         'canvas-flag.cc',
57         'canvas-hit.cc',
58         'canvas-note-event.cc',
59         'canvas-note.cc',
60         'canvas_patch_change.cc',
61         'canvas-simpleline.c',
62         'canvas-simplerect.c',
63         'canvas-sysex.cc',
64         'canvas-waveview.c',
65         'clock_group.cc',
66         'configinfo.cc',
67         'control_point.cc',
68         'control_point_dialog.cc',
69         'crossfade_edit.cc',
70         'crossfade_view.cc',
71         'curvetest.cc',
72         'debug.cc',
73         'diamond.cc',
74         'edit_note_dialog.cc',
75         'editing.cc',
76         'editor.cc',
77         'editor_actions.cc',
78         'editor_audio_import.cc',
79         'editor_audiotrack.cc',
80         'editor_canvas.cc',
81         'editor_canvas_events.cc',
82         'editor_component.cc',
83         'editor_cursors.cc',
84         'editor_drag.cc',
85         'editor_route_groups.cc',
86         'editor_export_audio.cc',
87         'editor_group_tabs.cc',
88         'editor_keys.cc',
89         'editor_locations.cc',
90         'editor_markers.cc',
91         'editor_mixer.cc',
92         'editor_mouse.cc',
93         'editor_nudge.cc',
94         'editor_ops.cc',
95         'editor_regions.cc',
96         'editor_routes.cc',
97         'editor_rulers.cc',
98         'editor_scrub.cc',
99         'editor_selection.cc',
100         'editor_snapshots.cc',
101         'editor_summary.cc',
102         'editor_tempodisplay.cc',
103         'editor_timefx.cc',
104         'engine_dialog.cc',
105         'enums.cc',
106         'export_channel_selector.cc',
107         'export_dialog.cc',
108         'export_file_notebook.cc',
109         'export_filename_selector.cc',
110         'export_format_dialog.cc',
111         'export_format_selector.cc',
112         'export_preset_selector.cc',
113         'export_timespan_selector.cc',
114         'fft.cc',
115         'fft_graph.cc',
116         'fft_result.cc',
117         'gain_meter.cc',
118         'generic_pluginui.cc',
119         'ghostregion.cc',
120         'global_port_matrix.cc',
121         'group_tabs.cc',
122         'gtk-custom-hruler.c',
123         'gtk-custom-ruler.c',
124         'gtk_pianokeyboard.c',
125         'gui_object.cc',
126         'insert_time_dialog.cc',
127         'interthread_progress_window.cc',
128         'io_selector.cc',
129         'keyboard.cc',
130         'keyeditor.cc',
131         'latency_gui.cc',
132         'led.cc',
133         'level_meter.cc',
134         'lineset.cc',
135         'location_ui.cc',
136         'main.cc',
137         'marker.cc',
138         'midi_automation_line.cc',
139         'midi_channel_dialog.cc',
140         'midi_channel_selector.cc',
141         'midi_cut_buffer.cc',
142         'midi_list_editor.cc',
143         'midi_port_dialog.cc',
144         'midi_region_view.cc',
145         'midi_scroomer.cc',
146         'midi_streamview.cc',
147         'midi_time_axis.cc',
148         'midi_tracer.cc',
149         'missing_file_dialog.cc',
150         'missing_plugin_dialog.cc',
151         'mixer_group_tabs.cc',
152         'mixer_strip.cc',
153         'mixer_ui.cc',
154         'monitor_section.cc',
155         'mono_panner.cc',
156         'mouse_cursors.cc',
157         'nag.cc',
158         'new_plugin_preset_dialog.cc',
159         'normalize_dialog.cc',
160         'note_player.cc',
161         'option_editor.cc',
162         'opts.cc',
163         'panner2d.cc',
164         'panner_ui.cc',
165         'piano_roll_header.cc',
166         'playlist_selector.cc',
167         'plugin_eq_gui.cc',
168         'plugin_selector.cc',
169         'plugin_ui.cc',
170         'port_group.cc',
171         'port_insert_ui.cc',
172         'port_matrix.cc',
173         'port_matrix_body.cc',
174         'port_matrix_column_labels.cc',
175         'port_matrix_component.cc',
176         'port_matrix_grid.cc',
177         'port_matrix_labels.cc',
178         'port_matrix_row_labels.cc',
179         'processor_box.cc',
180         'patch_change_dialog.cc',
181         'progress_reporter.cc',
182         'prompter.cc',
183         'public_editor.cc',
184         'quantize_dialog.cc',
185         'rc_option_editor.cc',
186         'region_editor.cc',
187         'region_gain_line.cc',
188         'region_layering_order_editor.cc',
189         'region_selection.cc',
190         'region_view.cc',
191         'return_ui.cc',
192         'rhythm_ferret.cc',
193         'route_group_dialog.cc',
194         'route_group_menu.cc',
195         'route_params_ui.cc',
196         'route_processor_selection.cc',
197         'route_time_axis.cc',
198         'route_ui.cc',
199         'search_path_option.cc',
200         'selection.cc',
201         'send_ui.cc',
202         'session_import_dialog.cc',
203         'session_metadata_dialog.cc',
204         'session_option_editor.cc',
205         'sfdb_ui.cc',
206         'shuttle_control.cc',
207         'simpleline.cc',
208         'simplerect.cc',
209         'splash.cc',
210         'speaker_dialog.cc',
211         'startup.cc',
212         'step_editor.cc',
213         'step_entry.cc',
214         'stereo_panner.cc',
215         'streamview.cc',
216         'strip_silence_dialog.cc',
217         'tape_region_view.cc',
218         'tempo_dialog.cc',
219         'tempo_lines.cc',
220         'theme_manager.cc',
221         'time_axis_view.cc',
222         'time_axis_view_item.cc',
223         'time_fx_dialog.cc',
224         'time_info_box.cc',
225         'time_selection.cc',
226         'track_selection.cc',
227         'track_view_list.cc',
228         'transpose_dialog.cc',
229         'ui_config.cc',
230         'utils.cc',
231         'verbose_cursor.cc',
232         'version.cc',
233         'volume_controller.cc',
234         'waveview.cc',
235         'window_proxy.cc'
236 ]
237
238 def options(opt):
239     autowaf.set_options(opt)
240
241 def configure(conf):
242     conf.load('misc')
243     conf.load('compiler_cxx')
244     autowaf.build_version_files(
245         path_prefix + 'version.h',
246         path_prefix + 'version.cc',
247         'gtk2_ardour', MAJOR, MINOR, MICRO)
248     autowaf.configure(conf)
249
250     if re.search ("linux", sys.platform) != None:
251         autowaf.check_pkg(conf, 'alsa', uselib_store='ALSA')
252
253     # TODO: Insert a sanity check for on OS X to ensure CoreAudio is present
254
255     autowaf.check_pkg(conf, 'flac', uselib_store='FLAC',
256                       atleast_version='1.2.1')
257     autowaf.check_pkg(conf, 'gthread-2.0', uselib_store='GTHREAD',
258                       atleast_version='2.10.1')
259     autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK',
260                       atleast_version='2.18')
261     autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM',
262                       atleast_version='2.18')
263     autowaf.check_pkg(conf, 'libgnomecanvas-2.0',
264                       uselib_store='GNOMECANVAS', atleast_version='2.30')
265     autowaf.check_pkg(conf, 'libgnomecanvasmm-2.6',
266                       uselib_store='GNOMECANVASMM', atleast_version='2.16')
267     autowaf.check_pkg(conf, 'ogg', uselib_store='OGG', atleast_version='1.1.2')
268
269     conf.write_config_header('gtk2ardour-config.h', remove=False)
270
271     # Boost headers
272     autowaf.check_header(conf, 'cxx', 'boost/shared_ptr.hpp')
273     autowaf.check_header(conf, 'cxx', 'boost/weak_ptr.hpp')
274
275 # Add a waf `feature' to allow compilation of things using winegcc
276 from waflib.TaskGen import feature
277 @feature("wine")
278 def set_winegcc(self):
279     self.env.LINK_CXX = self.env.LINK_CC = 'wineg++'
280     self.env.CC = 'winegcc'
281
282 def _doPyp(infileName, deps = False):
283     outStr = ''
284     out = []
285     re_spaces = re.compile("\s+")
286
287     if infileName == '-':
288         fd = sys.stdin
289     else:
290         fd = open(infileName)
291     inLines = fd.readlines()
292     if fd != sys.stdin:
293         fd.close()
294         
295
296     for line in inLines:
297         bits = re_spaces.split(line)
298         if bits[0] == '##include':
299             incName = bits[1]
300             if (deps):
301                 out += [ incName ]
302             else:
303                 # assume included file comes from same place as source file
304                 incName = os.path.join (os.path.dirname (infileName), incName);
305                 outStr += _doPyp(incName)
306         else:
307             if not deps:
308                 outStr += line
309
310     # done
311     if deps:
312         return out
313     else:
314         return outStr
315
316 def include_processor(task):
317     infileName = task.inputs[0].srcpath()
318     outfileName = os.path.join(out, task.outputs[0].bldpath())
319     fdOut = open (outfileName, "w")
320     fdOut.write (_doPyp(infileName))
321     fdOut.close ()
322
323
324 def build_color_scheme(path, prefix):
325     f = open (path, 'r')
326     color_scheme = ''
327     for line in f:
328         if re.search ('^#@color', line):
329             line.strip() # remove newline
330             words = line.split()
331             if len(color_scheme):
332                 color_scheme += ';'
333             color_scheme += prefix
334             color_scheme += '_'
335             color_scheme += words[1]
336             color_scheme += ':'
337             color_scheme += words[2]
338     f.close()
339     return color_scheme
340
341 def build(bld):
342     # GTK front-end; if we're using VST we build this as a shared library,
343     # otherwise it's a normal executabale
344     if bld.is_defined('VST_SUPPORT'):
345         obj = bld(features = 'cxx c cxxshlib')
346     else:
347         obj = bld(features = 'cxx c cxxprogram')
348
349     obj.includes     = ['.']
350     obj.source       = gtk2_ardour_sources
351     obj.name         = 'gtk2_ardour'
352     obj.linkflags    = []
353     if bld.is_defined('VST_SUPPORT'):
354         obj.target = 'gtk2_ardour'
355         obj.includes += ['../libs/fst']
356     else:
357         obj.target = 'ardour-3.0'
358     obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
359     obj.uselib       = 'UUID FLAC GLIBMM GTHREAD GTK OGG ALSA CURL DL'
360     obj.uselib       += ' GTKMM GNOMECANVASMM GNOMECANVAS '
361     obj.uselib       += ' AUDIOUNITS OSX GTKOSX '
362     obj.use          = [ 'libpbd',
363                          'libmidipp',
364                          'libtaglib',
365                          'libardour',
366                          'libardour_cp',
367                          'libgtkmm2ext',
368                          'libtaglib' ]
369     if sys.platform == 'darwin':
370         obj.use += ' libappleutility'
371     obj.defines     = [
372         'PACKAGE="gtk2_ardour"',
373         'VERSIONSTRING="' + bld.env['VERSION'] + '"',
374         'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',
375         'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"',
376         'MODULE_DIR="' + os.path.normpath(bld.env['LIBDIR']) + '"',
377         'LOCALEDIR="' + os.path.join(os.path.normpath(bld.env['DATADIR']),
378                                      'locale') + '"',
379         'PROGRAM_NAME="' + bld.env['PROGRAM_NAME'] + '"'
380         ]
381     obj.includes += ['../libs']
382
383     if bld.is_defined('HAVE_SUIL'):
384         obj.source += [ 'lv2_plugin_ui.cc' ]
385         obj.uselib += ' SUIL '
386
387     if bld.is_defined('FREESOUND'):
388         obj.source +=  [ 'sfdb_freesound_mootcher.cc' ]
389
390     if bld.is_defined('VST_SUPPORT'):
391         obj.source += [ 'vst_pluginui.cc' ]
392         obj.defines += [ 'VST_SUPPORT' ]
393         bld.env.append ('LINKFLAGS', '-lX11')
394
395     if bld.is_defined('LXVST_SUPPORT'):
396         obj.source += [ 'lxvst_pluginui.cc' ]
397         obj.defines += [ 'LXVST_SUPPORT' ]
398         obj.linkflags += [ '-lX11' ]
399
400     if bld.is_defined('PHONE_HOME'):
401         obj.defines += [ 'PHONE_HOME' ]
402
403     if bld.is_defined('HAVE_COREAUDIO'):
404         TaskGen.task_gen.mappings['.mm'] = TaskGen.task_gen.mappings['.cc']
405         obj.source += [ 'cocoacarbon.mm', 'au_pluginui.mm' ]
406         obj.use += ' libappleutility '
407
408     if bld.is_defined('VST_SUPPORT'):
409         # If we require VST support we build a stub main() and the FST library
410         # here using winegcc, and link it to the GTK front-end library
411         obj = bld(features = 'cxx c cxxprogram wine')
412         obj.source = '''
413                 ../libs/fst/fst.c
414                 ../libs/fst/fstinfofile.c
415                 ../libs/fst/vsti.c
416                 ../libs/fst/vstwin.c
417                 ../vst/winmain.c
418         '''
419         obj.includes = '../libs/fst'
420         obj.target = 'ardour-3.0-vst'
421         obj.linkflags += ['-mwindows', '-Wl,--export-dynamic', '-lpthread']
422         obj.defines = ['_POSIX_SOURCE', 'USE_WS_PREFIX']
423         obj.uselib = 'ALSA'
424         obj.use = ['libpbd','libmidipp','libtaglib','libardour',
425                             'libardour_cp','libgtkmm2ext','libtaglib',
426                             'gtk2_ardour']
427
428     # Wrappers
429
430     wrapper_subst_dict = {
431             'INSTALL_PREFIX' : bld.env['PREFIX'],
432             'LIBDIR'         : os.path.normpath(bld.env['LIBDIR']),
433             'LIBS'           : 'build/libs',
434             'VERSION'        : '3.0',
435             'EXECUTABLE'     : 'build/gtk2_ardour/ardour-3.0'
436     }
437
438     def set_subst_dict(obj, dict):
439         for i in dict:
440             setattr(obj, i, dict[i])
441
442     obj              = bld(features = 'subst', rule= 'chmod 0755 ${TGT}')
443     obj.source       = 'ardev_common.sh.in'
444     obj.target       = 'ardev_common_waf.sh'
445     obj.chmod        = Utils.O755
446     obj.dict         = wrapper_subst_dict
447     set_subst_dict(obj, wrapper_subst_dict)
448
449     obj              = bld(features = 'subst')
450     obj.source       = 'ardour.sh.in'
451     obj.target       = 'ardour3'
452     obj.chmod        = Utils.O755
453     obj.dict         = wrapper_subst_dict
454     obj.install_path = bld.env['BINDIR']
455     set_subst_dict(obj, wrapper_subst_dict)
456
457     # Font configuration
458
459     dark_rc_subst_dict = {}
460     light_rc_subst_dict = {}
461     font_sizes      = {}
462     base_font       = ""
463
464     # Set up font sizes
465     if bld.is_defined('GTKOSX'): # OS X fonts
466         basefont = "Lucida Grande"
467         font_sizes = {
468                 'TINY' : '7',
469                 'SMALLER' : '9',
470                 'SMALL' : '10',
471                 'NORMAL' : '11',
472                 'BIG' : '12',
473                 'BIGGER' : '14',
474                 'LARGE' : '18',
475                 'LARGER' : '28',
476                 'HUGER' : '36',
477                 'MASSIVE' : '60'
478         }
479     else: # Linux/X11 fonts
480         basefont = '' # unspecified - use system defaults
481         font_sizes = {
482                 'TINY' : '6',
483                 'SMALLER' : '8',
484                 'SMALL' : '9',
485                 'NORMAL' : '10',
486                 'BIG' : '14',
487                 'BIGGER' : '16',
488                 'LARGE' : '18',
489                 'LARGER' : '24',
490                 'HUGER' : '34',
491                 'MASSIVE' : '60'
492         }
493
494     # Set up font substitution dictionary
495     # @FONT_XXXX@
496     for style in ['', 'BOLD', 'ITALIC']:
497         for sizename,points in iter(font_sizes.items()):
498             if (len (style)):
499                 key = "_".join (['FONT',style,sizename])
500                 fontstyle = " ".join ([basefont,style.lower(),points])
501             else:
502                 key = "_".join (['FONT',sizename])
503                 fontstyle = " ".join ([basefont,points])
504
505             dark_rc_subst_dict[key] = fontstyle
506             light_rc_subst_dict[key] = fontstyle
507
508     # @FONT_SIZE_XXXX@
509     for sizename,points in iter(font_sizes.items()):
510             key = "_".join (['FONT_SIZE',sizename])
511             dark_rc_subst_dict[key] = points
512             light_rc_subst_dict[key] = points
513
514     # RC files
515     dark_rc_subst_dict['COLOR_SCHEME'] = build_color_scheme(
516         'gtk2_ardour/ardour3_ui_dark.rc.in', 'ARDOUR_DARK')
517     dark_rc_subst_dict['COLPREFIX'] = 'ARDOUR_DARK'
518     light_rc_subst_dict['COLOR_SCHEME'] = build_color_scheme(
519         'gtk2_ardour/ardour3_ui_light.rc.in', 'ARDOUR_LIGHT')
520     light_rc_subst_dict['COLPREFIX'] = 'ARDOUR_LIGHT'
521
522     obj              = bld(features = 'subst')
523     obj.source       = [ 'ardour3_ui_dark.rc.in' ]
524     obj.target       = 'ardour3_ui_dark.rc.pre'
525     obj.install_path = None
526     set_subst_dict(obj, dark_rc_subst_dict)
527
528     obj              = bld(features = 'subst')
529     obj.source       = [ 'ardour3_ui_light.rc.in' ]
530     obj.target       = 'ardour3_ui_light.rc.pre'
531     obj.install_path = None
532     set_subst_dict(obj, light_rc_subst_dict)
533
534     obj              = bld(features = 'subst')
535     obj.source       = [ 'ardour3_styles.rc.in' ]
536     obj.target       = 'ardour3_dark_styles.rc'
537     obj.install_path = None
538     set_subst_dict(obj, dark_rc_subst_dict)
539
540     obj              = bld(features = 'subst')
541     obj.source       = [ 'ardour3_styles.rc.in' ]
542     obj.target       = 'ardour3_light_styles.rc'
543     obj.install_path = None
544     set_subst_dict(obj, light_rc_subst_dict)
545
546     obj              = bld(features = 'subst')
547     obj.source       = [ 'ardour3_fonts.rc.in' ]
548     obj.target       = 'ardour3_dark_fonts.rc'
549     obj.install_path = None
550     set_subst_dict(obj, dark_rc_subst_dict)
551
552     obj              = bld(features = 'subst')
553     obj.source       = [ 'ardour3_fonts.rc.in' ]
554     obj.target       = 'ardour3_light_fonts.rc'
555     obj.install_path = None
556     set_subst_dict(obj, light_rc_subst_dict)
557
558     obj              = bld(rule = 'cp ${SRC} ${TGT}')
559     obj.source       = [ 'ardour3_widget_list.rc' ]
560     obj.target       = 'ardour3_widgets.rc'
561     obj.install_path = None
562
563     obj = bld (rule = include_processor)
564     obj.source = [ 'ardour3_ui_dark.rc.pre' ]
565     # find and add all ##include dependencies as sources
566     obj.source += _doPyp (bld.path.find_resource ('ardour3_ui_dark.rc.in').srcpath(), True)
567     obj.target = 'ardour3_ui_dark.rc'
568     obj.install_path = '${SYSCONFDIR}/ardour3'
569
570     obj = bld (rule = include_processor)
571     obj.source = [ 'ardour3_ui_light.rc.pre' ]
572     # find and add all ##include dependencies as sources
573     obj.source += _doPyp (bld.path.find_resource ('ardour3_ui_light.rc.in').srcpath(), True)
574     obj.target = 'ardour3_ui_light.rc'
575     obj.install_path = '${SYSCONFDIR}/ardour3'
576
577     # Menus
578     menus_argv = []
579     if bld.is_defined('GTKOSX'):
580         menus_argv = [ '-E', '-P', '-DGTKOSX' ]
581     else:
582         menus_argv = [ '-E', '-P' ]
583     obj = bld(features = 'command-output')
584     obj.command = 'cpp'
585     obj.command_is_external = True
586     obj.no_inputs = True
587     obj.argv = menus_argv
588     obj.stdin = 'ardour.menus.in'
589     obj.stdout = 'ardour.menus'
590     bld.install_files(os.path.join(bld.env['SYSCONFDIR'], 'ardour3'),
591                       'ardour.menus')
592
593     # Keybindings
594
595     # 'SAE-de-keypad', 'SAE-de-nokeypad', 'SAE-us-keypad',
596     # 'SAE-us-nokeypad', 'ergonomic-us'
597
598     for b in [ 'mnemonic-us' ] :
599         obj = bld(
600             target = b + '.bindings',
601             source = b + '.bindings.in',
602             rule = '../tools/fmt-bindings --platform="%s" --winkey="%s" --accelmap <${SRC} >${TGT}' % (sys.platform, bld.env['WINDOWS_KEY'] )
603             )
604         obj.install_path = os.path.join(bld.env['SYSCONFDIR'], 'ardour3')
605
606     # not modified at present
607     bld.install_files(os.path.join(bld.env['SYSCONFDIR'], 'ardour3'),
608                       'step_editing.bindings')
609
610     # Icons/Images
611     bld.install_files('${DATADIR}/ardour3/icons', bld.path.ant_glob('icons/*.png'))
612     bld.install_files('${DATADIR}/ardour3/pixmaps', bld.path.ant_glob('pixmaps/*.xpm'))
613     bld.install_files('${DATADIR}/ardour3', 'splash.png')
614
615     # Default UI configuration
616     bld.install_files('${SYSCONFDIR}/ardour3', 'ardour3_ui_default.conf')
617     # Generic widget style mappings
618     bld.install_files('${SYSCONFDIR}/ardour3', 'ardour3_widgets.rc')
619
620     # Default export stuff
621     bld.install_files('${SYSCONFDIR}/ardour3/export', bld.path.ant_glob('export/*.format'))
622
623     # i18n
624     if bld.is_defined('ENABLE_NLS'):
625         mo_files = bld.path.ant_glob ('po/*.mo')
626         for mo in mo_files:
627             lang = os.path.basename (mo).replace ('.mo', '')
628             bld.install_as (os.path.join(bld.env['PREFIX'], 'share', 'locale',
629                                          lang, 'LC_MESSAGES', APPNAME + '.mo'),
630                             mo)
631
632 def i18n(bld):
633     autowaf.build_i18n(bld, srcdir, 'gtk2_ardour', APPNAME, gtk2_ardour_sources)