Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The "scan_enums.py" script requires a Python v2 interpreter to be available. The "CMakeLists.txt" simply searched for a Python interpreter, which failed on modern Debian systems. Instead of simply searching for "python", the CMake script was adjusted to specifically search for a Python 2 interpreter, and then to explicitly invoke that to run the "scan_enums.py" scripts. Furthermore, a dependency was created to ensure that the script runs before the "core-libs" package is compiled, and thus to ensure that any compilations use the newly-generated versions of the files. An improvement would be to remove "enum_tables.h" and "enum_tables.cpp" from the repository, generate the files into the "build" directory, and compile and link against those, although that would mean every developer would need to have Python installed. This is currently optional as long as no new enums are added which need to be accessed by Lua.
- Loading branch information