diff options
author | David Robillard <d@drobilla.net> | 2019-10-21 01:14:25 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-10-21 01:14:59 +0200 |
commit | 1ed315d9ba37a4689f408f99fb6ae1bddee011ae (patch) | |
tree | 222f25bc58f6cff4ea67c1bbe2e7180cdcbc98a5 /wscript | |
parent | 826af40b219929f101bb58eb2b31955091200d1b (diff) | |
download | serd-1ed315d9ba37a4689f408f99fb6ae1bddee011ae.tar.gz serd-1ed315d9ba37a4689f408f99fb6ae1bddee011ae.tar.bz2 serd-1ed315d9ba37a4689f408f99fb6ae1bddee011ae.zip |
Fix amalgamation
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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']: |