summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-07-07 13:15:20 -0400
committerDavid Robillard <d@drobilla.net>2022-08-18 02:31:59 -0400
commit6ef785fad5cb4e9c162f295d7434d5690a13d029 (patch)
tree2d645f1efa9df5e2dab56b76a5c0cbef941d2178 /wscript
parentf31d96e901bfdbe5f05dc9ae077203c58a9f715a (diff)
downloaddrobillad-6ef785fad5cb4e9c162f295d7434d5690a13d029.tar.gz
drobillad-6ef785fad5cb4e9c162f295d7434d5690a13d029.tar.bz2
drobillad-6ef785fad5cb4e9c162f295d7434d5690a13d029.zip
Switch to meson build system
Diffstat (limited to 'wscript')
-rw-r--r--wscript75
1 files changed, 0 insertions, 75 deletions
diff --git a/wscript b/wscript
deleted file mode 100644
index 2670694..0000000
--- a/wscript
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/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 = ['subprojects/lv2kit', 'subprojects/raul', 'subprojects/ganv']
-apps = ['jalv', 'patchage', 'ingen']#, 'machina']
-plugins = ['plugins/blop.lv2', 'plugins/fomp.lv2', 'plugins/mda.lv2']
-projects = libs + apps + plugins
-
-
-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)
-
- if not autowaf.set_c_lang(conf, 'c11', mandatory=False):
- autowaf.set_c_lang(conf, 'c99')
-
- 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)