Fix crash on startup if an LV2 plugin has a bad .ttl file.
[ardour.git] / libs / evoral / wscript
index 91577b95c0780ff3dc3e84d3c229916ba9135427..dd5b6f6db9e544dd57d1b927857e47ca9dcb05d8 100644 (file)
@@ -1,5 +1,6 @@
 #!/usr/bin/env python
 import autowaf
+import os
 
 # Version of this package (even if built as a child)
 EVORAL_VERSION = '0.0.0'
@@ -25,24 +26,24 @@ def set_options(opt):
 
 def configure(conf):
        autowaf.configure(conf)
-       autowaf.check_tool(conf, 'compiler_cxx')
-       autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', atleast_version='2.2', mandatory=True)
-       autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0', mandatory=True)
-       autowaf.check_pkg(conf, 'gthread-2.0', uselib_store='GTHREAD', atleast_version='2.14.0', mandatory=True)
+       conf.check_tool('compiler_cxx')
        autowaf.check_pkg(conf, 'cppunit', uselib_store='CPPUNIT', atleast_version='1.12.0', mandatory=False)
+       autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', atleast_version='2.2')
+       autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0')
+       autowaf.check_pkg(conf, 'gthread-2.0', uselib_store='GTHREAD', atleast_version='2.14.0')
 
        # Boost headers
-       autowaf.check_header(conf, 'boost/shared_ptr.hpp', mandatory=True)
-       autowaf.check_header(conf, 'boost/weak_ptr.hpp', mandatory=True)
+       autowaf.check_header(conf, 'boost/shared_ptr.hpp')
+       autowaf.check_header(conf, 'boost/weak_ptr.hpp')
 
 def build(bld):
        # Headers
        #bld.install_files('${INCLUDEDIR}/evoral', 'evoral/*.h')
        #bld.install_files('${INCLUDEDIR}/evoral', 'evoral/*.hpp')
-       
+
        # Pkgconfig file
        #autowaf.build_pc(bld, 'EVORAL', EVORAL_VERSION, 'GLIBMM GTHREAD')
-       
+
        libsmf = bld.new_task_gen('cc', 'shlib')
        libsmf.source = '''
                src/libsmf/smf.c
@@ -52,12 +53,12 @@ def build(bld):
                src/libsmf/smf_tempo.c
        '''
        libsmf.export_incdirs = ['./src/libsmf']
-       libsmf.defines      = 'SMF_VERSION=\\\"1.2\\\"'
+       libsmf.defines      = 'SMF_VERSION="1.2"'
        libsmf.includes     = ['./src']
        libsmf.name         = 'libsmf'
        libsmf.target       = 'smf'
        libsmf.uselib       = 'GLIB'
-       libsmf.install_path = ''
+       libsmf.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
 
        # Library
        obj = bld.new_task_gen('cxx', 'shlib')
@@ -79,8 +80,8 @@ def build(bld):
        obj.uselib       = 'GLIBMM GTHREAD SMF'
        obj.uselib_local = 'libsmf'
        obj.vnum         = EVORAL_LIB_VERSION
-       obj.install_path = ''
-       
+       obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
+
        if bld.env['HAVE_CPPUNIT']:
                # Unit tests
                obj              = bld.new_task_gen('cxx', 'program')