Skip to content

Commit

Permalink
Correct GDExtension symlink in run.py
Browse files Browse the repository at this point in the history
  • Loading branch information
touilleMan committed Mar 26, 2023
1 parent ad876a4 commit 81f23ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/1-gdextension/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@


PROJECT_DIR = Path(__file__).resolve().parent
GODOT_HEADERS_DIR = PROJECT_DIR / "godot_headers"
GDEXTENSION_DIR = PROJECT_DIR / "gdextension_api"


if platform.system() == "Windows":
cmd = ["cl.exe", "/DEBUG", "/LD", "my.c", "/I", str(GODOT_HEADERS_DIR)]
cmd = ["cl.exe", "/DEBUG", "/LD", "my.c", "/I", str(GDEXTENSION_DIR)]
print(f"cd {PROJECT_DIR} && " + " ".join(cmd))
subprocess.check_call(cmd, cwd=PROJECT_DIR)

Expand All @@ -24,7 +24,7 @@
"-o",
"my.o",
"-I",
str(GODOT_HEADERS_DIR),
str(GDEXTENSION_DIR),
]
print(f"cd {PROJECT_DIR} && " + " ".join(cmd))
subprocess.check_call(cmd, cwd=PROJECT_DIR)
Expand Down
4 changes: 2 additions & 2 deletions tests/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def create_test_workdir(test_dir: Path, distrib_workdir: Path, test_workdir: Pat
shutil.copytree(test_dir, test_workdir, dirs_exist_ok=True)
symlink(distrib_workdir / "addons", test_workdir / "addons")
shutil.copy(distrib_workdir / "pythonscript.gdextension", test_workdir)
# Godot headers are needed to compile Cython modules
symlink(test_dir / "../../godot_headers", test_workdir / "godot_headers")
# GDExtension headers are needed to compile Cython modules
symlink(build_dir / "gdextension_api", test_workdir / "gdextension_api")

build_script = test_workdir / "build.py"
if build_script.exists():
Expand Down

0 comments on commit 81f23ee

Please sign in to comment.