@@ -6,8 +6,8 @@ The instructions below feature the new NativeScript 1.1 class structure and will
66
77Version | Branch
88--- | ---
9- ** Godot 3.0 Nativescript 1.0** | [ 3.0] ( https://github.com/GodotNativeTools /godot-cpp/tree/3.0 )
10- ** Godot 3.1 Nativescript 1.0** | [ nativescript-1.0] ( https://github.com/GodotNativeTools /godot-cpp/tree/nativescript-1.0 )
9+ ** Godot 3.0 Nativescript 1.0** | [ 3.0] ( https://github.com/godotengine /godot-cpp/tree/3.0 )
10+ ** Godot 3.1 Nativescript 1.0** | [ nativescript-1.0] ( https://github.com/godotengine /godot-cpp/tree/nativescript-1.0 )
1111
1212## Table of contents
1313
@@ -36,27 +36,27 @@ so formatting is done before your changes are submitted.
3636We recommend using Git for managing your project. The instructions below assume
3737you're using Git. Alternatively, you can download the source code directly from
3838GitHub. In this case, you need to download both
39- [ godot-cpp] ( https://github.com/GodotNativeTools /godot-cpp ) and
40- [ godot_headers ] ( https://github.com/GodotNativeTools/godot_headers ) .
39+ [ godot-cpp] ( https://github.com/godotengine /godot-cpp ) and
40+ [ godot-headers ] ( https://github.com/godotengine/godot-headers ) .
4141
4242``` bash
4343mkdir SimpleLibrary
4444cd SimpleLibrary
4545mkdir bin
4646mkdir src
47- git clone --recursive https://github.com/GodotNativeTools /godot-cpp
47+ git clone --recursive https://github.com/godotengine /godot-cpp
4848```
4949
5050If you wish to use a specific branch, add the -b option to the clone command:
5151
5252``` bash
53- git clone --recursive https://github.com/GodotNativeTools /godot-cpp -b 3.0
53+ git clone --recursive https://github.com/godotengine /godot-cpp -b 3.0
5454```
5555
5656If your project is an existing repository, use a Git submodule instead:
5757
5858``` bash
59- git submodule add https://github.com/GodotNativeTools /godot-cpp
59+ git submodule add https://github.com/godotengine /godot-cpp
6060git submodule update --init --recursive
6161```
6262
@@ -65,7 +65,7 @@ Right now, our directory structure should look like this:
6565``` text
6666SimpleLibrary/
6767├─godot-cpp/
68- | └─godot_headers /
68+ | └─godot-headers /
6969├─bin/
7070└─src/
7171```
@@ -77,7 +77,7 @@ Godot core. This metadata is required to generate the C++ binding classes for
7777use in GDNative modules.
7878
7979This file is supplied with our
80- [ godot_headers ] ( https://github.com/GodotNativeTools/godot_headers ) repository
80+ [ godot-headers ] ( https://github.com/godotengine/godot-headers ) repository
8181for your convenience. However, if you're running a custom build of Godot and
8282need access to classes that have recent changes, you must generate a new
8383` api.json ` file. You do this by starting your Godot executable with the
@@ -221,7 +221,7 @@ Once you've compiled the GDNative C++ bindings (see above), you can compile the
221221
222222```bash
223223cd SimpleLibrary
224- clang++ -fPIC -o src/init.o -c src/init.cpp -g -O3 -std=c++14 -Igodot-cpp/include -Igodot-cpp/include/core -Igodot-cpp/include/gen -Igodot-cpp/godot_headers
224+ clang++ -fPIC -o src/init.o -c src/init.cpp -g -O3 -std=c++14 -Igodot-cpp/include -Igodot-cpp/include/core -Igodot-cpp/include/gen -Igodot-cpp/godot-headers
225225clang++ -o bin/libtest.so -shared src/init.o -Lgodot-cpp/bin -l<name of the godot-cpp>
226226```
227227
@@ -233,7 +233,7 @@ This creates the file `libtest.so` in your `SimpleLibrary/bin` directory.
233233
234234```bash
235235cd SimpleLibrary
236- cl /Fosrc/init.obj /c src/init.cpp /nologo -EHsc -DNDEBUG /MDd /Igodot-cpp\i nclude /Igodot-cpp\i nclude\c ore /Igodot-cpp\i nclude\g en /Igodot-cpp\g odot_headers
236+ cl /Fosrc/init.obj /c src/init.cpp /nologo -EHsc -DNDEBUG /MDd /Igodot-cpp\i nclude /Igodot-cpp\i nclude\c ore /Igodot-cpp\i nclude\g en /Igodot-cpp\g odot-headers
237237link /nologo /dll /out:bin\l ibtest.dll /implib:bin\l ibsimple.lib src\i nit.obj godot-cpp\b in\< name of the godot-cpp>
238238```
239239
@@ -256,7 +256,7 @@ submit a pull request :slightly_smiling_face:
256256
257257```bash
258258cd SimpleLibrary
259- aarch64-linux-android29-clang++ -fPIC -o src/init.o -c src/init.cpp -g -O3 -std=c++14 -Igodot-cpp/include -Igodot-cpp/include/core -Igodot-cpp/include/gen -Igodot-cpp/godot_headers
259+ aarch64-linux-android29-clang++ -fPIC -o src/init.o -c src/init.cpp -g -O3 -std=c++14 -Igodot-cpp/include -Igodot-cpp/include/core -Igodot-cpp/include/gen -Igodot-cpp/godot-headers
260260aarch64-linux-android29-clang++ -o bin/libtest.so -shared src/init.o -Lgodot-cpp/bin -l<name of the godot-cpp>
261261```
262262
@@ -270,7 +270,7 @@ GDNative isn't supported on iOS yet. This is because iOS only allows linking
270270static libraries, not dynamic libraries. In theory, it would be possible to link
271271a GDNative library statically, but some of GDNative' s convenience would be lost
272272in the process as one would have to recompile the engine on every change. See
273- [issue #30 ](https:// github.com/GodotNativeTools/godot_headers /issues/30) in the
273+ [issue #30 ](https:// github.com/godotengine/godot-headers /issues/30) in the
274274Godot headers repository for more information.
275275
276276#### HTML5
@@ -282,7 +282,7 @@ Godot repository.
282282### Creating `.gdnlib` and `.gdns` files
283283
284284Follow the instructions in
285- [godot_header /README.md](https://github.com/GodotNativeTools/godot_headers /blob/master/README.md#how-do-i-use-native-scripts-from-the-editor)
285+ [godot-headers /README.md](https://github.com/godotengine/godot-headers /blob/master/README.md#how-do-i-use-native-scripts-from-the-editor)
286286to create the `.gdns` file. This file contains paths to GDNative libraries for
287287various platforms. This makes the library usable from Godot in a
288288platform-independent manner.
0 commit comments