| | 36 | |
| | 37 | == Godot Dependencies |
| | 38 | The Godot API dependency is checked-out automatically as a Git submodule from the code repository, but it depends upon the [https://github.com/godotengine/godot Godot Engine] as well as [https://github.com/Zylann/godot_voxel Zylann Voxel Module]. First follow the instructions to clone and build those repositories on your local machine. |
| | 39 | |
| | 40 | == Generate API bindings JSON: |
| | 41 | Generate the API bindings JSON using the following command from within the Godot engine directory: |
| | 42 | {{{#!sh |
| | 43 | godot --gdnative-generate-json-api modules/gdnative/include/api.json |
| | 44 | }}} |
| | 45 | |
| | 46 | == Configure CMake |
| | 47 | The Revenant code repository CMake build requires explicitly setting two CACHE values: |
| | 48 | - '''GODOT_HEADERS_DIR''': Points to the `modules/gdnative/include` sub-folder of your cloned ''Godot Engine'' repository |
| | 49 | - '''GODOT_CUSTOM_API_FILE''': Points to `api.json` generated previously that lives inside the above folder (GODOT_HEADERS_DIR) (i.e. `<godot engine repo>/modules/gdnative/include/api.json`) |
| | 50 | |
| | 51 | Set these values by passing them to `cmake` using the `-D` flag for each. |