The TraceLog module source code includes a Python script called create_standalone.py. This script creates a single header which, seemingly, should be usable out of the UE build tree for integration of third party libraries with tracing. I wanted to use this in a custom build of the IREE runtime library (part of the experimental NNERuntimeIREE plugin) to redirect the tracing of the library to Unreal Insights, using a custom “tracing provider” (I am not actually if it is possible to get an externally-built DLL to use the common UE tracing client, for now I was just trying to map IREE trace calls to TRACE_LOG events).
However, I have found that the header has still many dependencies to UE facilities (varying depending on whether TRACE_IMPLEMENT is 0 or 1): AutoRTFM API, ON_SCOPE_EXIT, FPlatformString, several G* global variables, lz4.h … Some of these are relatively easy to address (e.g. ON_SCOPE_EXIT is a single header and I think AutoRTFM can be limited to just the headers of the module if its functionality is disabled), but copying source files from UE to the build tree is tedious and brittle.
Is create_standalone.py meant to be used in a different way? Or is it outdated and does not account for changes in TraceLog that bring new dependencies?