diff options
author | David Robillard <d@drobilla.net> | 2019-04-21 23:11:29 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-21 23:11:29 +0200 |
commit | 597f75edb33f8733f1c2cc9613b37b843e38235e (patch) | |
tree | 1626bed2a167fa6d3d8fa6afdbba3af09726edff | |
download | drobillad-597f75edb33f8733f1c2cc9613b37b843e38235e.tar.gz drobillad-597f75edb33f8733f1c2cc9613b37b843e38235e.tar.bz2 drobillad-597f75edb33f8733f1c2cc9613b37b843e38235e.zip |
Initial commit
-rw-r--r-- | .gitmodules | 21 | ||||
-rw-r--r-- | README.md | 8 | ||||
m--------- | ingen | 0 | ||||
m--------- | jalv | 0 | ||||
m--------- | libs/ganv | 0 | ||||
m--------- | libs/lv2kit | 0 | ||||
m--------- | libs/raul | 0 | ||||
m--------- | patchage | 0 | ||||
-rwxr-xr-x | waf | 16 | ||||
m--------- | waflib | 0 | ||||
-rw-r--r-- | wscript | 71 |
11 files changed, 116 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..7eb04c1 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,21 @@ +[submodule "libs/lv2kit"] + path = libs/lv2kit + url = ../../lv2/lv2kit +[submodule "waflib"] + path = waflib + url = ../autowaf +[submodule "libs/raul"] + path = libs/raul + url = ../raul +[submodule "jalv"] + path = jalv + url = ../jalv +[submodule "ingen"] + path = ingen + url = ../ingen +[submodule "patchage"] + path = patchage + url = ../patchage +[submodule "libs/ganv"] + path = libs/ganv + url = ../ganv diff --git a/README.md b/README.md new file mode 100644 index 0000000..d2c6099 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +Drobillad +========= + +THIS REPOSITORY IS FOR DEVELOPMENT PURPOSES AND SHOULD NOT BE PACKAGED. + +This is a meta-repository for building all of my audio projects at once. + + -- David Robillard <d@drobilla.net> diff --git a/ingen b/ingen new file mode 160000 +Subproject 0a0eb91349101d6e73a1bd83491f7d4dc993723 diff --git a/jalv b/jalv new file mode 160000 +Subproject 3a4efdc47d45558aef921eacae25d51f1b39952 diff --git a/libs/ganv b/libs/ganv new file mode 160000 +Subproject 253d96b2fdabb70a9881ebfad4f47c0b7a0f141 diff --git a/libs/lv2kit b/libs/lv2kit new file mode 160000 +Subproject 29e8ae3b94322eb7c7dbc0605ae7c7dc4026da9 diff --git a/libs/raul b/libs/raul new file mode 160000 +Subproject be6c2693ec741650a0684fa8a827ab2a5cd7b8f diff --git a/patchage b/patchage new file mode 160000 +Subproject 788afee7e18b1ed596245f38556150ddf2ac2ac @@ -0,0 +1,16 @@ +#!/usr/bin/env python + +# Minimal waf script for projects that include waflib directly + +from waflib import Context, Scripting + +import inspect +import os + +def main(): + script_path = os.path.abspath(inspect.getfile(inspect.getmodule(main))) + project_path = os.path.dirname(script_path) + Scripting.waf_entry_point(os.getcwd(), Context.WAFVERSION, project_path) + +if __name__ == '__main__': + main() diff --git a/waflib b/waflib new file mode 160000 +Subproject 2314e236ca6e7d94a26c3c17091da0f25f5867f @@ -0,0 +1,71 @@ +#!/usr/bin/env python + +import os + +from waflib import Logs +from waflib.extras import autowaf + +# Mandatory waf variables +APPNAME = 'drobillad' # Package name for waf dist +VERSION = '0.0.0' # Package version for waf dist +top = '.' # Source directory +out = 'build' # Build directory + +line_just = 45 +libs = ['libs/lv2kit', 'libs/raul', 'libs/ganv'] +apps = ['jalv', 'patchage', 'ingen'] +projects = libs + apps + + +def options(opt): + opt.load('compiler_c') + opt.load('compiler_cxx') + opt.load('lv2') + run_opts = opt.add_option_group('Run options') + run_opts.add_option('--cmd', type='string', dest='cmd', + help='command to run from build directory') + for p in projects: + opt.recurse(p) + + +def configure(conf): + conf.load('compiler_c', cache=True) + conf.load('compiler_cxx', cache=True) + conf.load('lv2', cache=True) + conf.load('autowaf', cache=True) + + conf.env.DROBILLAD_BUILD = [] + for p in projects: + try: + name = os.path.basename(p) + Logs.pprint('BOLD', '') + conf.recurse(p) + autowaf.set_local_lib(conf, name, name != 'lv2') + conf.env.DROBILLAD_BUILD += [p] + except Exception as e: + Logs.warn('Configuration failed, not building %s (%s)' % (p, e)) + + autowaf.g_is_child = False + + Logs.info('') + autowaf.display_summary(conf) + Logs.info('\nBuilding: %s\n' % ' '.join(conf.env.DROBILLAD_BUILD)) + + not_building = [] + for i in projects: + if i not in conf.env.DROBILLAD_BUILD: + not_building += [i] + + if not_building != []: + Logs.warn('Not building:\n\t%s\n' % '\n\t'.join(not_building)) + + +def build(bld): + for i in bld.env.DROBILLAD_BUILD: + bld.add_group() + bld.recurse(i) + + +def test(ctx): + for i in ctx.env.DROBILLAD_BUILD: + ctx.recurse(i, mandatory=False) |