shuttle control: make scroll events step by precisely 1 of the current units
[ardour.git] / autowaf.py
index 4e2afb2ece1f804ff376fae27539d4b69cdc39cb..c9ac680c7b4c573c41c82705c93612c4cfbd5e81 100644 (file)
@@ -40,7 +40,9 @@ def set_options(opt):
        opt.tool_options('compiler_cc')
        opt.tool_options('compiler_cxx')
        opt.add_option('--debug', action='store_true', default=True, dest='debug',
-                       help="Build debuggable binaries [Default: False]")
+                       help="Build debuggable binaries [Default: True]")
+       opt.add_option('--optimize', action='store_false', default=True, dest='debug',
+                       help="Build optimized binaries [Default: False]")
        opt.add_option('--strict', action='store_true', default=False, dest='strict',
                        help="Use strict compiler flags and show all warnings [Default: False]")
        opt.add_option('--docs', action='store_true', default=False, dest='docs',
@@ -439,7 +441,7 @@ def shutdown():
                except: pass
 
 def build_i18n(bld,srcdir,dir,name,sources):
-       pwd = bld.get_curdir()
+       pwd = os.getcwd()
        os.chdir(os.path.join (srcdir, dir))
 
        pot_file = '%s.pot' % name
@@ -469,6 +471,7 @@ def build_i18n(bld,srcdir,dir,name,sources):
                mo_file = po_file.replace ('.po', '.mo')
                args = [ 'msgfmt',
                         '-c',
+                        '-f',
                         '-o',
                         mo_file,
                         po_file ]