mirror of
https://github.com/PaperMC/Velocity.git
synced 2024-11-21 03:11:38 +08:00
10 lines
602 B
Bash
Executable File
10 lines
602 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Modify as you need.
|
|
MBEDTLS_ROOT=mbedtls
|
|
CFLAGS="-O3 -I$JAVA_HOME/include/ -I$JAVA_HOME/include/linux/ -fPIC -shared"
|
|
gcc $CFLAGS -lz src/main/c/jni_util.c src/main/c/jni_zlib_deflate.c src/main/c/jni_zlib_inflate.c \
|
|
src/main/c/jni_zlib_common.c -o src/main/resources/linux_x64/velocity-compress.so
|
|
gcc $CFLAGS -I $MBEDTLS_ROOT/include -shared $MBEDTLS_ROOT/library/aes.c $MBEDTLS_ROOT/library/aesni.c \
|
|
$MBEDTLS_ROOT/library/platform.c $MBEDTLS_ROOT/library/platform_util.c src/main/c/jni_util.c src/main/c/jni_cipher.c \
|
|
-o src/main/resources/linux_x64/velocity-cipher.so |