Preserve region list selection state even if a region is selected which is not shown...
[ardour.git] / libs / pbd / wscript
index 8bd00bcff9ff73526b65215c300312f9aceb2099..54b416323a05d99b340d0f37bfd2db3e025d0db9 100644 (file)
@@ -40,6 +40,7 @@ def configure(conf):
 
        conf.check(function_name='getmntent', header_name='mntent.h', define_name='HAVE_GETMNTENT')
        conf.check(header_name='execinfo.h', define_name='HAVE_EXECINFO')
+       conf.check(header_name='unistd.h', define_name='HAVE_UNISTD')
 
        conf.write_config_header('libpbd-config.h')
 
@@ -58,7 +59,10 @@ def build(bld):
                convert.cc
                controllable.cc
                controllable_descriptor.cc
+                clear_dir.cc
                 crossthread.cc
+                cpus.cc
+                debug.cc
                enumwriter.cc
                 event_loop.cc
                dmalloc.cc
@@ -66,19 +70,23 @@ def build(bld):
                error.cc
                filesystem.cc
                filesystem_paths.cc
+               file_manager.cc
                file_utils.cc
                fpu.cc
                id.cc
                 locale_guard.cc
                 malign.cc
                mountpoint.cc
+                openuri.cc
                pathscanner.cc
                pool.cc
+                property_list.cc
                pthread_utils.cc
                receiver.cc
                search_path.cc
                shortpath.cc
                signals.cc
+                sndfile_manager.cc
                stacktrace.cc
                stateful_diff_command.cc
                stateful.cc
@@ -104,6 +112,19 @@ def build(bld):
        if bld.env['build_target'] == 'x86_64':
                obj.cxxflags += [ '-DUSE_X86_64_ASM' ]
 
+       if bld.env['BUILD_TESTS'] and bld.env['HAVE_CPPUNIT']:
+               # Unit tests
+               testobj              = bld.new_task_gen('cxx', 'program')
+               testobj.source       = '''
+                        test/testrunner.cc
+                       test/xpath.cc
+                        test/scalar_properties.cc
+               '''.split()
+               testobj.target       = 'run-tests'
+               testobj.includes     = obj.includes + ['test', '../pbd']
+               testobj.uselib       = 'CPPUNIT XML SNDFILE'
+               testobj.uselib_local = 'libpbd'
+
 def shutdown():
        autowaf.shutdown()