From 8fea606b322fb6f97772b3ade9f5db393c3d7aef Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Tue, 25 Jan 2022 23:17:23 +0100 Subject: [PATCH] wscript: drop APPNAME assignment in libs https://waf.io/book/ says By default, the project name and version are set to noname and 1.0. To change them, it is necessary to provide two additional variables in the top-level project file - and waf code inspection confirms that waf itself only will use the top level APPNAME. --- libs/evoral/wscript | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libs/evoral/wscript b/libs/evoral/wscript index 31f1ddfcb1..0f8e10b88d 100644 --- a/libs/evoral/wscript +++ b/libs/evoral/wscript @@ -14,8 +14,6 @@ EVORAL_VERSION = '0.0.0' # 0.0.0 = 0,0,0 EVORAL_LIB_VERSION = '0.0.0' -APPNAME = 'evoral' - def options(opt): opt.add_option('--test', action='store_true', default=False, dest='build_tests', help="Build unit tests") @@ -142,8 +140,8 @@ def build(bld): obj.cxxflags = ['--coverage'] def test(ctx): - autowaf.pre_test(ctx, APPNAME) + autowaf.pre_test(ctx, 'evoral') print(os.getcwd()) os.environ['EVORAL_TEST_PATH'] = os.path.abspath('../test/testdata/') - autowaf.run_tests(ctx, APPNAME, ['./run-tests']) - autowaf.post_test(ctx, APPNAME) + autowaf.run_tests(ctx, 'evoral', ['./run-tests']) + autowaf.post_test(ctx, 'evoral')