-import autowaf
+#!/usr/bin/env python
+from waflib.extras import autowaf as autowaf
import os
libappleutility_sources = [
'CAXException.cpp'
]
-def set_options(opt):
- autowaf.set_options(opt)
-
+def options(opt):
+ autowaf.set_options(opt)
+
def configure(conf):
- autowaf.configure(conf)
-
+ autowaf.configure(conf)
+
def build(bld):
- obj = bld.new_task_gen('cxx', 'shlib')
- obj.uselib = 'AUDIOUNITS OSX'
- obj.source = libappleutility_sources
- obj.export_incdirs = ['.']
- obj.includes = ['.']
- obj.name = 'libappleutility'
- obj.target = 'appleutility'
- obj.install_path = os.path.join(bld.env['LIBDIR'], 'appleutility')
+ obj = bld(features = 'cxx cxxshlib')
+ obj.uselib = 'AUDIOUNITS OSX'
+ obj.source = libappleutility_sources
+ obj.export_includes = ['.']
+ obj.includes = ['.']
+ obj.name = 'libappleutility'
+ obj.target = 'appleutility'
+ obj.install_path = os.path.join(bld.env['LIBDIR'], 'appleutility')
def shutdown():
- autowaf.shutdown()
+ autowaf.shutdown()
def i18n(bld):
- pass
+ pass