From b8b6042e35fc10626cd5bd10d5b1c22d7acef76b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 25 Feb 2009 18:59:45 +0000 Subject: Add top level wscript. git-svn-id: svn://localhost/ardour2/branches/3.0@4657 d708f5d6-7413-0410-9779-e7cbd77b26cf --- autowaf.py | 4 ++-- wscript | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 wscript diff --git a/autowaf.py b/autowaf.py index 3439db9d78..c821ee8cc2 100644 --- a/autowaf.py +++ b/autowaf.py @@ -91,7 +91,7 @@ def check_tool(conf, name): def check_pkg(conf, name, **args): "Check for a package iff it hasn't been checked for yet" - var_name = 'HAVE_' + args['uselib_store'].replace('/', '_') + var_name = 'HAVE_' + args['uselib_store'].replace('/', '_').replace('++', 'PP') check = not var_name in conf.env if not check and 'atleast_version' in args: # Re-check if version is newer than previous check @@ -198,7 +198,7 @@ def configure(conf): g_step = 2 def set_local_lib(conf, name, has_objects): - conf.define('HAVE_' + name.upper().replace('/', '_'), 1) + conf.define('HAVE_' + name.upper().replace('/', '_').replace('++', 'PP'), 1) if has_objects: if type(conf.env['AUTOWAF_LOCAL_LIBS']) != dict: conf.env['AUTOWAF_LOCAL_LIBS'] = {} diff --git a/wscript b/wscript new file mode 100644 index 0000000000..9a3fd390f2 --- /dev/null +++ b/wscript @@ -0,0 +1,36 @@ +#!/usr/bin/env python +import autowaf + +# Variables for 'waf dist' +VERSION = '3.0pre0' +APPNAME = 'ardour' + +# Mandatory variables +srcdir = '.' +blddir = 'build' + +children = [ 'libs/pbd', 'libs/midi++2', 'libs/evoral' ] + +def set_options(opt): + autowaf.set_options(opt) + for i in children: + opt.sub_options(i) + +def sub_config_and_use(conf, name, has_objects = True): + conf.sub_config(name) + autowaf.set_local_lib(conf, name, has_objects) + +def configure(conf): + autowaf.set_recursive() + autowaf.configure(conf) + for i in children: + sub_config_and_use(conf, i) + +def build(bld): + autowaf.set_recursive() + for i in children: + bld.add_subdirs(i) + +def shutdown(): + autowaf.shutdown() + -- cgit v1.2.3