Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/static_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,3 @@ jobs:
sudo apt-get update
sudo apt-get install libxml2-utils
xmllint --quiet --noout --schema doc/class.xsd doc/classes/*.xml modules/*/doc_classes/*.xml platform/*/doc_classes/*.xml

- name: Run C compiler on `gdextension_interface.h`
run: |
gcc -c core/extension/gdextension_interface.h
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ repos:
- id: codespell
additional_dependencies: [tomli]

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.34.1
hooks:
- id: check-jsonschema
files: ^core/extension/gdextension_interface\.json$
args: ["--schemafile", "core/extension/gdextension_interface.schema.json"]

### Requires Docker; look into alternative implementation.
# - repo: https://github.com/comkieffer/pre-commit-xmllint.git
# rev: 1.0.0
Expand Down
8 changes: 7 additions & 1 deletion core/extension/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@ from misc.utility.scons_hints import *
Import("env")

import make_interface_dumper
import make_interface_header
import make_wrappers

env.CommandNoCache(["ext_wrappers.gen.inc"], "make_wrappers.py", env.Run(make_wrappers.run))
env.CommandNoCache(
"gdextension_interface_dump.gen.h",
["gdextension_interface.h", "make_interface_dumper.py"],
["gdextension_interface.json", "make_interface_dumper.py"],
env.Run(make_interface_dumper.run),
)
env.CommandNoCache(
"gdextension_interface.gen.h",
["gdextension_interface.json", "make_interface_header.py"],
env.Run(make_interface_header.run),
)

env_extension = env.Clone()

Expand Down
2 changes: 1 addition & 1 deletion core/extension/gdextension.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#pragma once

#include "core/extension/gdextension_interface.h"
#include "core/extension/gdextension_interface.gen.h"
#include "core/extension/gdextension_loader.h"
#include "core/io/config_file.h"
#include "core/io/resource_loader.h"
Expand Down
2 changes: 1 addition & 1 deletion core/extension/gdextension_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/

#include "gdextension_interface.h"
#include "gdextension_interface.gen.h"

#include "core/config/engine.h"
#include "core/extension/gdextension.h"
Expand Down
3,240 changes: 0 additions & 3,240 deletions core/extension/gdextension_interface.h

This file was deleted.

Loading