add lib/LV2 path akin to lib/surfaces, to allow bundling of LV2 plugins in an ardour...
[ardour.git] / libs / ardour / wscript
1 #!/usr/bin/env python
2 from waflib.extras import autowaf as autowaf
3 from waflib import Options
4 import os
5 import re
6 import subprocess
7
8 # default state file version for this build
9 CURRENT_SESSION_FILE_VERSION = 3001
10
11 # Variables for 'waf dist'
12 APPNAME = 'libardour3'
13 I18N_PACKAGE = 'ardour3'
14
15 # Mandatory variables
16 top = '.'
17 out = 'build'
18
19 path_prefix = 'libs/ardour/'
20
21 libardour_sources = [
22         'amp.cc',
23         'analyser.cc',
24         'audio_buffer.cc',
25         'audio_diskstream.cc',
26         'audio_library.cc',
27         'audio_playlist.cc',
28         'audio_playlist_importer.cc',
29         'audio_playlist_source.cc',
30         'audio_port.cc',
31         'audio_region_importer.cc',
32         'audio_track.cc',
33         'audio_track_importer.cc',
34         'audioanalyser.cc',
35         'audioengine.cc',
36         'audiofile_tagger.cc',
37         'audiofilesource.cc',
38         'audioregion.cc',
39         'audiosource.cc',
40         'auditioner.cc',
41         'automatable.cc',
42         'automation.cc',
43         'automation_control.cc',
44         'automation_list.cc',
45         'automation_watch.cc',
46         'beats_frames_converter.cc',
47         'broadcast_info.cc',
48         'buffer.cc',
49         'buffer_manager.cc',
50         'buffer_set.cc',
51         'bundle.cc',
52         'butler.cc',
53         'capturing_processor.cc',
54         'chan_count.cc',
55         'chan_mapping.cc',
56         'configuration.cc',
57         'config_text.cc',
58         'control_protocol_manager.cc',
59         'control_protocol_search_path.cc',
60         'cycle_timer.cc',
61         'data_type.cc',
62         'default_click.cc',
63         'debug.cc',
64         'delivery.cc',
65         'directory_names.cc',
66         'diskstream.cc',
67         'element_import_handler.cc',
68         'element_importer.cc',
69         'enums.cc',
70         'event_type_map.cc',
71         'export_channel.cc',
72         'export_channel_configuration.cc',
73         'export_failed.cc',
74         'export_filename.cc',
75         'export_format_base.cc',
76         'export_format_manager.cc',
77         'export_format_specification.cc',
78         'export_formats.cc',
79         'export_formats_search_path.cc',
80         'export_graph_builder.cc',
81         'export_handler.cc',
82         'export_preset.cc',
83         'export_profile_manager.cc',
84         'export_status.cc',
85         'export_timespan.cc',
86         'file_source.cc',
87         'filename_extensions.cc',
88         'filesystem_paths.cc',
89         'filter.cc',
90         'find_session.cc',
91         'globals.cc',
92         'graph.cc',
93         'graphnode.cc',
94         'import.cc',
95         'instrument_info.cc',
96         'internal_return.cc',
97         'internal_send.cc',
98         'interpolation.cc',
99         'io.cc',
100         'io_processor.cc',
101         'jack_slave.cc',
102         'ladspa_plugin.cc',
103         'location.cc',
104         'location_importer.cc',
105         'ltc_slave.cc',
106         'lv2_bundled_search_path.cc',
107         'meter.cc',
108         'midi_automation_list_binder.cc',
109         'midi_buffer.cc',
110         'midi_clock_slave.cc',
111         'midi_diskstream.cc',
112         'midi_model.cc',
113         'midi_patch_manager.cc',
114         'midi_patch_search_path.cc',
115         'midi_playlist.cc',
116         'midi_playlist_source.cc',
117         'midi_port.cc',
118         'midi_region.cc',
119         'midi_ring_buffer.cc',
120         'midi_source.cc',
121         'midi_state_tracker.cc',
122         'midi_stretch.cc',
123         'midi_track.cc',
124         'midi_ui.cc',
125         'mix.cc',
126         'monitor_processor.cc',
127         'mtc_slave.cc',
128         'mtdm.cc',
129         'mute_master.cc',
130         'onset_detector.cc',
131         'operations.cc',
132         'pan_controllable.cc',
133         'pannable.cc',
134         'panner.cc',
135         'panner_manager.cc',
136         'panner_search_path.cc',
137         'panner_shell.cc',
138         'pcm_utils.cc',
139         'pi_controller.cc',
140         'playlist.cc',
141         'playlist_factory.cc',
142         'playlist_source.cc',
143         'plugin.cc',
144         'plugin_insert.cc',
145         'plugin_manager.cc',
146         'port.cc',
147         'port_insert.cc',
148         'port_set.cc',
149         'process_thread.cc',
150         'processor.cc',
151         'progress.cc',
152         'quantize.cc',
153         'rc_configuration.cc',
154         'recent_sessions.cc',
155         'region_factory.cc',
156         'resampled_source.cc',
157         'region.cc',
158         'return.cc',
159         'reverse.cc',
160         'route.cc',
161         'route_graph.cc',
162         'route_group.cc',
163         'route_group_member.cc',
164         'rb_effect.cc',
165         'send.cc',
166         'session.cc',
167         'session_butler.cc',
168         'session_click.cc',
169         'session_command.cc',
170         'session_configuration.cc',
171         'session_directory.cc',
172         'session_events.cc',
173         'session_export.cc',
174         'session_handle.cc',
175         'session_ltc.cc',
176         'session_metadata.cc',
177         'session_midi.cc',
178         'session_object.cc',
179         'session_playlists.cc',
180         'session_process.cc',
181         'session_rtevents.cc',
182         'session_state.cc',
183         'session_state_utils.cc',
184         'session_time.cc',
185         'session_transport.cc',
186         'slave.cc',
187         'smf_source.cc',
188         'sndfile_helpers.cc',
189         'sndfileimportable.cc',
190         'sndfilesource.cc',
191         'source.cc',
192         'source_factory.cc',
193         'speakers.cc',
194         'strip_silence.cc',
195         'revision.cc',
196         'tape_file_matcher.cc',
197         'template_utils.cc',
198         'tempo.cc',
199         'tempo_map_importer.cc',
200         'thread_buffers.cc',
201         'ticker.cc',
202         'track.cc',
203         'transient_detector.cc',
204         'unknown_processor.cc',
205         'user_bundle.cc',
206         'utils.cc',
207         'version.cc',
208         'worker.cc'
209 ]
210
211 def flac_supported():
212     cmd = subprocess.Popen ("sndfile-info testfile.flac",
213                             stdout = subprocess.PIPE,
214                             stderr = subprocess.STDOUT, shell = True)
215     out = cmd.communicate()[0].decode('utf-8');
216     return re.search ('unknown format', out) == None
217
218 def ogg_supported():
219     cmd = subprocess.Popen ("sndfile-info testfile.ogg",
220                             stdout = subprocess.PIPE,
221                             stderr = subprocess.STDOUT, shell = True)
222     out = cmd.communicate()[0].decode('utf-8');
223     return re.search ('unknown format', out) == None
224
225 def options(opt):
226     autowaf.set_options(opt)
227
228 def configure(conf):
229     conf.load('compiler_cxx')
230     conf.load('gas')
231     # we don't use hard-coded micro versions with ardour, so hard code it to zero
232     autowaf.build_version_files(
233         path_prefix + 'ardour/version.h',
234         path_prefix + 'version.cc',
235         'libardour3', conf.env['MAJOR'], conf.env['MINOR'], 0)
236     autowaf.configure(conf)
237     autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO',
238                       atleast_version='0.3.2')
239     autowaf.check_pkg(conf, 'jack', uselib_store='JACK',
240                       atleast_version='0.118.2')
241     autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
242     autowaf.check_pkg(conf, 'lrdf', uselib_store='LRDF',
243                       atleast_version='0.4.0')
244     autowaf.check_pkg(conf, 'samplerate', uselib_store='SAMPLERATE',
245                       atleast_version='0.1.0')
246     autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP',
247                       atleast_version='2.0')
248     if Options.options.lv2:
249         autowaf.check_pkg(conf, 'lv2', uselib_store='LV2',
250                           atleast_version='1.0.0', mandatory=True)
251         autowaf.check_pkg(conf, 'lv2', uselib_store='NEW_LV2',
252                           atleast_version='1.0.15', mandatory=False)
253         autowaf.check_pkg(conf, 'serd-0', uselib_store='SERD',
254                           atleast_version='0.14.0', mandatory=True)
255         autowaf.check_pkg(conf, 'sord-0', uselib_store='SORD',
256                           atleast_version='0.8.0', mandatory=True)
257         autowaf.check_pkg(conf, 'sratom-0', uselib_store='SRATOM',
258                           atleast_version='0.2.0', mandatory=True)
259         autowaf.check_pkg(conf, 'lilv-0', uselib_store='LILV',
260                           atleast_version='0.14.0', mandatory=True)
261         autowaf.check_pkg(conf, 'lilv-0', uselib_store='NEW_LILV',
262                           atleast_version='0.15.0', mandatory=False)
263         autowaf.check_pkg(conf, 'suil-0', uselib_store='SUIL',
264                           atleast_version='0.6.0', mandatory=False)
265         conf.define ('LV2_SUPPORT', 1)
266
267 #    autowaf.check_pkg(conf, 'soundtouch-1.0', uselib_store='SOUNDTOUCH',
268 #                      mandatory=False)
269     autowaf.check_pkg(conf, 'cppunit', uselib_store='CPPUNIT',
270                       atleast_version='1.12.0', mandatory=False)
271     autowaf.check_pkg(conf, 'ogg', uselib_store='OGG', atleast_version='1.1.2')
272     autowaf.check_pkg(conf, 'flac', uselib_store='FLAC',
273                       atleast_version='1.2.1')
274     autowaf.check_pkg(conf, 'libcurl', uselib_store='CURL',
275                       atleast_version='7.0.0')
276
277     # we don't try to detect this, since its part of our source tree
278
279     conf.define('HAVE_RUBBERBAND', 1) # controls whether we think we have it
280     conf.define('USE_RUBBERBAND', 1)  # controls whether we actually use it
281
282     conf.define('CURRENT_SESSION_FILE_VERSION', CURRENT_SESSION_FILE_VERSION)
283
284     conf.check(header_name='sys/vfs.h', define_name='HAVE_SYS_VFS_H',mandatory=False)
285     conf.check(header_name='sys/statvfs.h', define_name='HAVE_SYS_STATVFS_H',mandatory=False)
286
287     conf.check(header_name='jack/session.h', uselib = [ 'JACK' ],
288                define_name='HAVE_JACK_SESSION')
289
290     conf.check(header_name='unistd.h', define_name='HAVE_UNISTD',mandatory=False)
291
292     conf.check_cc(fragment = '''
293 #include <jack/jack.h>
294 void callback(jack_status_t code, const char* reason, void* arg) { return; }
295 int main(int argc, char **argv) {
296     jack_client_t* c;
297     jack_on_info_shutdown(c, callback, (void*) 0);
298     return 0;
299 }''',
300                   uselib= [ 'JACK' ],
301                   msg = 'Checking for jack_on_info_shutdown',
302                   define_name = 'HAVE_JACK_ON_INFO_SHUTDOWN',
303                   okmsg = 'present')
304
305     missing_jack_message = 'missing - a version of JACK that supports jack_port_set_latency_range() is required to compile Ardour3.'
306
307     conf.check_cc(fragment = '''
308 #include <jack/jack.h>
309 int main(int argc, char **argv) {
310     jack_port_t* p;
311     jack_latency_range_t r;
312     jack_port_set_latency_range(p, JackCaptureLatency, &r);
313     return 0;
314 }''',
315                   uselib = [ 'JACK' ],
316                   msg = 'Checking for new JACK latency API',
317                   okmsg = 'present',
318                   mandatory = True,
319                   errmsg = missing_jack_message)
320
321     conf.check_cc(fragment = '''
322 #include <jack/jack.h>
323 int main(int argc, char **argv) {
324    jack_port_type_get_buffer_size((jack_client_t*)0, "");
325    return 0;
326 }''',
327                   uselib = [ 'JACK' ],
328                   msg = 'Checking for new jack_port_type_get_buffer_size',
329                   okmsg = 'present',
330                   mandatory = True,
331                   errmsg = missing_jack_message)
332
333     conf.check_cc(fragment = '''
334 #include <jack/transport.h>
335 int main(int argc, char** argv) {
336   jack_position_t pos;
337   pos.valid & JackVideoFrameOffset;
338   return 0;
339 }''',
340                   uselib= [ 'JACK' ],
341                   msg = 'Checking for JackVideoFrameOffset',
342                   define_name = 'HAVE_JACK_VIDEO_SUPPORT',
343                   mandatory = False,
344                   okmsg = 'present')
345
346     if flac_supported():
347         conf.define ('HAVE_FLAC', 1)
348     if ogg_supported():
349         conf.define ('HAVE_OGG', 1)
350
351     conf.write_config_header('libardour-config.h', remove=False)
352
353     # Boost headers
354     autowaf.check_header(conf, 'cxx', 'boost/shared_ptr.hpp')
355     autowaf.check_header(conf, 'cxx', 'boost/weak_ptr.hpp')
356     autowaf.check_header(conf, 'cxx', 'boost/scoped_ptr.hpp')
357     autowaf.check_header(conf, 'cxx', 'boost/ptr_container/ptr_list.hpp')
358
359
360 def build(bld):
361     # Library version (UNIX style major, minor, micro)
362     # major increment <=> incompatible changes
363     # minor increment <=> compatible changes (additions)
364     # micro increment <=> no interface changes
365     LIBARDOUR_LIB_VERSION = "3.0.0."
366
367     # Library
368     if bld.is_defined ('INTERNAL_SHARED_LIBS'):
369         obj              = bld.shlib(features = 'c cxx cshlib cxxshlib', source=libardour_sources)
370     else:
371         obj              = bld.stlib(features = 'c cxx cstlib cxxstlib', source=libardour_sources)
372         obj.cxxflags     = [ '-fPIC' ]
373         obj.cflags       = [ '-fPIC' ]
374
375     obj.export_includes = ['.']
376     obj.includes     = ['.', '../surfaces/control_protocol', '..']
377     obj.name         = 'ardour'
378     obj.target       = 'ardour'
379     obj.uselib       = ['GLIBMM','GTHREAD','AUBIO','SIGCPP','XML','UUID',
380                         'JACK','SNDFILE','SAMPLERATE','LRDF','AUDIOUNITS',
381                         'OSX','BOOST','CURL','DL']
382     obj.use          = ['libpbd','libmidipp','libevoral','libvamphost',
383                         'libvampplugin','libtaglib','librubberband',
384                         'libaudiographer','libltc']
385     obj.vnum         = LIBARDOUR_LIB_VERSION
386     obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
387     obj.defines      = [
388         'PACKAGE="' + I18N_PACKAGE + '"',
389         'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',
390         'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"',
391         'LOCALEDIR="' + os.path.join(os.path.normpath(bld.env['DATADIR']), 'locale') + '"',
392         'PROGRAM_NAME="' + bld.env['PROGRAM_NAME'] + '"',
393         'EVORAL_MIDI_XML=1' 
394         ]
395
396     #obj.source += ' st_stretch.cc st_pitch.cc '
397     #obj.uselib += ' SOUNDTOUCH '
398     #obj.add_objects = 'default/libs/surfaces/control_protocol/smpte_1.o'
399
400     if bld.is_defined('HAVE_LILV') :
401         obj.source += ['lv2_plugin.cc', 'lv2_evbuf.c', 'uri_map.cc'] 
402         obj.uselib += ['LILV']
403         if bld.is_defined('HAVE_SUIL'):
404             obj.uselib += ['SUIL']
405
406     if bld.is_defined('WINDOWS_VST_SUPPORT'):
407         obj.source += [ 'windows_vst_plugin.cc']
408         obj.includes += [ '../fst' ]
409         obj.defines += [ 'WINDOWS_VST_SUPPORT' ]
410
411     if bld.is_defined('LXVST_SUPPORT'):
412         obj.source += [ 'lxvst_plugin.cc', 'linux_vst_support.cc', 'linux_vst_info_file.cc' ]
413         obj.defines += [ 'LXVST_SUPPORT' ]
414
415     if bld.is_defined('WINDOWS_VST_SUPPORT') or bld.is_defined('LXVST_SUPPORT'):
416         obj.source += [ 'session_vst.cc', 'vst_plugin.cc' ]
417
418     if bld.is_defined('HAVE_COREAUDIO'):
419         obj.source += [ 'coreaudiosource.cc', 'caimportable.cc' ]
420         obj.use    += ['libappleutility']
421
422     if bld.is_defined('AUDIOUNIT_SUPPORT'):
423         obj.source += [ 'audio_unit.cc' ]
424
425     if Options.options.fpu_optimization:
426         if (bld.env['build_target'] == 'i386' or bld.env['build_target'] == 'i686'):
427             obj.source += [ 'sse_functions_xmm.cc', 'sse_functions.s' ]
428         elif bld.env['build_target'] == 'x86_64':
429             obj.source += [ 'sse_functions_xmm.cc', 'sse_functions_64bit.s' ]
430
431     # i18n
432     if bld.is_defined('ENABLE_NLS'):
433         mo_files = bld.path.ant_glob('po/*.mo')
434         for mo in mo_files:
435             lang = os.path.basename(mo.srcpath()).replace('.mo', '')
436             bld.install_as(os.path.join(bld.env['PREFIX'], 'share', 'locale',
437                                         lang, 'LC_MESSAGES', I18N_PACKAGE + '.mo'),
438                            mo)
439
440     if bld.env['BUILD_TESTS'] and bld.is_defined('HAVE_CPPUNIT'):
441         # Unit tests
442         testobj              = bld(features = 'cxx cxxprogram')
443         testobj.source       = '''
444                 test/dummy_lxvst.cc
445                 test/test_util.cc
446                 test/test_needing_session.cc
447                 test/audio_region_test.cc
448                 test/test_globals.cc
449                 test/audio_region_read_test.cc
450                 test/automation_list_property_test.cc
451                 test/bbt_test.cc
452                 test/tempo_test.cc
453                 test/interpolation_test.cc
454                 test/midi_clock_slave_test.cc
455                 test/resampled_source_test.cc
456                 test/framewalk_to_beats_test.cc
457                 test/framepos_plus_beats_test.cc
458                 test/framepos_minus_beats_test.cc
459                 test/playlist_layering_test.cc
460                 test/playlist_read_test.cc
461                 test/playlist_equivalent_regions_test.cc
462                 test/control_surfaces_test.cc
463                 test/combine_regions_test.cc
464                 test/region_naming_test.cc
465                 test/load_sessions_test.cc
466                 test/mtdm_test.cc
467                 test/testrunner.cc
468         '''.split()
469
470 # Tests that don't work
471 #                test/mantis_3356_test.cc
472
473         testobj.includes     = obj.includes + ['test', '../pbd', '../libltc', '../audiographer']
474         testobj.uselib       = ['CPPUNIT','SIGCPP','JACK','GLIBMM','GTHREAD',
475                                 'SAMPLERATE','XML','LRDF','COREAUDIO']
476         testobj.use          = ['libpbd','libmidipp','ardour','libltc','libaudiographer']
477         testobj.name         = 'libardour-tests'
478         testobj.target       = 'run-tests'
479         testobj.install_path = ''
480         testobj.defines      = [
481             'PACKAGE="libardour3test"',
482             'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',
483             'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"',
484             'LOCALEDIR="' + os.path.join(
485                 os.path.normpath(bld.env['DATADIR']), 'locale') + '"',
486             'VAMP_DIR="' + os.path.join(
487                 os.path.normpath(bld.env['LIBDIR']), 'ardour3', 'vamp') + '"'
488             ]
489         if bld.env['FPU_OPTIMIZATION']:
490             testobj.source += [ 'sse_functions_xmm.cc' ]
491             if (bld.env['build_target'] == 'i386'
492                 or bld.env['build_target'] == 'i686'):
493                 testobj.source += [ 'sse_functions.s' ]
494             elif bld.env['build_target'] == 'x86_64':
495                 testobj.source += [ 'sse_functions_64bit.s' ]
496
497         # Tester to just load a session
498         session_load_tester = bld(features = 'cxx cxxprogram')
499         session_load_tester.source = '''
500                     test/test_util.cc
501                     test/load_session.cc
502                     test/dummy_lxvst.cc
503             '''.split()
504
505         session_load_tester.includes  = obj.includes
506         session_load_tester.includes.append ('test')
507         session_load_tester.uselib    = ['CPPUNIT','SIGCPP','JACK','GLIBMM','GTHREAD',
508                              'SAMPLERATE','XML','LRDF','COREAUDIO']
509         session_load_tester.use       = ['libpbd','libmidipp','ardour']
510         session_load_tester.name      = 'libardour-session-load-tester'
511         session_load_tester.target    = 'load-session'
512         session_load_tester.install_path = ''
513         session_load_tester.defines      = [
514             'PACKAGE="libardour3profile"',
515             'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',
516             'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"',
517             'LOCALEDIR="' + os.path.join(
518                 os.path.normpath(bld.env['DATADIR']), 'locale') + '"',
519             'VAMP_DIR="' + os.path.join(
520                 os.path.normpath(bld.env['LIBDIR']), 'ardour3', 'vamp') + '"'
521             ]
522         if bld.env['FPU_OPTIMIZATION']:
523             session_load_tester.source += [ 'sse_functions_xmm.cc' ]
524             if (bld.env['build_target'] == 'i386'
525                 or bld.env['build_target'] == 'i686'):
526                 session_load_tester.source += [ 'sse_functions.s' ]
527             elif bld.env['build_target'] == 'x86_64':
528                 session_load_tester.source += [ 'sse_functions_64bit.s' ]
529
530         # Profiling
531         for p in ['runpc', 'lots_of_regions', 'load_session']:
532             profilingobj = bld(features = 'cxx cxxprogram')
533             profilingobj.source = '''
534                     test/dummy_lxvst.cc
535                     test/test_util.cc
536             '''.split()
537
538             profilingobj.source.append('test/profiling/%s.cc' % p)
539
540             profilingobj.includes  = obj.includes
541             profilingobj.includes.append ('test')
542             profilingobj.uselib    = ['CPPUNIT','SIGCPP','JACK','GLIBMM','GTHREAD',
543                              'SAMPLERATE','XML','LRDF','COREAUDIO']
544             profilingobj.use       = ['libpbd','libmidipp','ardour']
545             profilingobj.name      = 'libardour-profiling'
546             profilingobj.target    = p
547             profilingobj.install_path = ''
548             profilingobj.defines      = [
549                 'PACKAGE="libardour3profile"',
550                 'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',
551                 'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"',
552                 'LOCALEDIR="' + os.path.join(
553                     os.path.normpath(bld.env['DATADIR']), 'locale') + '"',
554                 'VAMP_DIR="' + os.path.join(
555                     os.path.normpath(bld.env['LIBDIR']), 'ardour3', 'vamp') + '"'
556                 ]
557             if bld.env['FPU_OPTIMIZATION']:
558                 profilingobj.source += [ 'sse_functions_xmm.cc' ]
559                 if (bld.env['build_target'] == 'i386'
560                     or bld.env['build_target'] == 'i686'):
561                     profilingobj.source += [ 'sse_functions.s' ]
562                 elif bld.env['build_target'] == 'x86_64':
563                     profilingobj.source += [ 'sse_functions_64bit.s' ]
564
565 def shutdown():
566     autowaf.shutdown()
567
568 def i18n(bld):
569     autowaf.build_i18n(bld, top, 'libs/ardour', I18N_PACKAGE, libardour_sources,
570                        'Paul Davis')
571
572 def i18n_pot(bld):
573     autowaf.build_i18n(bld, top, 'libs/ardour', I18N_PACKAGE, libardour_sources,
574                        'Paul Davis')
575
576 def i18n_po(bld):
577     autowaf.build_i18n_po(bld, top, 'libs/ardour', I18N_PACKAGE, libardour_sources,
578                        'Paul Davis')
579
580 def i18n_mo(bld):
581     autowaf.build_i18n_mo(bld, top, 'libs/ardour', I18N_PACKAGE, libardour_sources,
582                        'Paul Davis')