meson: convert trace/
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
5d3ea0e17d
commit
0e1309d0c5
@ -1,8 +0,0 @@
|
|||||||
# -*- mode: makefile -*-
|
|
||||||
|
|
||||||
|
|
||||||
##################################################
|
|
||||||
# Translation level
|
|
||||||
|
|
||||||
obj-y += generated-helpers.o
|
|
||||||
obj-y += control-target.o
|
|
@ -1,3 +1,5 @@
|
|||||||
|
specific_ss.add(files('control-target.c'))
|
||||||
|
|
||||||
trace_events_files = []
|
trace_events_files = []
|
||||||
foreach dir : [ '.' ] + trace_events_subdirs
|
foreach dir : [ '.' ] + trace_events_subdirs
|
||||||
trace_events_file = meson.source_root() / dir / 'trace-events'
|
trace_events_file = meson.source_root() / dir / 'trace-events'
|
||||||
@ -61,12 +63,13 @@ foreach d : [
|
|||||||
['generated-helpers.h', 'tcg-helper-h'],
|
['generated-helpers.h', 'tcg-helper-h'],
|
||||||
['generated-helpers-wrappers.h', 'tcg-helper-wrapper-h'],
|
['generated-helpers-wrappers.h', 'tcg-helper-wrapper-h'],
|
||||||
]
|
]
|
||||||
custom_target(d[0],
|
gen = custom_target(d[0],
|
||||||
output: d[0],
|
output: d[0],
|
||||||
input: meson.source_root() / 'trace-events',
|
input: meson.source_root() / 'trace-events',
|
||||||
command: [ tracetool, '--group=root', '--format=@0@'.format(d[1]), '@INPUT@' ],
|
command: [ tracetool, '--group=root', '--format=@0@'.format(d[1]), '@INPUT@' ],
|
||||||
build_by_default: true, # to be removed when added to a target
|
build_by_default: true, # to be removed when added to a target
|
||||||
capture: true)
|
capture: true)
|
||||||
|
specific_ss.add(gen)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
if 'CONFIG_TRACE_UST' in config_host
|
if 'CONFIG_TRACE_UST' in config_host
|
||||||
|
Loading…
Reference in New Issue
Block a user