mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
trace: switch position of headers to what Meson requires
Meson doesn't enjoy the same flexibility we have with Make in choosing the include path. In particular the tracing headers are using $(build_root)/$(<D). In order to keep the include directives unchanged, the simplest solution is to generate headers with patterns like "trace/trace-audio.h" and place forwarding headers in the source tree such that for example "audio/trace.h" includes "trace/trace-audio.h". This patch is too ugly to be applied to the Makefiles now. It's only a way to separate the changes to the tracing header files from the Meson rewrite of the tracing logic. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@@ -19,10 +19,7 @@ def generate(events, backend, group):
|
||||
active_events = [e for e in events
|
||||
if "disable" not in e.properties]
|
||||
|
||||
if group == "root":
|
||||
header = "trace-root.h"
|
||||
else:
|
||||
header = "trace.h"
|
||||
header = "trace-" + group + ".h"
|
||||
|
||||
out('/* This file is autogenerated by tracetool, do not edit. */',
|
||||
'',
|
||||
|
||||
@@ -28,7 +28,7 @@ def vcpu_transform_args(args):
|
||||
|
||||
def generate(events, backend, group):
|
||||
if group == "root":
|
||||
header = "trace-root.h"
|
||||
header = "trace/trace-root.h"
|
||||
else:
|
||||
header = "trace.h"
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ def vcpu_transform_args(args, mode):
|
||||
|
||||
def generate(events, backend, group):
|
||||
if group == "root":
|
||||
header = "trace-root.h"
|
||||
header = "trace/trace-root.h"
|
||||
else:
|
||||
header = "trace.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user