Add KCP support
This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
SRC_DIR="${ROOT_DIR}/native/kcp"
|
||||
OUT="${SRC_DIR}/liblaylink_kcp.so"
|
||||
|
||||
cc="${CC:-gcc}"
|
||||
"${cc}" -O3 -fPIC -shared \
|
||||
"${SRC_DIR}/ikcp.c" \
|
||||
"${SRC_DIR}/laylink_kcp.c" \
|
||||
-o "${OUT}"
|
||||
|
||||
echo "${OUT}"
|
||||
Reference in New Issue
Block a user