mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-08 18:03:55 +00:00
codegen: Ignore path generating include guards
Make sure that guard do no change building out-of-tree or with Meson. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Uri Lublin <uril@redhat.com>
This commit is contained in:
parent
f191053a8c
commit
ead7790d47
@ -2,13 +2,14 @@
|
||||
from . import ptypes
|
||||
from . import codegen
|
||||
import re
|
||||
import os
|
||||
|
||||
def write_includes(writer):
|
||||
writer.header.writeln("#include <spice/protocol.h>")
|
||||
writer.header.writeln('#include "common/marshaller.h"')
|
||||
writer.header.newline()
|
||||
if writer.header.has_option("dest_file"):
|
||||
src = writer.header.options["dest_file"]
|
||||
src = os.path.basename(writer.header.options["dest_file"])
|
||||
else:
|
||||
src = "generated_headers.h"
|
||||
src = re.sub(r'(?i)[^a-z0-9]+', '_', src)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user