mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
gfxstream: Fix build error
../src/gfxstream/guest/vulkan_enc/ResourceTracker.cpp:40:10: fatal error: perfetto/tracing.h: No such file or directory
40 | #include <perfetto/tracing.h>
| ^~~~~~~~~~~~~~~~~~~~
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13939
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37699>
This commit is contained in:
parent
69becc0509
commit
77f6753d68
2 changed files with 13 additions and 3 deletions
|
|
@ -18,6 +18,14 @@ if with_platform_wayland
|
|||
gfxstream_vk_wsi_args += '-DGFXSTREAM_VK_WAYLAND'
|
||||
endif
|
||||
|
||||
gfxstream_deps = [dep_libdrm, idep_vulkan_wsi_headers,
|
||||
idep_vulkan_lite_runtime, idep_vulkan_util_headers,
|
||||
idep_vulkan_wsi, dep_valgrind]
|
||||
|
||||
if with_perfetto
|
||||
gfxstream_deps += dep_perfetto
|
||||
endif
|
||||
|
||||
lib_vulkan_gfxstream = shared_library(
|
||||
'vulkan_gfxstream',
|
||||
files_lib_vulkan_gfxstream + files_lib_vulkan_enc + gfxstream_vk_entrypoints +
|
||||
|
|
@ -32,9 +40,7 @@ lib_vulkan_gfxstream = shared_library(
|
|||
libconnection_manager, libaemu],
|
||||
link_args: [vulkan_icd_link_args, ld_args_bsymbolic, ld_args_gc_sections],
|
||||
link_depends: vulkan_icd_link_depends,
|
||||
dependencies: [dep_libdrm, idep_vulkan_wsi_headers,
|
||||
idep_vulkan_lite_runtime, idep_vulkan_util_headers,
|
||||
idep_vulkan_wsi, dep_valgrind],
|
||||
dependencies: gfxstream_deps,
|
||||
install: true,
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,11 @@
|
|||
#include <unordered_set>
|
||||
|
||||
#ifdef HAVE_PERFETTO
|
||||
#ifndef ANDROID_LIBPERFETTO
|
||||
#include <perfetto.h>
|
||||
#else
|
||||
#include <perfetto/tracing.h>
|
||||
#endif
|
||||
|
||||
#define GFXSTREAM_TRACE_DEFAULT_CATEGORY "gfxstream.default"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue