Include pbd/crossthread.cc in the mingw build
[ardour.git] / libs / pbd / wscript
index 2ba79d0c34d6fdd8ec2fbcf59fcadcadd9774c0a..b12b7bdb44f29d1b612ba283aa5cb2afda39bdf9 100644 (file)
@@ -37,7 +37,7 @@ libpbd_sources = [
     'convert.cc',
     'controllable.cc',
     'controllable_descriptor.cc',
-    'clear_dir.cc',
+    'crossthread.cc',
     'cpus.cc',
     'debug.cc',
     'enumwriter.cc',
@@ -54,10 +54,10 @@ libpbd_sources = [
     'locale_guard.cc',
     'localtime_r.cc',
     'malign.cc',
+    'md5.cc',
     'mountpoint.cc',
     'openuri.cc',
     'pathexpand.cc',
-    'pathscanner.cc',
     'pbd.cc',
     'pool.cc',
     'property_list.cc',
@@ -132,9 +132,6 @@ def build(bld):
     if bld.is_defined('DEBUG_RT_ALLOC'):
         obj.source += 'debug_rt_alloc.c'
 
-    if bld.env['build_target'] != 'mingw':
-        obj.source += [ 'crossthread.cc' ]
-
     obj.export_includes = ['.']
     obj.includes     = ['.']
     obj.name         = 'libpbd'
@@ -147,8 +144,7 @@ def build(bld):
         obj.uselib += ' OSX'
     obj.vnum         = LIBPBD_LIB_VERSION
     obj.install_path = bld.env['LIBDIR']
-    obj.defines     += [ 'PACKAGE="' + I18N_PACKAGE + '"',
-                         ]
+    obj.defines     += [ 'PACKAGE="' + I18N_PACKAGE + '"' ]
 
     if bld.env['build_target'] == 'x86_64':
         obj.defines += [ 'USE_X86_64_ASM' ]
@@ -174,6 +170,7 @@ def build(bld):
         testobj.uselib       = 'CPPUNIT XML SNDFILE'
         testobj.use          = 'libpbd'
         testobj.name         = 'libpbd-tests'
+        testobj.defines      = [ 'PACKAGE="' + I18N_PACKAGE + '"' ]
         if sys.platform != 'darwin' and bld.env['build_target'] != 'mingw':
             testobj.linkflags    = ['-lrt']