diff options
| author | ruki <[email protected]> | 2022-12-24 20:48:34 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-12-24 20:48:34 +0800 |
| commit | f455e3661ce2bf48871c1ee2a6c650b785990557 (patch) | |
| tree | 8d160c19db77e5abe28523bb168ffdff9984efb3 | |
| parent | 781ddc428c7898c194a3b3dba1633818e6f488b9 (diff) | |
fix termux
| -rwxr-xr-x | configure | 10 | ||||
| -rwxr-xr-x | core/src/demo/xmake.sh | 2 |
2 files changed, 11 insertions, 1 deletions
@@ -612,20 +612,28 @@ if test_eq "${os_arch}" "i686"; then os_arch="i386" fi -# set the default target platform and architecture +# set the default target platform _target_plat_default=${os_host} if is_host "msys"; then _target_plat_default="mingw" elif is_host "freebsd"; then _target_plat_default="bsd" +elif test_nz "${TERMUX_ARCH}"; then + _target_plat_default="termux" fi + +# set the default target architecture _target_arch_default=${os_arch} if is_host "msys" && test_nz "${MSYSTEM_CARCH}"; then _target_arch_default="${MSYSTEM_CARCH}" +elif test_nz "${TERMUX_ARCH}"; then + _target_arch_default="${TERMUX_ARCH}" fi if test_eq "${_target_arch_default}" "i686"; then _target_arch_default="i386" fi + +# set the default target mode _target_mode_default="release" # set the default project generator and build program diff --git a/core/src/demo/xmake.sh b/core/src/demo/xmake.sh index 0a04b8bfb..61141337c 100755 --- a/core/src/demo/xmake.sh +++ b/core/src/demo/xmake.sh @@ -34,6 +34,8 @@ target "demo" add_syslinks "ws2_32" "pthread" "m" elif is_plat "bsd"; then add_syslinks "pthread" "m" + elif is_plat "termux"; then + add_syslinks "m" "dl" else add_syslinks "pthread" "dl" "m" "c" fi |
