2020-07-11 12:45:21 +02:00
|
|
|
#include "terminal.h"
|
2021-07-02 19:27:34 +02:00
|
|
|
|
2021-07-16 09:31:13 +02:00
|
|
|
#if !defined(_PTY_DISABLED)
|
2021-07-02 19:27:34 +02:00
|
|
|
#include "libuv_utils.h"
|
|
|
|
#include "pipe.h"
|
2021-07-20 02:18:32 +02:00
|
|
|
#if defined(__linux__) || defined(__APPLE__)
|
2021-07-16 09:31:13 +02:00
|
|
|
#include "node_pty/unix/pty.h"
|
|
|
|
#endif
|
|
|
|
#if defined(__WIN32)
|
|
|
|
//#include "node_pty/win/conpty.h"
|
|
|
|
#endif
|
2020-11-05 09:42:00 +01:00
|
|
|
#endif
|
2020-07-11 12:45:21 +02:00
|
|
|
|
2021-06-06 14:58:50 +02:00
|
|
|
extern "C" void GDN_EXPORT godot_gdnative_init(godot_gdnative_init_options *o) {
|
|
|
|
godot::Godot::gdnative_init(o);
|
2020-07-11 12:45:21 +02:00
|
|
|
}
|
|
|
|
|
2021-06-06 14:58:50 +02:00
|
|
|
extern "C" void GDN_EXPORT
|
|
|
|
godot_gdnative_terminate(godot_gdnative_terminate_options *o) {
|
|
|
|
godot::Godot::gdnative_terminate(o);
|
2020-07-11 12:45:21 +02:00
|
|
|
}
|
|
|
|
|
2021-06-06 14:58:50 +02:00
|
|
|
extern "C" void GDN_EXPORT godot_nativescript_init(void *handle) {
|
|
|
|
godot::Godot::nativescript_init(handle);
|
|
|
|
godot::register_tool_class<godot::Terminal>();
|
2021-07-07 16:26:48 +02:00
|
|
|
#if !defined(_PTY_DISABLED)
|
2021-07-02 19:27:34 +02:00
|
|
|
godot::register_tool_class<godot::Pipe>();
|
|
|
|
godot::register_tool_class<godot::LibuvUtils>();
|
2021-07-20 02:18:32 +02:00
|
|
|
#if defined(__linux__) || defined(__APPLE__)
|
2021-07-02 19:27:34 +02:00
|
|
|
godot::register_tool_class<godot::PTYUnix>();
|
2020-11-05 09:42:00 +01:00
|
|
|
#endif
|
2021-07-16 09:31:13 +02:00
|
|
|
#if defined(__WIN32)
|
|
|
|
// godot::register_tool_class<godot::ConPTY>();
|
|
|
|
#endif
|
2021-07-07 16:26:48 +02:00
|
|
|
#endif
|
2020-07-11 12:45:21 +02:00
|
|
|
}
|