Add option to build eglretrace to replay captured traces on the target device.
Signed-off-by: Lucas Stach <[email protected]> --- rules/apitrace.in | 12 ++++++++++++ rules/apitrace.make | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/rules/apitrace.in b/rules/apitrace.in index 9aefad123e46..450b5bdac1db 100644 --- a/rules/apitrace.in +++ b/rules/apitrace.in @@ -8,6 +8,18 @@ config APITRACE select ZLIB select LIBPNG select BROTLI + select WAFFLE if APITRACE_REPLAY prompt "apitrace" help Tools for tracing OpenGL, Direct3D, and other graphics APIs. + +if APITRACE + +config APITRACE_REPLAY + tristate + prompt "apitrace replay" + help + Build apitrace tools to replay a captured trace on the target + system. + +endif diff --git a/rules/apitrace.make b/rules/apitrace.make index 494050f258cb..fdd721fe39f8 100644 --- a/rules/apitrace.make +++ b/rules/apitrace.make @@ -69,7 +69,7 @@ APITRACE_CONF_OPT := \ -DENABLE_STATIC_LIBSTDCXX=OFF \ -DENABLE_STATIC_SNAPPY=SNAPPY \ -DENABLE_TESTS=OFF \ - -DENABLE_WAFFLE=OFF \ + -DENABLE_WAFFLE=$(call ptx/onoff, PTXCONF_APITRACE_REPLAY) \ -DENABLE_X11=OFF # ---------------------------------------------------------------------------- @@ -87,6 +87,10 @@ $(STATEDIR)/apitrace.targetinstall: @$(call install_copy, apitrace, 0, 0, 0755, -, /usr/bin/apitrace) +ifdef PTXCONF_APITRACE_REPLAY + @$(call install_copy, apitrace, 0, 0, 0755, -, /usr/bin/eglretrace) +endif + @$(call install_lib, apitrace, 0, 0, 0644, apitrace/wrappers/egltrace) @$(call install_finish, apitrace) -- 2.47.3
