summaryrefslogtreecommitdiff
path: root/libs/audiographer/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-29 19:17:54 +0000
committerDavid Robillard <d@drobilla.net>2011-09-29 19:17:54 +0000
commit723ab60b39aed9a9190e047fc5803c1f4e1adac3 (patch)
treeadc9e942f41ef0bab10a89ede541fcc2023faae5 /libs/audiographer/wscript
parent426d3d8207881b3e84ea8e770ec7118f04c57771 (diff)
Upgrade to waf 1.6.7 and autowaf r52.
git-svn-id: svn://localhost/ardour2/branches/3.0@10162 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/audiographer/wscript')
-rw-r--r--libs/audiographer/wscript22
1 files changed, 11 insertions, 11 deletions
diff --git a/libs/audiographer/wscript b/libs/audiographer/wscript
index 31103b3095..1c651e834a 100644
--- a/libs/audiographer/wscript
+++ b/libs/audiographer/wscript
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-import autowaf
+from waflib.extras import autowaf as autowaf
import os
# Version of this package (even if built as a child)
@@ -19,10 +19,10 @@ APPNAME = 'audiographer'
VERSION = AUDIOGRAPHER_VERSION
# Mandatory variables
-srcdir = '.'
-blddir = 'build'
+top = '.'
+out = 'build'
-def set_options(opt):
+def options(opt):
autowaf.set_options(opt)
def configure(conf):
@@ -39,8 +39,8 @@ def configure(conf):
autowaf.check_pkg(conf, 'sndfile', uselib_store='SNDFILE', atleast_version='1.0.18', mandatory=False)
# Boost headers
- autowaf.check_header(conf, 'boost/shared_ptr.hpp')
- autowaf.check_header(conf, 'boost/format.hpp')
+ autowaf.check_header(conf, 'cxx', 'boost/shared_ptr.hpp')
+ autowaf.check_header(conf, 'cxx', 'boost/format.hpp')
def build(bld):
@@ -53,7 +53,7 @@ def build(bld):
#bld.env['BUILD_TESTS'] = True
bld.env['HAVE_ALL_GTHREAD'] = bld.env['HAVE_GLIB'] and bld.env['HAVE_GLIBMM'] and bld.env['HAVE_GTHREAD']
- audiographer = bld.new_task_gen('cxx', 'shlib')
+ audiographer = bld(features = 'cxx cxxshlib')
audiographer.source = '''
private/gdither/gdither.cc
src/general/sample_format_converter.cc
@@ -69,17 +69,17 @@ def build(bld):
audiographer.name = 'libaudiographer'
audiographer.target = 'audiographer'
- audiographer.export_incdirs = ['.', './src']
+ audiographer.export_includes = ['.', './src']
audiographer.includes = ['.', './src']
audiographer.uselib = 'GLIB GLIBMM GTHREAD SAMPLERATE SNDFILE'
- audiographer.uselib_local = 'libpbd'
+ audiographer.use = 'libpbd'
audiographer.vnum = AUDIOGRAPHER_LIB_VERSION
audiographer.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
if bld.env['BUILD_TESTS'] and bld.env['HAVE_CPPUNIT']:
# Unit tests
- obj = bld.new_task_gen('cxx', 'program')
+ obj = bld(features = 'cxx cxxprogram')
obj.source = '''
tests/test_runner.cc
tests/type_utils_test.cc
@@ -109,7 +109,7 @@ def build(bld):
tests/general/sr_converter_test.cc
'''
- obj.uselib_local = 'libaudiographer'
+ obj.use = 'libaudiographer'
obj.uselib = 'CPPUNIT GLIBMM'
obj.target = 'run-tests'
obj.install_path = ''