mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
Update autowaf.
git-svn-id: svn://localhost/ardour2/branches/3.0@5414 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ee2936bad8
commit
3804e3bc49
11 changed files with 16 additions and 25 deletions
21
autowaf.py
21
autowaf.py
|
|
@ -81,18 +81,8 @@ def check_header(conf, name, define='', mandatory=False):
|
||||||
else:
|
else:
|
||||||
conf.check(header_name=name, mandatory=mandatory)
|
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):
|
def nameify(name):
|
||||||
return name.replace('/', '_').replace('++', 'PP').replace('-', '_')
|
return name.replace('/', '_').replace('++', 'PP').replace('-', '_').replace('.', '_')
|
||||||
|
|
||||||
def check_pkg(conf, name, **args):
|
def check_pkg(conf, name, **args):
|
||||||
if not 'mandatory' in args:
|
if not 'mandatory' in args:
|
||||||
|
|
@ -133,9 +123,9 @@ def configure(conf):
|
||||||
conf.env.append_value('CCFLAGS', vals.split())
|
conf.env.append_value('CCFLAGS', vals.split())
|
||||||
conf.env.append_value('CXXFLAGS', vals.split())
|
conf.env.append_value('CXXFLAGS', vals.split())
|
||||||
conf.line_just = 43
|
conf.line_just = 43
|
||||||
check_tool(conf, 'misc')
|
conf.check_tool('misc')
|
||||||
check_tool(conf, 'compiler_cc')
|
conf.check_tool('compiler_cc')
|
||||||
check_tool(conf, 'compiler_cxx')
|
conf.check_tool('compiler_cxx')
|
||||||
conf.env['BUILD_DOCS'] = Options.options.build_docs
|
conf.env['BUILD_DOCS'] = Options.options.build_docs
|
||||||
conf.env['DEBUG'] = Options.options.debug
|
conf.env['DEBUG'] = Options.options.debug
|
||||||
conf.env['STRICT'] = Options.options.strict
|
conf.env['STRICT'] = Options.options.strict
|
||||||
|
|
@ -239,7 +229,7 @@ def use_lib(bld, obj, libs):
|
||||||
inc_flag = '-iquote ' + os.path.join(abssrcdir, l.lower())
|
inc_flag = '-iquote ' + os.path.join(abssrcdir, l.lower())
|
||||||
for f in ['CCFLAGS', 'CXXFLAGS']:
|
for f in ['CCFLAGS', 'CXXFLAGS']:
|
||||||
if not inc_flag in bld.env[f]:
|
if not inc_flag in bld.env[f]:
|
||||||
bld.env.prepend_value(f, inc_flag)
|
bld.env.append_value(f, inc_flag)
|
||||||
else:
|
else:
|
||||||
if hasattr(obj, 'uselib'):
|
if hasattr(obj, 'uselib'):
|
||||||
obj.uselib += ' ' + l
|
obj.uselib += ' ' + l
|
||||||
|
|
@ -336,6 +326,7 @@ def build_dox(bld, name, version, srcdir, blddir):
|
||||||
}
|
}
|
||||||
obj.install_path = ''
|
obj.install_path = ''
|
||||||
out1 = bld.new_task_gen('command-output')
|
out1 = bld.new_task_gen('command-output')
|
||||||
|
out1.dependencies = [obj]
|
||||||
out1.stdout = '/doc/doxygen.out'
|
out1.stdout = '/doc/doxygen.out'
|
||||||
out1.stdin = '/doc/reference.doxygen' # whatever..
|
out1.stdin = '/doc/reference.doxygen' # whatever..
|
||||||
out1.command = 'doxygen'
|
out1.command = 'doxygen'
|
||||||
|
|
|
||||||
|
|
@ -200,7 +200,7 @@ def configure(conf):
|
||||||
autowaf.build_version_files(path_prefix+'version.h', path_prefix+'version.cc',
|
autowaf.build_version_files(path_prefix+'version.h', path_prefix+'version.cc',
|
||||||
'gtk2_ardour', MAJOR, MINOR, MICRO)
|
'gtk2_ardour', MAJOR, MINOR, MICRO)
|
||||||
autowaf.configure(conf)
|
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, 'alsa', uselib_store='ALSA')
|
||||||
autowaf.check_pkg(conf, 'flac', uselib_store='FLAC', atleast_version='1.2.1')
|
autowaf.check_pkg(conf, 'flac', uselib_store='FLAC', atleast_version='1.2.1')
|
||||||
|
|
|
||||||
|
|
@ -188,7 +188,7 @@ def configure(conf):
|
||||||
autowaf.build_version_files(path_prefix+'ardour/version.h', path_prefix+'version.cc',
|
autowaf.build_version_files(path_prefix+'ardour/version.h', path_prefix+'version.cc',
|
||||||
'libardour3', MAJOR, MINOR, MICRO)
|
'libardour3', MAJOR, MINOR, MICRO)
|
||||||
autowaf.configure(conf)
|
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, '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, 'jack', uselib_store='JACK', atleast_version='0.109.0')
|
||||||
autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
|
autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ def set_options(opt):
|
||||||
|
|
||||||
def configure(conf):
|
def configure(conf):
|
||||||
autowaf.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, '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, '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, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0')
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ def configure(conf):
|
||||||
autowaf.build_version_files(path_prefix+'gtkmm2ext/version.h', path_prefix+'version.cc',
|
autowaf.build_version_files(path_prefix+'gtkmm2ext/version.h', path_prefix+'version.cc',
|
||||||
'libgtkmm2ext', MAJOR, MINOR, MICRO)
|
'libgtkmm2ext', MAJOR, MINOR, MICRO)
|
||||||
autowaf.configure(conf)
|
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')
|
autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM', atleast_version='2.8')
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ def configure(conf):
|
||||||
autowaf.build_version_files(path_prefix+'midi++/version.h', path_prefix+'version.cc',
|
autowaf.build_version_files(path_prefix+'midi++/version.h', path_prefix+'version.cc',
|
||||||
'midipp', MAJOR, MINOR, MICRO)
|
'midipp', MAJOR, MINOR, MICRO)
|
||||||
autowaf.configure(conf)
|
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, 'jack', uselib_store='JACK', atleast_version='0.109.0')
|
||||||
autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
|
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, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0')
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ def configure(conf):
|
||||||
autowaf.build_version_files(path_prefix+'pbd/version.h', path_prefix+'version.cc',
|
autowaf.build_version_files(path_prefix+'pbd/version.h', path_prefix+'version.cc',
|
||||||
'libpbd', MAJOR, MINOR, MICRO)
|
'libpbd', MAJOR, MINOR, MICRO)
|
||||||
autowaf.configure(conf)
|
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, 'libxml-2.0', uselib_store='XML')
|
||||||
autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0')
|
autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0')
|
||||||
autowaf.check_pkg(conf, 'uuid', uselib_store='UUID')
|
autowaf.check_pkg(conf, 'uuid', uselib_store='UUID')
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ def set_options(opt):
|
||||||
|
|
||||||
def configure(conf):
|
def configure(conf):
|
||||||
autowaf.configure(conf)
|
autowaf.configure(conf)
|
||||||
autowaf.check_tool(conf, 'compiler_cxx')
|
conf.check_tool('compiler_cxx')
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
# Library
|
# Library
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ def set_options(opt):
|
||||||
|
|
||||||
def configure(conf):
|
def configure(conf):
|
||||||
autowaf.configure(conf)
|
autowaf.configure(conf)
|
||||||
autowaf.check_tool(conf, 'compiler_cxx')
|
conf.check_tool('compiler_cxx')
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
# Library
|
# Library
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ def set_options(opt):
|
||||||
|
|
||||||
def configure(conf):
|
def configure(conf):
|
||||||
autowaf.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, 'fftw3f', uselib_store='FFTW3F', mandatory=True)
|
||||||
autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO', mandatory=False)
|
autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO', mandatory=False)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ def set_options(opt):
|
||||||
|
|
||||||
def configure(conf):
|
def configure(conf):
|
||||||
autowaf.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, 'fftw3', uselib_store='FFTW3', mandatory=True)
|
||||||
autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F', mandatory=True)
|
autowaf.check_pkg(conf, 'fftw3f', uselib_store='FFTW3F', mandatory=True)
|
||||||
conf.env.append_value('CXXFLAGS', '-DHAVE_FFTW3')
|
conf.env.append_value('CXXFLAGS', '-DHAVE_FFTW3')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue