Fix deadlock.
[ardour.git] / libs / pbd / wscript
index 45fc2c80270d2851579ae4f164348ec761f63d56..a2c880275034da4d23ffd2fdca1c8d98c43149b9 100644 (file)
@@ -2,6 +2,7 @@
 import autowaf
 import os
 import sys
+import TaskGen
 
 # Version of this package (even if built as a child)
 MAJOR = '4'
@@ -57,6 +58,7 @@ def build(bld):
                basename.cc
                base_ui.cc
                 boost_debug.cc
+                cartesian.cc
                command.cc
                convert.cc
                controllable.cc
@@ -86,6 +88,7 @@ def build(bld):
                pthread_utils.cc
                receiver.cc
                search_path.cc
+               semutils.cc
                shortpath.cc
                signals.cc
                 sndfile_manager.cc
@@ -106,7 +109,11 @@ def build(bld):
        obj.includes     = ['.']
        obj.name         = 'libpbd'
        obj.target       = 'pbd'
-       obj.uselib       = 'GLIBMM SIGCPP XML UUID'
+       obj.uselib       = 'GLIBMM SIGCPP XML UUID SNDFILE'
+       if sys.platform == 'darwin':
+               TaskGen.task_gen.mappings['.mm'] = TaskGen.task_gen.mappings['.cc']
+               obj.source += 'cocoa_open_uri.mm'
+               obj.uselib += ' OSX'
        obj.vnum         = LIBPBD_LIB_VERSION
        obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
        obj.cxxflags     = ['-DPACKAGE="libpbd"']
@@ -127,6 +134,7 @@ def build(bld):
                testobj.uselib       = 'CPPUNIT XML SNDFILE'
                testobj.uselib_local = 'libpbd'
 
+
 def shutdown():
        autowaf.shutdown()