mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-23 02:00:25 +01:00
44ea56aa0f
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`.
28 lines
775 B
C++
28 lines
775 B
C++
#include "terminal.h"
|
|
|
|
#if !defined(__EMSCRIPTEN__) && !defined(__WIN32)
|
|
#include "libuv_utils.h"
|
|
#include "node_pty/unix/pty.h"
|
|
#include "pipe.h"
|
|
#endif
|
|
|
|
extern "C" void GDN_EXPORT godot_gdnative_init(godot_gdnative_init_options *o) {
|
|
godot::Godot::gdnative_init(o);
|
|
}
|
|
|
|
extern "C" void GDN_EXPORT
|
|
godot_gdnative_terminate(godot_gdnative_terminate_options *o) {
|
|
godot::Godot::gdnative_terminate(o);
|
|
}
|
|
|
|
extern "C" void GDN_EXPORT godot_nativescript_init(void *handle) {
|
|
godot::Godot::nativescript_init(handle);
|
|
godot::register_tool_class<godot::Terminal>();
|
|
#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
|
|
}
|