[PATCH RESEND i-g-t v4 02/31] lib/igt_stats: introduce static sub-library for tools
Sebastian Brzezinka <[email protected]> Wed, 29 Jul 2026 13:03:19 +0200
| Newsgroups | org.freedesktop.lists.igt-dev |
|---|---|
| Message-ID | <09781f7505b66627efeb001534af8b749dbe944a.1785152675.git.sebastian.brzezinka@intel.com> |
Add lib_igt_stats built from igt_stats.c. Tools that need the statistics helpers can link this without pulling in the full libigt.so stack. Signed-off-by: Sebastian Brzezinka <[email protected]> Acked-by: Ashutosh Dixit <[email protected]> Reviewed-by: Krzysztof Niemiec <[email protected]> Reviewed-by: Krzysztof Karas <[email protected]> --- lib/meson.build | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/meson.build b/lib/meson.build index e95b29d49..a57c1eb8d 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -397,6 +397,13 @@ lib_igt_profiling_build = static_library('igt_profiling', lib_igt_profiling = declare_dependency(link_with : lib_igt_profiling_build, include_directories : inc) +lib_igt_stats_build = static_library('igt_stats_tools', + ['igt_stats.c'], + include_directories : inc) + +lib_igt_stats = declare_dependency(link_with : lib_igt_stats_build, + include_directories : inc) + i915_perf_files = [ 'igt_list.c', 'i915/perf.c', -- 2.53.0