mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-04 12:14:24 +02:00
Add disable_pty compile option
If disable_pty=yes then the PTY node and dependencies (LibuvUtils, Pipe) will be excluded. On platforms where the PTY node is not supported (e.g. HTML5), this will always be equivalent to `disable_pty=yes`.
This commit is contained in:
parent
29ff3efc49
commit
44ea56aa0f
2 changed files with 12 additions and 2 deletions
|
@ -18,9 +18,11 @@ godot_gdnative_terminate(godot_gdnative_terminate_options *o) {
|
|||
extern "C" void GDN_EXPORT godot_nativescript_init(void *handle) {
|
||||
godot::Godot::nativescript_init(handle);
|
||||
godot::register_tool_class<godot::Terminal>();
|
||||
#if !defined(__EMSCRIPTEN__) && !defined(__WIN32)
|
||||
#if !defined(_PTY_DISABLED)
|
||||
godot::register_tool_class<godot::Pipe>();
|
||||
godot::register_tool_class<godot::LibuvUtils>();
|
||||
#if defined(__unix__)
|
||||
godot::register_tool_class<godot::PTYUnix>();
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue