util: Perfetto SDK v15.0
Add Perfetto SDK v15.0 as a dependency using a meson wrap. Signed-off-by: Antonio Caggiano <antonio.caggiano@collabora.com> Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Acked-by: Emma Anholt <emma@anholt.net> Reviewed-by: Rob Clark <robdclark@chromium.org> Reviewed-by: John Bates <jbates@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9652>
This commit is contained in:
parent
c449a8a2c1
commit
a0738525ed
|
@ -2046,6 +2046,11 @@ endif
|
|||
# as GCC LTO drops them. See: https://bugs.freedesktop.org/show_bug.cgi?id=109391
|
||||
gcc_lto_quirk = (cc.get_id() == 'gcc') ? ['-fno-lto'] : []
|
||||
|
||||
with_perfetto = get_option('perfetto')
|
||||
if with_perfetto
|
||||
dep_perfetto = dependency('perfetto', fallback: ['perfetto', 'dep_perfetto'])
|
||||
endif
|
||||
|
||||
subdir('include')
|
||||
subdir('bin')
|
||||
subdir('src')
|
||||
|
@ -2171,6 +2176,7 @@ lines += 'HUD lmsensors: ' + (dep_lmsensors.found() ? 'yes' : 'no')
|
|||
|
||||
lines += ''
|
||||
lines += 'Shared-glapi: ' + (with_shared_glapi ? 'yes' : 'no')
|
||||
lines += 'Perfetto: ' + (with_perfetto ? 'yes' : 'no')
|
||||
|
||||
|
||||
indent = ' '
|
||||
|
|
|
@ -465,3 +465,9 @@ option(
|
|||
value : true,
|
||||
description : 'use msse2 flag for mingw x86. Default: true',
|
||||
)
|
||||
option(
|
||||
'perfetto',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Enable performance analysis with Perfetto. Default: false'
|
||||
)
|
|
@ -0,0 +1,5 @@
|
|||
[wrap-git]
|
||||
directory = perfetto
|
||||
|
||||
url = https://android.googlesource.com/platform/external/perfetto
|
||||
revision = v15.0
|
Loading…
Reference in New Issue