mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-10 04:40:25 +01:00
parent
007182b117
commit
c075ae7418
3 changed files with 26 additions and 3 deletions
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
|
@ -44,3 +44,19 @@ jobs:
|
|||
with:
|
||||
name: bin
|
||||
path: addons/godot_xterm/native/bin/*.dll
|
||||
build-macos:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Install SCons software construction tool
|
||||
run: brew install scons
|
||||
- name: Buid for macOS 64-bit using llvm
|
||||
run: |
|
||||
cd addons/godot_xterm/native
|
||||
scons platform=osx target=release bits=64
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: bin
|
||||
path: addons/godot_xterm/native/bin/*.dylib
|
||||
|
|
|
@ -194,8 +194,7 @@ Default(libtsm)
|
|||
|
||||
|
||||
# Build libgodot-xterm.
|
||||
#env.Append(CCFLAGS=['-std=c++14'])
|
||||
|
||||
env.Append(CXXFLAGS=['-std=c++14'])
|
||||
env.Append(CPPPATH=[
|
||||
'src/',
|
||||
'external/libtsm/build/src/tsm',
|
||||
|
|
|
@ -1,9 +1,17 @@
|
|||
#include "pseudoterminal.h"
|
||||
#include <pty.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/wait.h>
|
||||
#include <termios.h>
|
||||
|
||||
// Platform specific includes.
|
||||
#if defined(PLATFORM_LINUX)
|
||||
#include <pty.h>
|
||||
#endif
|
||||
#if defined(PLATFORM_OSX)
|
||||
#include <util.h>
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
|
||||
using namespace godot;
|
||||
|
||||
void Pseudoterminal::_register_methods()
|
||||
|
|
Loading…
Reference in a new issue