mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10:10 +01:00
util: Move stack debug functions to src/util
Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6112>
This commit is contained in:
parent
e487043fd0
commit
848e7b947d
8 changed files with 12 additions and 18 deletions
|
|
@ -841,10 +841,8 @@ if with_platform_android
|
||||||
dependency('cutils'),
|
dependency('cutils'),
|
||||||
dependency('hardware'),
|
dependency('hardware'),
|
||||||
dependency('sync'),
|
dependency('sync'),
|
||||||
|
dependency('backtrace')
|
||||||
]
|
]
|
||||||
if with_gallium
|
|
||||||
dep_android += dependency('backtrace')
|
|
||||||
endif
|
|
||||||
if get_option('platform-sdk-version') >= 26
|
if get_option('platform-sdk-version') >= 26
|
||||||
dep_android += dependency('nativewindow')
|
dep_android += dependency('nativewindow')
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
|
|
@ -249,9 +249,6 @@ files_libgallium = files(
|
||||||
'util/u_debug_image.h',
|
'util/u_debug_image.h',
|
||||||
'util/u_debug_refcnt.c',
|
'util/u_debug_refcnt.c',
|
||||||
'util/u_debug_refcnt.h',
|
'util/u_debug_refcnt.h',
|
||||||
'util/u_debug_stack.h',
|
|
||||||
'util/u_debug_symbol.c',
|
|
||||||
'util/u_debug_symbol.h',
|
|
||||||
'util/u_dirty_flags.h',
|
'util/u_dirty_flags.h',
|
||||||
'util/u_dirty_surfaces.h',
|
'util/u_dirty_surfaces.h',
|
||||||
'util/u_dl.c',
|
'util/u_dl.c',
|
||||||
|
|
@ -341,16 +338,6 @@ files_libgallium = files(
|
||||||
'nir/nir_draw_helpers.h',
|
'nir/nir_draw_helpers.h',
|
||||||
)
|
)
|
||||||
|
|
||||||
if with_platform_android
|
|
||||||
files_libgallium += files(
|
|
||||||
'util/u_debug_stack_android.cpp',
|
|
||||||
)
|
|
||||||
else
|
|
||||||
files_libgallium += files(
|
|
||||||
'util/u_debug_stack.c',
|
|
||||||
)
|
|
||||||
endif
|
|
||||||
|
|
||||||
if dep_libdrm.found()
|
if dep_libdrm.found()
|
||||||
files_libgallium += files(
|
files_libgallium += files(
|
||||||
'renderonly/renderonly.c',
|
'renderonly/renderonly.c',
|
||||||
|
|
@ -522,7 +509,7 @@ libgallium = static_library(
|
||||||
cpp_args : [cpp_msvc_compat_args],
|
cpp_args : [cpp_msvc_compat_args],
|
||||||
gnu_symbol_visibility : 'hidden',
|
gnu_symbol_visibility : 'hidden',
|
||||||
dependencies : [
|
dependencies : [
|
||||||
dep_libdrm, dep_llvm, dep_unwind, dep_dl, dep_m, dep_thread, dep_lmsensors,
|
dep_libdrm, dep_llvm, dep_dl, dep_m, dep_thread, dep_lmsensors,
|
||||||
idep_nir, idep_nir_headers, idep_mesautil,
|
idep_nir, idep_nir_headers, idep_mesautil,
|
||||||
],
|
],
|
||||||
build_by_default : false
|
build_by_default : false
|
||||||
|
|
|
||||||
|
|
@ -158,15 +158,24 @@ deps_for_libmesa_util = [
|
||||||
dep_m,
|
dep_m,
|
||||||
dep_valgrind,
|
dep_valgrind,
|
||||||
dep_zstd,
|
dep_zstd,
|
||||||
|
dep_dl,
|
||||||
|
dep_unwind,
|
||||||
]
|
]
|
||||||
|
|
||||||
if with_platform_android
|
if with_platform_android
|
||||||
deps_for_libmesa_util += dep_android
|
deps_for_libmesa_util += dep_android
|
||||||
|
files_debug_stack = files('u_debug_stack_android.cpp')
|
||||||
|
else
|
||||||
|
files_debug_stack = files(
|
||||||
|
'u_debug_stack.c',
|
||||||
|
'u_debug_symbol.c',
|
||||||
|
'u_debug_symbol.h',
|
||||||
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
_libmesa_util = static_library(
|
_libmesa_util = static_library(
|
||||||
'mesa_util',
|
'mesa_util',
|
||||||
[files_mesa_util, format_srgb],
|
[files_mesa_util, files_debug_stack, format_srgb],
|
||||||
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
|
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
|
||||||
dependencies : deps_for_libmesa_util,
|
dependencies : deps_for_libmesa_util,
|
||||||
link_with: libmesa_format,
|
link_with: libmesa_format,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue