mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
940d3662eb
* SWIG outputs two files - renderdoc_python.cpp with the main actual wrapping code, and renderdoc.py a small module that does some bootstrapping on python side. * We use a custom version of SWIG that generates strong/typed enums in python based on enum classes, so in cmake we add this custom swig fork as an external project and compile it before generating the wrappers. On windows there's a committed version of the SWIG binary that gets run directly from the .pro or .vcxproj. * The renderdoc.py gets embedded as a resource on windows or as a C generated unsigned char array via include-bin on other platforms, so that we can insert it into the python context without needing it to sit around on disk somewhere in sys.path