mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-10 04:40:25 +01:00
Rename directory 'external' -> 'thirdparty'
This commit is contained in:
parent
9e8bc713e7
commit
0437d0f18c
8 changed files with 28 additions and 28 deletions
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
|
@ -36,14 +36,14 @@ jobs:
|
||||||
env:
|
env:
|
||||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||||
run: |
|
run: |
|
||||||
echo ::set-env name=GODOT_CPP_COMMIT_HASH::$(git ls-tree HEAD addons/godot_xterm/native/external/godot-cpp -l | cut -d\ -f3)
|
echo ::set-env name=GODOT_CPP_COMMIT_HASH::$(git ls-tree HEAD addons/godot_xterm/native/thirdparty/godot-cpp -l | cut -d\ -f3)
|
||||||
- name: Cache godot-cpp bindings
|
- name: Cache godot-cpp bindings
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
id: cache
|
id: cache
|
||||||
env:
|
env:
|
||||||
cache-name: cache-godot-cpp
|
cache-name: cache-godot-cpp
|
||||||
with:
|
with:
|
||||||
path: addons/godot_xterm/native/external/godot-cpp
|
path: addons/godot_xterm/native/thirdparty/godot-cpp
|
||||||
key: godot-cpp-${{ matrix.platform }}-${{ matrix.target }}-${{ matrix.bits }}-${{ env.GODOT_CPP_COMMIT_HASH }}
|
key: godot-cpp-${{ matrix.platform }}-${{ matrix.target }}-${{ matrix.bits }}-${{ env.GODOT_CPP_COMMIT_HASH }}
|
||||||
- name: Cache emscripten
|
- name: Cache emscripten
|
||||||
if: ${{ matrix.platform == 'javascript' }}
|
if: ${{ matrix.platform == 'javascript' }}
|
||||||
|
@ -82,7 +82,7 @@ jobs:
|
||||||
- name: Build godot-cpp bindings
|
- name: Build godot-cpp bindings
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
cd addons/godot_xterm/native/external/godot-cpp
|
cd addons/godot_xterm/native/thirdparty/godot-cpp
|
||||||
scons platform=${{ matrix.platform }} target=${{ matrix.target }} bits=${{ matrix.bits }} generate_bindings=yes -j2
|
scons platform=${{ matrix.platform }} target=${{ matrix.target }} bits=${{ matrix.bits }} generate_bindings=yes -j2
|
||||||
|
|
||||||
- name: Build libgodot-xterm
|
- name: Build libgodot-xterm
|
||||||
|
|
4
.gitmodules
vendored
4
.gitmodules
vendored
|
@ -1,6 +1,6 @@
|
||||||
[submodule "addons/godot_xterm/godot-cpp"]
|
[submodule "addons/godot_xterm/godot-cpp"]
|
||||||
path = addons/godot_xterm/native/external/godot-cpp
|
path = addons/godot_xterm/native/thirdparty/godot-cpp
|
||||||
url = https://github.com/lihop/godot-cpp
|
url = https://github.com/lihop/godot-cpp
|
||||||
[submodule "addons/godot_xterm/libtsm"]
|
[submodule "addons/godot_xterm/libtsm"]
|
||||||
path = addons/godot_xterm/native/external/libtsm
|
path = addons/godot_xterm/native/thirdparty/libtsm
|
||||||
url = https://github.com/lihop/libtsm
|
url = https://github.com/lihop/libtsm
|
||||||
|
|
|
@ -28,7 +28,7 @@ else:
|
||||||
'platform=<platform>'
|
'platform=<platform>'
|
||||||
)
|
)
|
||||||
|
|
||||||
VariantDir('./external/libtsm/build', './external/libtsm/src', duplicate=0)
|
VariantDir('./thirdparty/libtsm/build', './thirdparty/libtsm/src', duplicate=0)
|
||||||
env = Environment(ENV = os.environ)
|
env = Environment(ENV = os.environ)
|
||||||
|
|
||||||
is64 = sys.maxsize > 2**32
|
is64 = sys.maxsize > 2**32
|
||||||
|
@ -186,24 +186,24 @@ elif env['platform'] == 'windows':
|
||||||
|
|
||||||
# Build libtsm as a static library.
|
# Build libtsm as a static library.
|
||||||
Execute([
|
Execute([
|
||||||
Delete('external/libtsm/build/src'),
|
Delete('thirdparty/libtsm/build/src'),
|
||||||
Delete('external/libtsm/build/external'),
|
Delete('thirdparty/libtsm/build/external'),
|
||||||
Copy('external/libtsm/build/src', 'external/libtsm/src'),
|
Copy('thirdparty/libtsm/build/src', 'thirdparty/libtsm/src'),
|
||||||
Copy('external/libtsm/build/external', 'external/libtsm/external'),
|
Copy('thirdparty/libtsm/build/external', 'thirdparty/libtsm/external'),
|
||||||
])
|
])
|
||||||
|
|
||||||
env.Append(CPPPATH=[
|
env.Append(CPPPATH=[
|
||||||
'external/libtsm/src/shared',
|
'thirdparty/libtsm/src/shared',
|
||||||
'external/libtsm/external',
|
'thirdparty/libtsm/external',
|
||||||
])
|
])
|
||||||
|
|
||||||
sources = []
|
sources = []
|
||||||
sources.append('external/libtsm/build/src/shared/shl-htable.c')
|
sources.append('thirdparty/libtsm/build/src/shared/shl-htable.c')
|
||||||
sources.append(Glob('external/libtsm/build/src/tsm/*.c'))
|
sources.append(Glob('thirdparty/libtsm/build/src/tsm/*.c'))
|
||||||
sources.append(Glob('external/libtsm/build/external/wcwidth/*.c'))
|
sources.append(Glob('thirdparty/libtsm/build/external/wcwidth/*.c'))
|
||||||
|
|
||||||
libtsm = env.StaticLibrary(
|
libtsm = env.StaticLibrary(
|
||||||
target='external/libtsm/build/bin/libtsm.{}.{}.{}{}'.format(
|
target='thirdparty/libtsm/build/bin/libtsm.{}.{}.{}{}'.format(
|
||||||
env['platform'],
|
env['platform'],
|
||||||
env['target'],
|
env['target'],
|
||||||
env['bits'],
|
env['bits'],
|
||||||
|
@ -217,25 +217,25 @@ Default(libtsm)
|
||||||
env.Append(CXXFLAGS=['-std=c++14'])
|
env.Append(CXXFLAGS=['-std=c++14'])
|
||||||
env.Append(CPPPATH=[
|
env.Append(CPPPATH=[
|
||||||
'src/',
|
'src/',
|
||||||
'external/libtsm/build/src/tsm',
|
'thirdparty/libtsm/build/src/tsm',
|
||||||
'external/godot-cpp/include/',
|
'thirdparty/godot-cpp/include/',
|
||||||
'external/godot-cpp/include/core/',
|
'thirdparty/godot-cpp/include/core/',
|
||||||
'external/godot-cpp/include/gen/',
|
'thirdparty/godot-cpp/include/gen/',
|
||||||
'external/godot-cpp/godot-headers/'
|
'thirdparty/godot-cpp/godot-headers/'
|
||||||
])
|
])
|
||||||
env.Append(LIBPATH=[
|
env.Append(LIBPATH=[
|
||||||
'external/godot-cpp/bin/',
|
'thirdparty/godot-cpp/bin/',
|
||||||
'external/libtsm/build/bin/',
|
'thirdparty/libtsm/build/bin/',
|
||||||
])
|
])
|
||||||
|
|
||||||
env.Append(LIBS=[
|
env.Append(LIBS=[
|
||||||
env.File('external/godot-cpp/bin/libgodot-cpp.{}.{}.{}{}'.format(
|
env.File('thirdparty/godot-cpp/bin/libgodot-cpp.{}.{}.{}{}'.format(
|
||||||
env['platform'],
|
env['platform'],
|
||||||
env['target'],
|
env['target'],
|
||||||
'wasm' if env['platform'] == 'javascript' else env['bits'],
|
'wasm' if env['platform'] == 'javascript' else env['bits'],
|
||||||
env['LIBSUFFIX'],
|
env['LIBSUFFIX'],
|
||||||
)),
|
)),
|
||||||
env.File('external/libtsm/build/bin/libtsm.{}.{}.{}{}'.format(
|
env.File('thirdparty/libtsm/build/bin/libtsm.{}.{}.{}{}'.format(
|
||||||
env['platform'],
|
env['platform'],
|
||||||
env['target'],
|
env['target'],
|
||||||
env['bits'],
|
env['bits'],
|
||||||
|
|
|
@ -15,12 +15,12 @@ fi
|
||||||
|
|
||||||
|
|
||||||
# Update git submodules.
|
# Update git submodules.
|
||||||
LIBTSM_DIR=${NATIVE_DIR}/external/libtsm
|
LIBTSM_DIR=${NATIVE_DIR}/thirdparty/libtsm
|
||||||
if [ ! -d "$LIBTSM_DIR" ]; then
|
if [ ! -d "$LIBTSM_DIR" ]; then
|
||||||
cd ${NATIVE_DIR}
|
cd ${NATIVE_DIR}
|
||||||
git submodule update --init --recursive -- $LIBTSM_DIR
|
git submodule update --init --recursive -- $LIBTSM_DIR
|
||||||
fi
|
fi
|
||||||
GODOT_CPP_DIR=${NATIVE_DIR}/external/godot-cpp
|
GODOT_CPP_DIR=${NATIVE_DIR}/thirdparty/godot-cpp
|
||||||
if [ ! -d "${GODOT_CPP_DIR}" ]; then
|
if [ ! -d "${GODOT_CPP_DIR}" ]; then
|
||||||
cd ${NATIVE_DIR}
|
cd ${NATIVE_DIR}
|
||||||
git submodule update --init --recursive -- $GODOT_CPP_DIR
|
git submodule update --init --recursive -- $GODOT_CPP_DIR
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
source /emsdk/emsdk_env.sh
|
source /emsdk/emsdk_env.sh
|
||||||
export EM_CACHE=/godot/.emcache
|
export EM_CACHE=/godot/.emcache
|
||||||
cd /godot/external/godot-cpp
|
cd /godot/thirdparty/godot-cpp
|
||||||
scons platform=javascript -j$(nproc)
|
scons platform=javascript -j$(nproc)
|
||||||
cd /godot
|
cd /godot
|
||||||
scons platform=javascript -j$(nproc)
|
scons platform=javascript -j$(nproc)
|
||||||
|
|
Loading…
Reference in a new issue