From 6ef785fad5cb4e9c162f295d7434d5690a13d029 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 7 Jul 2022 13:15:20 -0400 Subject: Switch to meson build system --- wscript | 75 ----------------------------------------------------------------- 1 file changed, 75 deletions(-) delete mode 100644 wscript (limited to 'wscript') 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) -- cgit v1.2.1