else:
conf.check(header_name=name, mandatory=mandatory)
-def check_tool(conf, name):
- "Check for a tool iff it hasn't been checked for yet"
- if type(conf.env['AUTOWAF_TOOLS']) != dict:
- conf.env['AUTOWAF_TOOLS'] = {}
-
- checked = conf.env['AUTOWAF_TOOLS']
- if not name in checked:
- conf.check_tool(name)
- checked[name] = True
-
def nameify(name):
- return name.replace('/', '_').replace('++', 'PP').replace('-', '_')
+ return name.replace('/', '_').replace('++', 'PP').replace('-', '_').replace('.', '_')
def check_pkg(conf, name, **args):
if not 'mandatory' in args:
conf.env.append_value('CCFLAGS', vals.split())
conf.env.append_value('CXXFLAGS', vals.split())
conf.line_just = 43
- check_tool(conf, 'misc')
- check_tool(conf, 'compiler_cc')
- check_tool(conf, 'compiler_cxx')
+ conf.check_tool('misc')
+ conf.check_tool('compiler_cc')
+ conf.check_tool('compiler_cxx')
conf.env['BUILD_DOCS'] = Options.options.build_docs
conf.env['DEBUG'] = Options.options.debug
conf.env['STRICT'] = Options.options.strict
inc_flag = '-iquote ' + os.path.join(abssrcdir, l.lower())
for f in ['CCFLAGS', 'CXXFLAGS']:
if not inc_flag in bld.env[f]:
- bld.env.prepend_value(f, inc_flag)
+ bld.env.append_value(f, inc_flag)
else:
if hasattr(obj, 'uselib'):
obj.uselib += ' ' + l
}
obj.install_path = ''
out1 = bld.new_task_gen('command-output')
+ out1.dependencies = [obj]
out1.stdout = '/doc/doxygen.out'
out1.stdin = '/doc/reference.doxygen' # whatever..
out1.command = 'doxygen'
autowaf.build_version_files(path_prefix+'version.h', path_prefix+'version.cc',
'gtk2_ardour', MAJOR, MINOR, MICRO)
autowaf.configure(conf)
- autowaf.check_tool(conf, 'compiler_cxx')
+ conf.check_tool('compiler_cxx')
autowaf.check_pkg(conf, 'alsa', uselib_store='ALSA')
autowaf.check_pkg(conf, 'flac', uselib_store='FLAC', atleast_version='1.2.1')
autowaf.build_version_files(path_prefix+'ardour/version.h', path_prefix+'version.cc',
'libardour3', MAJOR, MINOR, MICRO)
autowaf.configure(conf)
- autowaf.check_tool(conf, 'compiler_cxx gas')
+ conf.check_tool('compiler_cxx gas')
autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO', atleast_version='0.3.2')
autowaf.check_pkg(conf, 'jack', uselib_store='JACK', atleast_version='0.109.0')
autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
def configure(conf):
autowaf.configure(conf)
- autowaf.check_tool(conf, 'compiler_cxx')
+ 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.build_version_files(path_prefix+'gtkmm2ext/version.h', path_prefix+'version.cc',
'libgtkmm2ext', MAJOR, MINOR, MICRO)
autowaf.configure(conf)
- autowaf.check_tool(conf, 'compiler_cxx')
+ conf.check_tool('compiler_cxx')
autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM', atleast_version='2.8')
def build(bld):
autowaf.build_version_files(path_prefix+'midi++/version.h', path_prefix+'version.cc',
'midipp', MAJOR, MINOR, MICRO)
autowaf.configure(conf)
- autowaf.check_tool(conf, 'compiler_cxx')
+ conf.check_tool('compiler_cxx')
autowaf.check_pkg(conf, 'jack', uselib_store='JACK', atleast_version='0.109.0')
autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0')
autowaf.build_version_files(path_prefix+'pbd/version.h', path_prefix+'version.cc',
'libpbd', MAJOR, MINOR, MICRO)
autowaf.configure(conf)
- autowaf.check_tool(conf, 'compiler_cxx')
+ conf.check_tool('compiler_cxx')
autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0')
autowaf.check_pkg(conf, 'uuid', uselib_store='UUID')
def configure(conf):
autowaf.configure(conf)
- autowaf.check_tool(conf, 'compiler_cxx')
+ conf.check_tool('compiler_cxx')
def build(bld):
# Library
def configure(conf):
autowaf.configure(conf)
- autowaf.check_tool(conf, 'compiler_cxx')
+ conf.check_tool('compiler_cxx')
def build(bld):
# Library
def configure(conf):
autowaf.configure(conf)
- autowaf.check_tool(conf, 'compiler_cxx')
+ conf.check_tool('compiler_cxx')
autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F', mandatory=True)
autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO', mandatory=False)
def configure(conf):
autowaf.configure(conf)
- autowaf.check_tool(conf, 'compiler_cxx')
+ conf.check_tool('compiler_cxx')
autowaf.check_pkg(conf, 'fftw3', uselib_store='FFTW3', mandatory=True)
autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F', mandatory=True)
conf.env.append_value('CXXFLAGS', '-DHAVE_FFTW3')