Re-try de.po with (hopefully) the correct encoding.
[ardour.git] / gtk2_ardour / wscript
index 6096394bed0541a73a2b845a8ed566caac2f1a55..50d617290a311fcfa2f1f0e978491c0d15630028 100644 (file)
@@ -40,6 +40,7 @@ gtk2_ardour_sources = [
         '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',
@@ -148,6 +149,7 @@ gtk2_ardour_sources = [
         'midi_tracer.cc',
         'missing_file_dialog.cc',
         'missing_plugin_dialog.cc',
+        'mixer_actor.cc',
         'mixer_group_tabs.cc',
         'mixer_strip.cc',
         'mixer_ui.cc',
@@ -230,6 +232,7 @@ gtk2_ardour_sources = [
         'utils.cc',
         'verbose_cursor.cc',
         'version.cc',
+        'visibility_group.cc',
         'volume_controller.cc',
         'waveview.cc',
         'window_proxy.cc'
@@ -265,6 +268,7 @@ def configure(conf):
     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)
 
@@ -369,7 +373,7 @@ def build(bld):
     if sys.platform == 'darwin':
         obj.use += ' libappleutility'
     obj.defines     = [
-        'PACKAGE="gtk2_ardour"',
+        'PACKAGE="gtk2_ardour3"',
         'VERSIONSTRING="' + bld.env['VERSION'] + '"',
         'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',
         'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"',
@@ -386,17 +390,18 @@ def build(bld):
 
     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')
+        obj.uselib += ' X11 '
 
     if bld.is_defined('LXVST_SUPPORT'):
-        obj.source += [ 'lxvst_pluginui.cc' ]
+        obj.source += [ 'vstfxwin.cc', 'lxvst_pluginui.cc' ]
         obj.defines += [ 'LXVST_SUPPORT' ]
-        obj.linkflags += [ '-lX11' ]
-
+        obj.uselib += ' X11 '
+        
     if bld.is_defined('PHONE_HOME'):
         obj.defines += [ 'PHONE_HOME' ]
 
@@ -606,6 +611,8 @@ def build(bld):
     # 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'))
@@ -622,12 +629,13 @@ def build(bld):
 
     # 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', APPNAME + '.mo'),
+                           mo)
 
 def i18n(bld):
-    autowaf.build_i18n(bld, srcdir, 'gtk2_ardour', APPNAME, gtk2_ardour_sources)
+    autowaf.build_i18n(bld, top, 'gtk2_ardour', APPNAME, gtk2_ardour_sources,
+                       'Paul Davis')