Bind home button to move the playhead to marker. Also stop extra thread after the...
[ardour.git] / SConstruct
index 6bfcbaa46f62d1fccbda8536513ceb6e5bf35e54..d841472956ee544964d399ff71666655b139c98c 100644 (file)
@@ -21,7 +21,7 @@ import SCons.Node.FS
 SConsignFile()
 EnsureSConsVersion(0, 96)
 
-ardour_version = '2.6'
+ardour_version = '2.6.1'
 
 subst_dict = { }
 
@@ -50,6 +50,7 @@ opts.AddOptions(
     BoolOption('NLS', 'Set to turn on i18n support', 1),
     PathOption('PREFIX', 'Set the install "prefix"', '/usr/local'),
     BoolOption('SURFACES', 'Build support for control surfaces', 1),
+    BoolOption('WIIMOTE', 'Build the wiimote control surface', 0),
     BoolOption('SYSLIBS', 'USE AT YOUR OWN RISK: CANCELS ALL SUPPORT FROM ARDOUR AUTHORS: Use existing system versions of various libraries instead of internal ones', 0),
     BoolOption('UNIVERSAL', 'Compile as universal binary.  Requires that external libraries are already universal.', 0),
     BoolOption('VERSIONED', 'Add revision information to ardour/gtk executable name inside the build directory', 0),
@@ -578,6 +579,12 @@ if env['LV2']:
 else:
        print 'LV2 support is not enabled.  Build with \'scons LV2=1\' to enable.'
 
+if env['WIIMOTE']:
+       wiimote_surface = [ 'libs/surfaces/wiimote' ]
+else:
+       wiimote_surface = [ ]
+       print 'WIIMOTE support not enabled. Build with \'scons WIIMOTE=1\' to enale.'
+
 libraries['jack'] = LibraryInfo()
 libraries['jack'].ParseConfig('pkg-config --cflags --libs jack')
 
@@ -900,6 +907,12 @@ if conf.CheckHeader('linux/input.h'):
 else:
     have_linux_input = False
 
+# let's continue checking, check for libcwiid
+if not conf.CheckHeader('cwiid.h'):
+    if env['WIIMOTE']:
+       print 'WIIIMOTE configured but you are missing libcwiid!'
+        sys.exit(1)
+
 libraries['usb'] = conf.Finish ()
 
 #
@@ -1118,6 +1131,9 @@ else:
     libraries['pangomm'] = LibraryInfo(LIBS='pangomm',
                                     LIBPATH='#libs/gtkmm2/pango',
                                     CPPPATH='#libs/gtkmm2/pango')
+    libraries['cairomm'] = LibraryInfo(LIBS='cairomm',
+                                    LIBPATH='#libs/cairomm',
+                                    CPPPATH='#libs/cairomm')
     libraries['atkmm'] = LibraryInfo(LIBS='atkmm',
                                      LIBPATH='#libs/gtkmm2/atk',
                                      CPPPATH='#libs/gtkmm2/atk')
@@ -1193,6 +1209,7 @@ surface_subdirs = [ 'libs/surfaces/control_protocol',
                     'libs/surfaces/mackie',
                     'libs/surfaces/powermate'
                     ]
+surface_subdirs += wiimote_surface
 
 if env['SURFACES']:
     if have_libusb:
@@ -1307,6 +1324,21 @@ if not conf.CheckFunc('posix_memalign'):
 
 env = conf.Finish()
 
+# Which GTK tooltips API
+
+gtktestenv = env.Clone ()
+gtktestenv.Merge ([
+        libraries['gtk2']
+        ])
+
+conf = gtktestenv.Configure ()
+
+if conf.CheckFunc('gtk_widget_set_tooltip_text'):
+    env.Append (CXXFLAGS='-DGTK_NEW_TOOLTIP_API')
+
+conf.Finish ()
+
+
 # generate the per-user and system rc files from the same source
 
 sysrcbuild = env.SubstInFile ('ardour_system.rc','ardour.rc.in', SUBST_DICT = subst_dict)