Fix fader in mackie control to work with groups.
[ardour.git] / libs / surfaces / tranzport / wscript
index 7a7d5d2a05deb1e3e7c29a66f7e5c6ed7b93e7a3..21711149d726e40e686757ff19fb2e7597a97a30 100644 (file)
@@ -1,25 +1,19 @@
 #!/usr/bin/env python
-import autowaf
+from waflib.extras import autowaf as autowaf
 import os
 
-# Library version (UNIX style major, minor, micro)
-# major increment <=> incompatible changes
-# minor increment <=> compatible changes (additions)
-# micro increment <=> no interface changes
-LIBARDOUR_TRANZPORT_LIB_VERSION = '4.1.0'
-
 # Mandatory variables
-srcdir = '.'
-blddir = 'build'
+top = '.'
+out = 'build'
 
-def set_options(opt):
+def options(opt):
     autowaf.set_options(opt)
 
 def configure(conf):
     autowaf.configure(conf)
 
 def build(bld):
-    obj = bld.new_task_gen('cxx', 'shlib')
+    obj = bld(features = 'cxx cxxshlib')
     obj.source = '''
             button_events.cc
             buttons.cc
@@ -38,14 +32,14 @@ def build(bld):
             wheel.cc
             wheel_modes.cc
     '''
-    obj.export_incdirs = ['./tranzport']
-    obj.cxxflags     = '-DPACKAGE="ardour_tranzport"'
+    obj.export_includes = ['./tranzport']
+    obj.defines      = [ 'PACKAGE="ardour_tranzport"' ]
+    obj.defines     += [ 'ARDOURSURFACE_DLL_EXPORTS' ]
     obj.includes     = ['.', './tranzport']
     obj.name         = 'libardour_tranzport'
     obj.target       = 'ardour_tranzport'
-    obj.uselib_local = 'libardour libardour_cp'
-    obj.vnum         = LIBARDOUR_TRANZPORT_LIB_VERSION
-    obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'surfaces')
+    obj.use          = 'libardour libardour_cp'
+    obj.install_path = os.path.join(bld.env['LIBDIR'], 'surfaces')
 
 def shutdown():
     autowaf.shutdown()