maiself / godot-python-extension

Python language bindings for the Godot game engine
https://godot-python-extension.readthedocs.io
MIT License
24 stars 4 forks source link

Add a way to create compile_commands.json, lifted from godot-cpp. #25

Open Ivorforce opened 3 weeks ago

Ivorforce commented 3 weeks ago

compile_commands.json can be used for IDE support, for example CLion, like:

scons compiledb=yes compile_commands.json

The logic and code in particular were lifted from godot-cpp. Feel free to move the additions around in your SConstruct. I didn't feel comfortable with any spot in particular so I just placed them somewhere.