Fix parallel argument, dynamically fix llvm symlinks
This commit is contained in:
parent
bdedb36f50
commit
d9c015bc5b
4
.github/workflows/scripts/build_api.sh
vendored
4
.github/workflows/scripts/build_api.sh
vendored
@ -17,8 +17,8 @@ cmake \
|
|||||||
-DTD_ENABLE_LTO=OFF \
|
-DTD_ENABLE_LTO=OFF \
|
||||||
-DTD_ENABLE_JNI=ON \
|
-DTD_ENABLE_JNI=ON \
|
||||||
..
|
..
|
||||||
cmake --build . --target prepare_cross_compiling --config Release "-j$(nproc)"
|
cmake --build . --target prepare_cross_compiling --config Release --parallel "$(nproc)"
|
||||||
cmake --build . --target td_generate_java_api --config Release "-j$(nproc)"
|
cmake --build . --target td_generate_java_api --config Release --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
# Generate TdApi.java
|
# Generate TdApi.java
|
||||||
|
@ -22,8 +22,8 @@ cmake \
|
|||||||
-DTD_ENABLE_LTO=OFF \
|
-DTD_ENABLE_LTO=OFF \
|
||||||
-DTD_ENABLE_JNI=ON \
|
-DTD_ENABLE_JNI=ON \
|
||||||
..
|
..
|
||||||
cmake --build . --target prepare_cross_compiling "-j$(nproc)"
|
cmake --build . --target prepare_cross_compiling --parallel "$(nproc)"
|
||||||
cmake --build . --target td_generate_java_api "-j$(nproc)"
|
cmake --build . --target td_generate_java_api --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
# Generate TdApi.java
|
# Generate TdApi.java
|
||||||
@ -48,7 +48,7 @@ cmake \
|
|||||||
-DCMAKE_INSTALL_PREFIX:PATH="$INSTALL_PREFIX" \
|
-DCMAKE_INSTALL_PREFIX:PATH="$INSTALL_PREFIX" \
|
||||||
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
||||||
..
|
..
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
cd natives/build
|
cd natives/build
|
||||||
@ -63,7 +63,7 @@ cmake \
|
|||||||
-DJAVA_SRC_DIR="../src/main/java" \
|
-DJAVA_SRC_DIR="../src/main/java" \
|
||||||
-DTDNATIVES_CPP_SRC_DIR="../src/main/cpp" \
|
-DTDNATIVES_CPP_SRC_DIR="../src/main/cpp" \
|
||||||
../src/main/cpp
|
../src/main/cpp
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ..
|
cd ..
|
||||||
mkdir -p src/main/resources/META-INF/tdlightjni/
|
mkdir -p src/main/resources/META-INF/tdlightjni/
|
||||||
mv tdjni_bin/libtdjni.so src/main/resources/META-INF/tdlightjni/libtdjni.linux_amd64_ssl3.so
|
mv tdjni_bin/libtdjni.so src/main/resources/META-INF/tdlightjni/libtdjni.linux_amd64_ssl3.so
|
||||||
|
@ -43,8 +43,8 @@ CXXFLAGS="-stdlib=libc++" CC="$HOST_CMAKE_C_COMPILER" CXX="$HOST_CMAKE_CXX_COMPI
|
|||||||
-DTD_ENABLE_LTO=OFF \
|
-DTD_ENABLE_LTO=OFF \
|
||||||
-DTD_ENABLE_JNI=ON \
|
-DTD_ENABLE_JNI=ON \
|
||||||
..
|
..
|
||||||
cmake --build . --target prepare_cross_compiling "-j$(nproc)"
|
cmake --build . --target prepare_cross_compiling --parallel "$(nproc)"
|
||||||
cmake --build . --target td_generate_java_api "-j$(nproc)"
|
cmake --build . --target td_generate_java_api --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
# Generate TdApi.java
|
# Generate TdApi.java
|
||||||
@ -73,7 +73,7 @@ cmake \
|
|||||||
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
||||||
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
||||||
..
|
..
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
cd natives/build
|
cd natives/build
|
||||||
@ -92,7 +92,7 @@ cmake \
|
|||||||
-DTDNATIVES_CPP_SRC_DIR="$(readlink -e ../src/main/cpp)" \
|
-DTDNATIVES_CPP_SRC_DIR="$(readlink -e ../src/main/cpp)" \
|
||||||
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
||||||
../src/main/cpp
|
../src/main/cpp
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ..
|
cd ..
|
||||||
mkdir -p src/main/resources/META-INF/tdlightjni/
|
mkdir -p src/main/resources/META-INF/tdlightjni/
|
||||||
mv tdjni_bin/libtdjni.so src/main/resources/META-INF/tdlightjni/libtdjni.linux_386_ssl3.so
|
mv tdjni_bin/libtdjni.so src/main/resources/META-INF/tdlightjni/libtdjni.linux_386_ssl3.so
|
||||||
|
@ -42,8 +42,8 @@ CXXFLAGS="-stdlib=libc++" CC="$HOST_CMAKE_C_COMPILER" CXX="$HOST_CMAKE_CXX_COMPI
|
|||||||
-DTD_ENABLE_LTO=OFF \
|
-DTD_ENABLE_LTO=OFF \
|
||||||
-DTD_ENABLE_JNI=ON \
|
-DTD_ENABLE_JNI=ON \
|
||||||
..
|
..
|
||||||
cmake --build . --target prepare_cross_compiling "-j$(nproc)"
|
cmake --build . --target prepare_cross_compiling --parallel "$(nproc)"
|
||||||
cmake --build . --target td_generate_java_api "-j$(nproc)"
|
cmake --build . --target td_generate_java_api --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
# Generate TdApi.java
|
# Generate TdApi.java
|
||||||
@ -77,7 +77,7 @@ CXXFLAGS="-stdlib=libc++" CC="$HOST_CMAKE_C_COMPILER" CXX="$HOST_CMAKE_CXX_COMPI
|
|||||||
-DCMAKE_INSTALL_PREFIX:PATH="$INSTALL_PREFIX" \
|
-DCMAKE_INSTALL_PREFIX:PATH="$INSTALL_PREFIX" \
|
||||||
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
||||||
..
|
..
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
cd natives/build
|
cd natives/build
|
||||||
@ -100,7 +100,7 @@ CXXFLAGS="-stdlib=libc++" CC="$HOST_CMAKE_C_COMPILER" CXX="$HOST_CMAKE_CXX_COMPI
|
|||||||
-DJAVA_SRC_DIR="$(readlink -e ../src/main/java)" \
|
-DJAVA_SRC_DIR="$(readlink -e ../src/main/java)" \
|
||||||
-DTDNATIVES_CPP_SRC_DIR="$(readlink -e ../src/main/cpp)" \
|
-DTDNATIVES_CPP_SRC_DIR="$(readlink -e ../src/main/cpp)" \
|
||||||
../src/main/cpp
|
../src/main/cpp
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ..
|
cd ..
|
||||||
mkdir -p src/main/resources/META-INF/tdlightjni/
|
mkdir -p src/main/resources/META-INF/tdlightjni/
|
||||||
mv tdjni_bin/libtdjni.so src/main/resources/META-INF/tdlightjni/libtdjni.linux_amd64_ssl1.so
|
mv tdjni_bin/libtdjni.so src/main/resources/META-INF/tdlightjni/libtdjni.linux_amd64_ssl1.so
|
||||||
|
@ -42,8 +42,8 @@ CXXFLAGS="-stdlib=libc++" CC="$HOST_CMAKE_C_COMPILER" CXX="$HOST_CMAKE_CXX_COMPI
|
|||||||
-DTD_ENABLE_LTO=OFF \
|
-DTD_ENABLE_LTO=OFF \
|
||||||
-DTD_ENABLE_JNI=ON \
|
-DTD_ENABLE_JNI=ON \
|
||||||
..
|
..
|
||||||
cmake --build . --target prepare_cross_compiling "-j$(nproc)"
|
cmake --build . --target prepare_cross_compiling --parallel "$(nproc)"
|
||||||
cmake --build . --target td_generate_java_api "-j$(nproc)"
|
cmake --build . --target td_generate_java_api --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
# Generate TdApi.java
|
# Generate TdApi.java
|
||||||
@ -77,7 +77,7 @@ CXXFLAGS="-stdlib=libc++" CC="$HOST_CMAKE_C_COMPILER" CXX="$HOST_CMAKE_CXX_COMPI
|
|||||||
-DCMAKE_INSTALL_PREFIX:PATH="$INSTALL_PREFIX" \
|
-DCMAKE_INSTALL_PREFIX:PATH="$INSTALL_PREFIX" \
|
||||||
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
||||||
..
|
..
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
cd natives/build
|
cd natives/build
|
||||||
@ -100,7 +100,7 @@ CXXFLAGS="-stdlib=libc++" CC="$HOST_CMAKE_C_COMPILER" CXX="$HOST_CMAKE_CXX_COMPI
|
|||||||
-DJAVA_SRC_DIR="$(readlink -e ../src/main/java)" \
|
-DJAVA_SRC_DIR="$(readlink -e ../src/main/java)" \
|
||||||
-DTDNATIVES_CPP_SRC_DIR="$(readlink -e ../src/main/cpp)" \
|
-DTDNATIVES_CPP_SRC_DIR="$(readlink -e ../src/main/cpp)" \
|
||||||
../src/main/cpp
|
../src/main/cpp
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ..
|
cd ..
|
||||||
mkdir -p src/main/resources/META-INF/tdlightjni/
|
mkdir -p src/main/resources/META-INF/tdlightjni/
|
||||||
mv tdjni_bin/libtdjni.so src/main/resources/META-INF/tdlightjni/libtdjni.linux_amd64_ssl3.so
|
mv tdjni_bin/libtdjni.so src/main/resources/META-INF/tdlightjni/libtdjni.linux_amd64_ssl3.so
|
||||||
|
@ -43,8 +43,8 @@ CXXFLAGS="-stdlib=libc++" CC="$HOST_CMAKE_C_COMPILER" CXX="$HOST_CMAKE_CXX_COMPI
|
|||||||
-DTD_ENABLE_LTO=OFF \
|
-DTD_ENABLE_LTO=OFF \
|
||||||
-DTD_ENABLE_JNI=ON \
|
-DTD_ENABLE_JNI=ON \
|
||||||
..
|
..
|
||||||
cmake --build . --target prepare_cross_compiling "-j$(nproc)"
|
cmake --build . --target prepare_cross_compiling --parallel "$(nproc)"
|
||||||
cmake --build . --target td_generate_java_api "-j$(nproc)"
|
cmake --build . --target td_generate_java_api --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
# Generate TdApi.java
|
# Generate TdApi.java
|
||||||
@ -73,7 +73,7 @@ cmake \
|
|||||||
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
||||||
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
||||||
..
|
..
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
cd natives/build
|
cd natives/build
|
||||||
@ -92,7 +92,7 @@ cmake \
|
|||||||
-DTDNATIVES_CPP_SRC_DIR="$(readlink -e ../src/main/cpp)" \
|
-DTDNATIVES_CPP_SRC_DIR="$(readlink -e ../src/main/cpp)" \
|
||||||
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
||||||
../src/main/cpp
|
../src/main/cpp
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ..
|
cd ..
|
||||||
mkdir -p src/main/resources/META-INF/tdlightjni/
|
mkdir -p src/main/resources/META-INF/tdlightjni/
|
||||||
mv tdjni_bin/libtdjni.so src/main/resources/META-INF/tdlightjni/libtdjni.linux_arm64_ssl1.so
|
mv tdjni_bin/libtdjni.so src/main/resources/META-INF/tdlightjni/libtdjni.linux_arm64_ssl1.so
|
||||||
|
@ -43,8 +43,8 @@ CXXFLAGS="-stdlib=libc++" CC="$HOST_CMAKE_C_COMPILER" CXX="$HOST_CMAKE_CXX_COMPI
|
|||||||
-DTD_ENABLE_LTO=OFF \
|
-DTD_ENABLE_LTO=OFF \
|
||||||
-DTD_ENABLE_JNI=ON \
|
-DTD_ENABLE_JNI=ON \
|
||||||
..
|
..
|
||||||
cmake --build . --target prepare_cross_compiling "-j$(nproc)"
|
cmake --build . --target prepare_cross_compiling --parallel "$(nproc)"
|
||||||
cmake --build . --target td_generate_java_api "-j$(nproc)"
|
cmake --build . --target td_generate_java_api --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
# Generate TdApi.java
|
# Generate TdApi.java
|
||||||
@ -73,7 +73,7 @@ cmake \
|
|||||||
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
||||||
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
||||||
..
|
..
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
cd natives/build
|
cd natives/build
|
||||||
@ -92,7 +92,7 @@ cmake \
|
|||||||
-DTDNATIVES_CPP_SRC_DIR="$(readlink -e ../src/main/cpp)" \
|
-DTDNATIVES_CPP_SRC_DIR="$(readlink -e ../src/main/cpp)" \
|
||||||
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
||||||
../src/main/cpp
|
../src/main/cpp
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ..
|
cd ..
|
||||||
mkdir -p src/main/resources/META-INF/tdlightjni/
|
mkdir -p src/main/resources/META-INF/tdlightjni/
|
||||||
mv tdjni_bin/libtdjni.so src/main/resources/META-INF/tdlightjni/libtdjni.linux_arm64_ssl3.so
|
mv tdjni_bin/libtdjni.so src/main/resources/META-INF/tdlightjni/libtdjni.linux_arm64_ssl3.so
|
||||||
|
@ -43,8 +43,8 @@ CXXFLAGS="-stdlib=libc++" CC="$HOST_CMAKE_C_COMPILER" CXX="$HOST_CMAKE_CXX_COMPI
|
|||||||
-DTD_ENABLE_LTO=OFF \
|
-DTD_ENABLE_LTO=OFF \
|
||||||
-DTD_ENABLE_JNI=ON \
|
-DTD_ENABLE_JNI=ON \
|
||||||
..
|
..
|
||||||
cmake --build . --target prepare_cross_compiling "-j$(nproc)"
|
cmake --build . --target prepare_cross_compiling --parallel "$(nproc)"
|
||||||
cmake --build . --target td_generate_java_api "-j$(nproc)"
|
cmake --build . --target td_generate_java_api --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
# Generate TdApi.java
|
# Generate TdApi.java
|
||||||
@ -73,7 +73,7 @@ cmake \
|
|||||||
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
||||||
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
||||||
..
|
..
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
cd natives/build
|
cd natives/build
|
||||||
@ -92,7 +92,7 @@ cmake \
|
|||||||
-DTDNATIVES_CPP_SRC_DIR="$(readlink -e ../src/main/cpp)" \
|
-DTDNATIVES_CPP_SRC_DIR="$(readlink -e ../src/main/cpp)" \
|
||||||
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
||||||
../src/main/cpp
|
../src/main/cpp
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ..
|
cd ..
|
||||||
mkdir -p src/main/resources/META-INF/tdlightjni/
|
mkdir -p src/main/resources/META-INF/tdlightjni/
|
||||||
mv tdjni_bin/libtdjni.so src/main/resources/META-INF/tdlightjni/libtdjni.linux_armhf_ssl3.so
|
mv tdjni_bin/libtdjni.so src/main/resources/META-INF/tdlightjni/libtdjni.linux_armhf_ssl3.so
|
||||||
|
@ -43,8 +43,8 @@ CXXFLAGS="-stdlib=libc++" CC="$HOST_CMAKE_C_COMPILER" CXX="$HOST_CMAKE_CXX_COMPI
|
|||||||
-DTD_ENABLE_LTO=OFF \
|
-DTD_ENABLE_LTO=OFF \
|
||||||
-DTD_ENABLE_JNI=ON \
|
-DTD_ENABLE_JNI=ON \
|
||||||
..
|
..
|
||||||
cmake --build . --target prepare_cross_compiling "-j$(nproc)"
|
cmake --build . --target prepare_cross_compiling --parallel "$(nproc)"
|
||||||
cmake --build . --target td_generate_java_api "-j$(nproc)"
|
cmake --build . --target td_generate_java_api --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
# Generate TdApi.java
|
# Generate TdApi.java
|
||||||
@ -73,7 +73,7 @@ cmake \
|
|||||||
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
||||||
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
||||||
..
|
..
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
cd natives/build
|
cd natives/build
|
||||||
@ -92,7 +92,7 @@ cmake \
|
|||||||
-DTDNATIVES_CPP_SRC_DIR="$(readlink -e ../src/main/cpp)" \
|
-DTDNATIVES_CPP_SRC_DIR="$(readlink -e ../src/main/cpp)" \
|
||||||
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
||||||
../src/main/cpp
|
../src/main/cpp
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ..
|
cd ..
|
||||||
mkdir -p src/main/resources/META-INF/tdlightjni/
|
mkdir -p src/main/resources/META-INF/tdlightjni/
|
||||||
mv tdjni_bin/libtdjni.so src/main/resources/META-INF/tdlightjni/libtdjni.linux_ppc64le_ssl3.so
|
mv tdjni_bin/libtdjni.so src/main/resources/META-INF/tdlightjni/libtdjni.linux_ppc64le_ssl3.so
|
||||||
|
@ -43,8 +43,8 @@ CXXFLAGS="-stdlib=libc++" CC="$HOST_CMAKE_C_COMPILER" CXX="$HOST_CMAKE_CXX_COMPI
|
|||||||
-DTD_ENABLE_LTO=OFF \
|
-DTD_ENABLE_LTO=OFF \
|
||||||
-DTD_ENABLE_JNI=ON \
|
-DTD_ENABLE_JNI=ON \
|
||||||
..
|
..
|
||||||
cmake --build . --target prepare_cross_compiling "-j$(nproc)"
|
cmake --build . --target prepare_cross_compiling --parallel "$(nproc)"
|
||||||
cmake --build . --target td_generate_java_api "-j$(nproc)"
|
cmake --build . --target td_generate_java_api --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
# Generate TdApi.java
|
# Generate TdApi.java
|
||||||
@ -73,7 +73,7 @@ cmake \
|
|||||||
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
||||||
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
||||||
..
|
..
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
cd natives/build
|
cd natives/build
|
||||||
@ -92,7 +92,7 @@ cmake \
|
|||||||
-DTDNATIVES_CPP_SRC_DIR="$(readlink -e ../src/main/cpp)" \
|
-DTDNATIVES_CPP_SRC_DIR="$(readlink -e ../src/main/cpp)" \
|
||||||
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
-DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN_FILE}" \
|
||||||
../src/main/cpp
|
../src/main/cpp
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ..
|
cd ..
|
||||||
mkdir -p src/main/resources/META-INF/tdlightjni/
|
mkdir -p src/main/resources/META-INF/tdlightjni/
|
||||||
mv tdjni_bin/libtdjni.so src/main/resources/META-INF/tdlightjni/libtdjni.linux_riscv64_ssl3.so
|
mv tdjni_bin/libtdjni.so src/main/resources/META-INF/tdlightjni/libtdjni.linux_riscv64_ssl3.so
|
||||||
|
@ -28,8 +28,8 @@ cmake \
|
|||||||
-DTD_ENABLE_LTO=OFF \
|
-DTD_ENABLE_LTO=OFF \
|
||||||
-DTD_ENABLE_JNI=ON \
|
-DTD_ENABLE_JNI=ON \
|
||||||
..
|
..
|
||||||
cmake --build . --target prepare_cross_compiling "-j$(nproc)"
|
cmake --build . --target prepare_cross_compiling --parallel "$(nproc)"
|
||||||
cmake --build . --target td_generate_java_api "-j$(nproc)"
|
cmake --build . --target td_generate_java_api --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
# Generate TdApi.java
|
# Generate TdApi.java
|
||||||
@ -59,7 +59,7 @@ cmake \
|
|||||||
-DCMAKE_INSTALL_PREFIX:PATH="$INSTALL_PREFIX" \
|
-DCMAKE_INSTALL_PREFIX:PATH="$INSTALL_PREFIX" \
|
||||||
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
||||||
..
|
..
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
cd natives/build
|
cd natives/build
|
||||||
@ -77,7 +77,7 @@ cmake \
|
|||||||
-DJAVA_SRC_DIR="$(greadlink -e ../src/main/java)" \
|
-DJAVA_SRC_DIR="$(greadlink -e ../src/main/java)" \
|
||||||
-DTDNATIVES_CPP_SRC_DIR="$(greadlink -e ../src/main/cpp)" \
|
-DTDNATIVES_CPP_SRC_DIR="$(greadlink -e ../src/main/cpp)" \
|
||||||
../src/main/cpp
|
../src/main/cpp
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ..
|
cd ..
|
||||||
mkdir -p src/main/resources/META-INF/tdlightjni/
|
mkdir -p src/main/resources/META-INF/tdlightjni/
|
||||||
mv tdjni_bin/libtdjni.dylib src/main/resources/META-INF/tdlightjni/libtdjni.linux_amd64_ssl3.dylib
|
mv tdjni_bin/libtdjni.dylib src/main/resources/META-INF/tdlightjni/libtdjni.linux_amd64_ssl3.dylib
|
||||||
|
@ -31,8 +31,8 @@ cmake \
|
|||||||
-DTD_ENABLE_LTO=OFF \
|
-DTD_ENABLE_LTO=OFF \
|
||||||
-DTD_ENABLE_JNI=ON \
|
-DTD_ENABLE_JNI=ON \
|
||||||
..
|
..
|
||||||
cmake --build . --target prepare_cross_compiling --config Release "-j$(nproc)"
|
cmake --build . --target prepare_cross_compiling --config Release --parallel "$(nproc)"
|
||||||
cmake --build . --target td_generate_java_api --config Release "-j$(nproc)"
|
cmake --build . --target td_generate_java_api --config Release --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
# Generate TdApi.java
|
# Generate TdApi.java
|
||||||
@ -61,7 +61,7 @@ cmake \
|
|||||||
-DCMAKE_INSTALL_PREFIX:PATH="$INSTALL_PREFIX" \
|
-DCMAKE_INSTALL_PREFIX:PATH="$INSTALL_PREFIX" \
|
||||||
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
-DCMAKE_INSTALL_BINDIR:PATH="$INSTALL_BINDIR" \
|
||||||
..
|
..
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|
||||||
cd natives/build
|
cd natives/build
|
||||||
@ -79,7 +79,7 @@ cmake \
|
|||||||
-DJAVA_SRC_DIR="$(readlink -e ../src/main/java)" \
|
-DJAVA_SRC_DIR="$(readlink -e ../src/main/java)" \
|
||||||
-DTDNATIVES_CPP_SRC_DIR="$(readlink -e ../src/main/cpp)" \
|
-DTDNATIVES_CPP_SRC_DIR="$(readlink -e ../src/main/cpp)" \
|
||||||
../src/main/cpp
|
../src/main/cpp
|
||||||
cmake --build . --target install --config Release "-j$(nproc)"
|
cmake --build . --target install --config Release --parallel "$(nproc)"
|
||||||
cd ..
|
cd ..
|
||||||
mkdir -p src/main/resources/META-INF/tdlightjni/
|
mkdir -p src/main/resources/META-INF/tdlightjni/
|
||||||
mv tdjni_bin/libtdjni.dll src/main/resources/META-INF/tdlightjni/libtdjni.linux_amd64_ssl3.dll
|
mv tdjni_bin/libtdjni.dll src/main/resources/META-INF/tdlightjni/libtdjni.linux_amd64_ssl3.dll
|
||||||
|
@ -11,9 +11,8 @@ apt-get --assume-yes update
|
|||||||
# Install and bypass a bug in the cross-platform libc++ packages
|
# Install and bypass a bug in the cross-platform libc++ packages
|
||||||
apt-get --assume-yes autoremove "libc++-14-dev:*" "libc++abi-14-dev:*" "libc++1-14:*" "libc++abi1-14:*" "libunwind-14-dev:*" "libunwind-14:*" || true
|
apt-get --assume-yes autoremove "libc++-14-dev:*" "libc++abi-14-dev:*" "libc++1-14:*" "libc++abi1-14:*" "libunwind-14-dev:*" "libunwind-14:*" || true
|
||||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-14-dev:i386 libc++abi-14-dev:i386 libc++1-14:i386 libc++abi1-14:i386 libunwind-14-dev:i386 libunwind-14:i386
|
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-14-dev:i386 libc++abi-14-dev:i386 libc++1-14:i386 libc++abi1-14:i386 libunwind-14-dev:i386 libunwind-14:i386
|
||||||
cp --remove-destination \
|
# shellcheck disable=SC2016
|
||||||
/usr/lib/llvm-14/lib/{libc++abi.so,libc++abi.so.1.0,libc++.so,libc++.so.1.0,libunwind.so.1.0} \
|
find /usr/lib/i386-linux-gnu/ -lname "*llvm-14*" -print0 | xargs -0 -i sh -c 'cp --remove-destination $(readlink -e "{}") "{}" '
|
||||||
/usr/lib/aarch64-linux-gnu/ || true
|
|
||||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-14 libc++-14-dev libc++abi-14-dev libc++1-14 libc++abi1-14 libunwind-14-dev libunwind-14
|
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-14 libc++-14-dev libc++abi-14-dev libc++1-14 libc++abi1-14 libunwind-14-dev libunwind-14
|
||||||
# End libc++ packages bugfix
|
# End libc++ packages bugfix
|
||||||
|
|
||||||
|
@ -15,9 +15,8 @@ apt-get --assume-yes update
|
|||||||
# Install and bypass a bug in the cross-platform libc++ packages
|
# Install and bypass a bug in the cross-platform libc++ packages
|
||||||
apt-get --assume-yes autoremove "libc++-12-dev:*" "libc++abi-12-dev:*" "libc++1-12:*" "libc++abi1-12:*" || true
|
apt-get --assume-yes autoremove "libc++-12-dev:*" "libc++abi-12-dev:*" "libc++1-12:*" "libc++abi1-12:*" || true
|
||||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-12-dev:arm64 libc++abi-12-dev:arm64 libc++1-12:arm64 libc++abi1-12:arm64
|
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-12-dev:arm64 libc++abi-12-dev:arm64 libc++1-12:arm64 libc++abi1-12:arm64
|
||||||
cp --remove-destination \
|
# shellcheck disable=SC2016
|
||||||
/usr/lib/llvm-12/lib/{libc++abi.so,libc++abi.so.1.0,libc++.so,libc++.so.1.0} \
|
find /usr/lib/aarch64-linux-gnu/ -lname "*llvm-12*" -print0 | xargs -0 -i sh -c 'cp --remove-destination $(readlink -e "{}") "{}" '
|
||||||
/usr/lib/aarch64-linux-gnu/ || true
|
|
||||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-12 libc++-12-dev libc++abi-12-dev libc++1-12 libc++abi1-12
|
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-12 libc++-12-dev libc++abi-12-dev libc++1-12 libc++abi1-12
|
||||||
# End libc++ packages bugfix
|
# End libc++ packages bugfix
|
||||||
|
|
||||||
|
@ -15,9 +15,8 @@ apt-get --assume-yes update
|
|||||||
# Install and bypass a bug in the cross-platform libc++ packages
|
# Install and bypass a bug in the cross-platform libc++ packages
|
||||||
apt-get --assume-yes autoremove "libc++-14-dev:*" "libc++abi-14-dev:*" "libc++1-14:*" "libc++abi1-14:*" "libunwind-14-dev:*" "libunwind-14:*" || true
|
apt-get --assume-yes autoremove "libc++-14-dev:*" "libc++abi-14-dev:*" "libc++1-14:*" "libc++abi1-14:*" "libunwind-14-dev:*" "libunwind-14:*" || true
|
||||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-14-dev:arm64 libc++abi-14-dev:arm64 libc++1-14:arm64 libc++abi1-14:arm64 libunwind-14-dev:arm64 libunwind-14:arm64
|
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-14-dev:arm64 libc++abi-14-dev:arm64 libc++1-14:arm64 libc++abi1-14:arm64 libunwind-14-dev:arm64 libunwind-14:arm64
|
||||||
cp --remove-destination \
|
# shellcheck disable=SC2016
|
||||||
/usr/lib/llvm-14/lib/{libc++abi.so,libc++abi.so.1.0,libc++.so,libc++.so.1.0,libunwind.so.1.0} \
|
find /usr/lib/aarch64-linux-gnu/ -lname "*llvm-14*" -print0 | xargs -0 -i sh -c 'cp --remove-destination $(readlink -e "{}") "{}" '
|
||||||
/usr/lib/aarch64-linux-gnu/ || true
|
|
||||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-14 libc++-14-dev libc++abi-14-dev libc++1-14 libc++abi1-14 libunwind-14-dev libunwind-14
|
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-14 libc++-14-dev libc++abi-14-dev libc++1-14 libc++abi1-14 libunwind-14-dev libunwind-14
|
||||||
# End libc++ packages bugfix
|
# End libc++ packages bugfix
|
||||||
|
|
||||||
|
@ -15,9 +15,8 @@ apt-get --assume-yes update
|
|||||||
# Install and bypass a bug in the cross-platform libc++ packages
|
# Install and bypass a bug in the cross-platform libc++ packages
|
||||||
apt-get --assume-yes autoremove "libc++-14-dev:*" "libc++abi-14-dev:*" "libc++1-14:*" "libc++abi1-14:*" "libunwind-14-dev:*" "libunwind-14:*" || true
|
apt-get --assume-yes autoremove "libc++-14-dev:*" "libc++abi-14-dev:*" "libc++1-14:*" "libc++abi1-14:*" "libunwind-14-dev:*" "libunwind-14:*" || true
|
||||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-14-dev:armhf libc++abi-14-dev:armhf libc++1-14:armhf libc++abi1-14:armhf libunwind-14-dev:armhf libunwind-14:armhf
|
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-14-dev:armhf libc++abi-14-dev:armhf libc++1-14:armhf libc++abi1-14:armhf libunwind-14-dev:armhf libunwind-14:armhf
|
||||||
cp --remove-destination \
|
# shellcheck disable=SC2016
|
||||||
/usr/lib/llvm-14/lib/{libc++abi.so,libc++abi.so.1.0,libc++.so,libc++.so.1.0,libunwind.so.1.0} \
|
find /usr/lib/armhf-linux-gnu/ -lname "*llvm-14*" -print0 | xargs -0 -i sh -c 'cp --remove-destination $(readlink -e "{}") "{}" '
|
||||||
/usr/lib/aarch64-linux-gnu/ || true
|
|
||||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-14 libc++-14-dev libc++abi-14-dev libc++1-14 libc++abi1-14 libunwind-14-dev libunwind-14
|
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-14 libc++-14-dev libc++abi-14-dev libc++1-14 libc++abi1-14 libunwind-14-dev libunwind-14
|
||||||
# End libc++ packages bugfix
|
# End libc++ packages bugfix
|
||||||
|
|
||||||
|
@ -15,9 +15,8 @@ apt-get --assume-yes update
|
|||||||
# Install and bypass a bug in the cross-platform libc++ packages
|
# Install and bypass a bug in the cross-platform libc++ packages
|
||||||
apt-get --assume-yes autoremove "libc++-14-dev:*" "libc++abi-14-dev:*" "libc++1-14:*" "libc++abi1-14:*" "libunwind-14-dev:*" "libunwind-14:*" || true
|
apt-get --assume-yes autoremove "libc++-14-dev:*" "libc++abi-14-dev:*" "libc++1-14:*" "libc++abi1-14:*" "libunwind-14-dev:*" "libunwind-14:*" || true
|
||||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-14-dev:ppc64el libc++abi-14-dev:ppc64el libc++1-14:ppc64el libc++abi1-14:ppc64el libunwind-14-dev:ppc64el libunwind-14:ppc64el
|
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-14-dev:ppc64el libc++abi-14-dev:ppc64el libc++1-14:ppc64el libc++abi1-14:ppc64el libunwind-14-dev:ppc64el libunwind-14:ppc64el
|
||||||
cp --remove-destination \
|
# shellcheck disable=SC2016
|
||||||
/usr/lib/llvm-14/lib/{libc++abi.so,libc++abi.so.1.0,libc++.so,libc++.so.1.0,libunwind.so.1.0} \
|
find /usr/lib/ppc64el-linux-gnu/ -lname "*llvm-14*" -print0 | xargs -0 -i sh -c 'cp --remove-destination $(readlink -e "{}") "{}" '
|
||||||
/usr/lib/aarch64-linux-gnu/ || true
|
|
||||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-14 libc++-14-dev libc++abi-14-dev libc++1-14 libc++abi1-14 libunwind-14-dev libunwind-14
|
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-14 libc++-14-dev libc++abi-14-dev libc++1-14 libc++abi1-14 libunwind-14-dev libunwind-14
|
||||||
# End libc++ packages bugfix
|
# End libc++ packages bugfix
|
||||||
|
|
||||||
|
@ -15,9 +15,8 @@ apt-get --assume-yes update
|
|||||||
# Install and bypass a bug in the cross-platform libc++ packages
|
# Install and bypass a bug in the cross-platform libc++ packages
|
||||||
apt-get --assume-yes autoremove "libc++-14-dev:*" "libc++abi-14-dev:*" "libc++1-14:*" "libc++abi1-14:*" "libunwind-14-dev:*" "libunwind-14:*" || true
|
apt-get --assume-yes autoremove "libc++-14-dev:*" "libc++abi-14-dev:*" "libc++1-14:*" "libc++abi1-14:*" "libunwind-14-dev:*" "libunwind-14:*" || true
|
||||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-14-dev:riscv64 libc++abi-14-dev:riscv64 libc++1-14:riscv64 libc++abi1-14:riscv64 libunwind-14-dev:riscv64 libunwind-14:riscv64
|
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-14-dev:riscv64 libc++abi-14-dev:riscv64 libc++1-14:riscv64 libc++abi1-14:riscv64 libunwind-14-dev:riscv64 libunwind-14:riscv64
|
||||||
cp --remove-destination \
|
# shellcheck disable=SC2016
|
||||||
/usr/lib/llvm-14/lib/{libc++abi.so,libc++abi.so.1.0,libc++.so,libc++.so.1.0,libunwind.so.1.0} \
|
find /usr/lib/riscv64-linux-gnu/ -lname "*llvm-14*" -print0 | xargs -0 -i sh -c 'cp --remove-destination $(readlink -e "{}") "{}" '
|
||||||
/usr/lib/aarch64-linux-gnu/ || true
|
|
||||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-14 libc++-14-dev libc++abi-14-dev libc++1-14 libc++abi1-14 libunwind-14-dev libunwind-14
|
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-14 libc++-14-dev libc++abi-14-dev libc++1-14 libc++abi1-14 libunwind-14-dev libunwind-14
|
||||||
# End libc++ packages bugfix
|
# End libc++ packages bugfix
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user