Merge pull request #97 from Redwan13/master

Small fixes for build process
pull/100/merge
Thomas Herzog 2018-02-18 13:23:28 +01:00 committed by GitHub
commit 47989cb5ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ Edit `SConstruct` file and assign your godot executable path at line:7 `godot_bi
Building cpp_bindings 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/*` resulting libraries will be placed under `bin/` and the generated headers will be placed under `include/*`

View File

@ -44,7 +44,7 @@ add_sources(sources, "src/core")
if ARGUMENTS.get("generate_bindings", "no") == "yes": 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 # 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]) subprocess.call([os.path.expanduser(godot_bin_path), '--gdnative-generate-json-api', json_api_file])