From 92536c7325aa43d43d4cca69b1dc5322cea76ecc Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Tue, 14 Feb 2017 23:28:27 +0200 Subject: Fix amalgamation and includes under src/lib --- tools/amalgamate.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tools') diff --git a/tools/amalgamate.py b/tools/amalgamate.py index 5ad71a0..3337823 100644 --- a/tools/amalgamate.py +++ b/tools/amalgamate.py @@ -45,6 +45,14 @@ def read_file(filename): pass else: continue + elif line.startswith('#include <'): + header = line[10:] + idx = header.find('>') + if idx > 0: + header = header[:idx] + header = os.path.join(src_dir, 'lib', header) + if os.path.isfile(header): + continue buf.write(tounicode(line)) return buf.getvalue() -- cgit v1.2.3