aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-10-21 01:14:25 +0200
committerDavid Robillard <d@drobilla.net>2019-10-21 01:14:59 +0200
commit1ed315d9ba37a4689f408f99fb6ae1bddee011ae (patch)
tree222f25bc58f6cff4ea67c1bbe2e7180cdcbc98a5
parent826af40b219929f101bb58eb2b31955091200d1b (diff)
downloadserd-1ed315d9ba37a4689f408f99fb6ae1bddee011ae.tar.gz
serd-1ed315d9ba37a4689f408f99fb6ae1bddee011ae.tar.bz2
serd-1ed315d9ba37a4689f408f99fb6ae1bddee011ae.zip
Fix amalgamation
-rw-r--r--wscript7
1 files changed, 5 insertions, 2 deletions
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']: