diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-06-06 17:50:58 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-06-06 17:50:58 +0200 |
commit | 33fb378b7605d34e73d9187cfb36aa8535b96cd0 (patch) | |
tree | 590aec101ad8aa055b90ddfb6bdc3b08a6715dc5 /tools/config.py | |
parent | ecef2b6bf1e49a62acf4b9baf9a927835fa03e91 (diff) | |
download | tmwa-generate-code-out-of-tree.tar.gz tmwa-generate-code-out-of-tree.tar.bz2 tmwa-generate-code-out-of-tree.tar.xz tmwa-generate-code-out-of-tree.zip |
Generate code out of treegenerate-code-out-of-tree
Diffstat (limited to 'tools/config.py')
-rwxr-xr-x | tools/config.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/config.py b/tools/config.py index 22ece0b..b187372 100755 --- a/tools/config.py +++ b/tools/config.py @@ -278,9 +278,9 @@ class Group(object): headers |= o.headers hpp.write('\n') - hpp.write('#include "fwd.hpp"\n') + hpp.write('#include "%s/fwd.hpp"\n' % os.path.relpath(path, 'src')) for h in sorted(headers, key=lambda h: (h.meta, h.name)): - hpp.write('#include %s\n' % h.relative_to(path)) + hpp.write('#include %s\n' % h.relative_to("src")) hpp.write('\n') cpp.write('\n') for h in [ @@ -290,9 +290,9 @@ class Group(object): Header('src/mmo/extract_enums.hpp'), Header('src/high/extract_mmo.hpp'), ] + self.extra_headers: - cpp.write('#include %s\n' % h.relative_to(path)) + cpp.write('#include %s\n' % h.relative_to('src')) cpp.write('\n') - cpp.write('#include "../poison.hpp"\n') + cpp.write('#include "poison.hpp"\n') cpp.write('\n') hpp.write('namespace tmwa\n{\n') |