Skip to content

Commit 0051fb7

Browse files
authored
Merge pull request #519 from akien-mga/rename-godot-headers
Rename godot_headers to godot-headers to match upstream rename (+ sync with 3.2.3-stable)
2 parents eafe6d9 + 1b224d5 commit 0051fb7

File tree

8 files changed

+23
-23
lines changed

8 files changed

+23
-23
lines changed

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "godot_headers"]
2-
path = godot_headers
3-
url = https://github.com/GodotNativeTools/godot_headers
1+
[submodule "godot-headers"]
2+
path = godot-headers
3+
url = https://github.com/godotengine/godot-headers

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
6666
set(CMAKE_CXX_EXTENSIONS OFF)
6767

6868
# Input from user for godot headers and the api file
69-
set(GODOT_HEADERS_DIR "godot_headers" CACHE STRING "")
70-
set(GODOT_CUSTOM_API_FILE "godot_headers/api.json" CACHE STRING "")
69+
set(GODOT_HEADERS_DIR "godot-headers" CACHE STRING "")
70+
set(GODOT_CUSTOM_API_FILE "godot-headers/api.json" CACHE STRING "")
7171

7272
set(GODOT_COMPILE_FLAGS )
7373
set(GODOT_LINKER_FLAGS )

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
GENERATE_BINDINGS = no
2-
HEADERS = godot_headers
2+
HEADERS = godot-headers
33
TARGET = debug
44
USE_CLANG = no
55

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ The instructions below feature the new NativeScript 1.1 class structure and will
66

77
Version | 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.
3636
We recommend using Git for managing your project. The instructions below assume
3737
you're using Git. Alternatively, you can download the source code directly from
3838
GitHub. 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
4343
mkdir SimpleLibrary
4444
cd SimpleLibrary
4545
mkdir bin
4646
mkdir src
47-
git clone --recursive https://github.com/GodotNativeTools/godot-cpp
47+
git clone --recursive https://github.com/godotengine/godot-cpp
4848
```
4949

5050
If 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

5656
If 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
6060
git submodule update --init --recursive
6161
```
6262

@@ -65,7 +65,7 @@ Right now, our directory structure should look like this:
6565
```text
6666
SimpleLibrary/
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
7777
use in GDNative modules.
7878

7979
This 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
8181
for your convenience. However, if you're running a custom build of Godot and
8282
need 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
223223
cd 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
225225
clang++ -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
235235
cd SimpleLibrary
236-
cl /Fosrc/init.obj /c src/init.cpp /nologo -EHsc -DNDEBUG /MDd /Igodot-cpp\include /Igodot-cpp\include\core /Igodot-cpp\include\gen /Igodot-cpp\godot_headers
236+
cl /Fosrc/init.obj /c src/init.cpp /nologo -EHsc -DNDEBUG /MDd /Igodot-cpp\include /Igodot-cpp\include\core /Igodot-cpp\include\gen /Igodot-cpp\godot-headers
237237
link /nologo /dll /out:bin\libtest.dll /implib:bin\libsimple.lib src\init.obj godot-cpp\bin\<name of the godot-cpp>
238238
```
239239
@@ -256,7 +256,7 @@ submit a pull request :slightly_smiling_face:
256256
257257
```bash
258258
cd 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
260260
aarch64-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
270270
static libraries, not dynamic libraries. In theory, it would be possible to link
271271
a GDNative library statically, but some of GDNative's convenience would be lost
272272
in 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
274274
Godot headers repository for more information.
275275

276276
#### HTML5
@@ -282,7 +282,7 @@ Godot repository.
282282
### Creating `.gdnlib` and `.gdns` files
283283
284284
Follow 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)
286286
to create the `.gdns` file. This file contains paths to GDNative libraries for
287287
various platforms. This makes the library usable from Godot in a
288288
platform-independent manner.

SConstruct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ opts.Add(EnumVariable(
114114
opts.Add(PathVariable(
115115
'headers_dir',
116116
'Path to the directory containing Godot headers',
117-
'godot_headers',
117+
'godot-headers',
118118
PathVariable.PathIsDir
119119
))
120120
opts.Add(PathVariable(

godot-headers

Submodule godot-headers added at 815f34e

godot_headers

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/SConstruct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ opts.Add(PathVariable('target_path', 'The path where the lib is installed.', 'bi
3030
opts.Add(PathVariable('target_name', 'The library name.', 'libgdexample', PathVariable.PathAccept))
3131

3232
# Local dependency paths, adapt them to your setup
33-
godot_headers_path = "../godot_headers/"
33+
godot_headers_path = "../godot-headers/"
3434
cpp_bindings_path = "../"
3535
cpp_library = "libgodot-cpp"
3636

0 commit comments

Comments
 (0)