-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(GDExt): add gdextension module source
- Loading branch information
1 parent
137d637
commit dacae43
Showing
36 changed files
with
412 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[submodule "gdext/godot-dbus"] | ||
path = gdext/godot-dbus | ||
url = https://github.com/ShadowBlip/godot-dbus.git | ||
[submodule "gdext/godot-cpp"] | ||
path = gdext/godot-cpp | ||
url = https://github.com/godotengine/godot-cpp | ||
branch = 4.2 | ||
[submodule "gdext/godot-linuxthread"] | ||
path = gdext/godot-linuxthread | ||
url = https://github.com/ShadowBlip/godot-linuxthread.git | ||
[submodule "gdext/godot-pty"] | ||
path = gdext/godot-pty | ||
url = https://github.com/ShadowBlip/godot-pty.git | ||
[submodule "gdext/godot-unix-socket"] | ||
path = gdext/godot-unix-socket | ||
url = https://github.com/ShadowBlip/godot-unix-socket.git | ||
[submodule "gdext/godot-xlib"] | ||
path = gdext/godot-xlib | ||
url = https://github.com/ShadowBlip/godot-xlib.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
dbus/ | ||
linuxthread/ | ||
pty/ | ||
unixsock/ | ||
xlib/ |
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-4.15 MB
addons/linuxthread/bin/liblinuxthread.linux.template_debug.x86_64.so
Binary file not shown.
Binary file removed
BIN
-4.17 MB
addons/linuxthread/bin/liblinuxthread.linux.template_release.x86_64.so
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
extends RefCounted | ||
class_name Xdg | ||
|
||
## Fallback system data directory if XDG cannot be used | ||
const XDG_DATA_DIR_FALLBACK := "/usr/share" | ||
|
||
|
||
## Return a list of system data paths in load preference order. | ||
static func get_data_dirs() -> PackedStringArray: | ||
if not OS.has_environment("XDG_DATA_DIRS"): | ||
return PackedStringArray() | ||
var dirs := OS.get_environment("XDG_DATA_DIRS") | ||
|
||
return dirs.split(":", false) | ||
|
||
|
||
## Return the XDG system data path with the given relative path. | ||
## For example, using `Xdg.with_system_path("hwdata")` will return | ||
## "/usr/share/hwdata". If XDG is unable to determine the path, | ||
## the fallback prefix of "/usr/share" will be used. | ||
static func with_system_path(path: String) -> String: | ||
var data_dirs := get_data_dirs() | ||
for dir in data_dirs: | ||
var full_path := dir.path_join(path) | ||
if DirAccess.dir_exists_absolute(full_path) or FileAccess.file_exists(full_path): | ||
return full_path | ||
|
||
return XDG_DATA_DIR_FALLBACK.path_join(path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM ubuntu:22.04 | ||
|
||
# Install GDExtension dependencies | ||
ENV DEBIAN_FRONTEND noninteractive | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
python3-pip \ | ||
pkg-config \ | ||
libx11-dev \ | ||
libxcursor-dev \ | ||
libxinerama-dev \ | ||
libgl1-mesa-dev \ | ||
libglu-dev \ | ||
libasound2-dev \ | ||
libpulse-dev \ | ||
libudev-dev \ | ||
libxi-dev \ | ||
libxrandr-dev \ | ||
binutils \ | ||
git | ||
|
||
# Install scons from pypi | ||
RUN pip3 install scons | ||
|
||
# Install DBus dependencies | ||
RUN apt-get install -y \ | ||
libdbus-1-dev \ | ||
libdbus-c++-dev | ||
|
||
# Install Xlib dependencies | ||
RUN apt-get install -y \ | ||
libxres-dev \ | ||
libxtst-dev |
Oops, something went wrong.