From 1ed315d9ba37a4689f408f99fb6ae1bddee011ae Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 21 Oct 2019 01:14:25 +0200 Subject: Fix amalgamation --- wscript | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 3bd0c231..2ab458e4 100644 --- a/wscript +++ b/wscript @@ -72,6 +72,8 @@ def configure(conf): 'Build utilities': bool(conf.env['BUILD_UTILS']), 'Build unit tests': bool(conf.env['BUILD_TESTS'])}) +lib_headers = ['src/reader.h'] + lib_source = ['src/byte_source.c', 'src/env.c', 'src/n3.c', @@ -198,7 +200,7 @@ def amalgamate(ctx): for l in serd_internal_h: amalgamation.write(l.replace('serd/serd.h', 'serd.h')) - for f in lib_source: + for f in lib_headers + lib_source: with open(f) as fd: amalgamation.write('\n/**\n @file %s\n*/' % f) header = True @@ -207,7 +209,8 @@ def amalgamate(ctx): if l == '*/\n': header = False else: - if l != '#include "serd_internal.h"\n': + if (not l.startswith('#include "') and + l != '#include "serd.h"\n'): amalgamation.write(l) for i in ['c', 'h']: -- cgit v1.2.1