From 00e1b47c6fb96ef4ef7e449d06a60008fab7051f Mon Sep 17 00:00:00 2001 From: Nickolai Korshunov Date: Sun, 18 Feb 2018 15:11:22 +0300 Subject: [PATCH 1/2] Updated readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8ec3dfa..918c39f 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Edit `SConstruct` file and assign your godot executable path at line:7 `godot_bi Building cpp_bindings ``` -$ scons godotbinpath="../godot_fork/bin/" headers="../godot_headers/" p=linux generate_bindings=yes +$ scons godotbinpath="../godot_fork/bin/godot_binary" headers="../godot_headers/" p=linux generate_bindings=yes ``` resulting libraries will be placed under `bin/` and the generated headers will be placed under `include/*` From 0fbfe5dd1215915fdb48efcb5ebfe8449bbaa5e6 Mon Sep 17 00:00:00 2001 From: Nickolai Korshunov Date: Sun, 18 Feb 2018 15:14:56 +0300 Subject: [PATCH 2/2] Json bindings are generated in cwd --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 8336b6b..50a63cd 100644 --- a/SConstruct +++ b/SConstruct @@ -44,7 +44,7 @@ add_sources(sources, "src/core") if ARGUMENTS.get("generate_bindings", "no") == "yes": # TODO Generating the API should be done only if the Godot build is more recent than the JSON file - json_api_file = 'godot_api.json' + json_api_file = os.path.join(os.getcwd(), 'godot_api.json') subprocess.call([os.path.expanduser(godot_bin_path), '--gdnative-generate-json-api', json_api_file])