Update clean-all.sh, compile_tdjni.sh, and generate_tdapi_java_file.sh

This commit is contained in:
Andrea Cavalli 2020-10-10 03:36:01 +02:00
parent b7e2b1ebd7
commit f05cbe18a6
3 changed files with 12 additions and 4 deletions

8
scripts/clean-all.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash -e
cd ../
rm -r generated
echo "Done."
exit 0

View File

@ -48,8 +48,8 @@ echo "Creating missing folders..."
# Copy source files # Copy source files
echo "Copying source files..." echo "Copying source files..."
cp -r ./src/main/jni-cpp-src/common ./generated/src/main/jni-cpp-src cp -r ./src/main/jni-cpp-src/common/. ./generated/src/main/jni-cpp-src
cp -r ./src/main/jni-cpp-src/${IMPLEMENTATION_NAME} ./generated/src/main/jni-cpp-src cp -r ./src/main/jni-cpp-src/${IMPLEMENTATION_NAME}/. ./generated/src/main/jni-cpp-src
cp -r ./src/main/jni-java-src ./generated/src/main/jni-java-src cp -r ./src/main/jni-java-src ./generated/src/main/jni-java-src
cp ./generated/src/main/java/it/tdlight/jni/TdApi.java ./generated/src/main/jni-java-src/it/tdlight/jni/TdApi.java cp ./generated/src/main/java/it/tdlight/jni/TdApi.java ./generated/src/main/jni-java-src/it/tdlight/jni/TdApi.java

View File

@ -51,8 +51,8 @@ echo "Creating missing folders..."
# Copy source files # Copy source files
echo "Copying source files..." echo "Copying source files..."
cp -r ./src/main/jni-cpp-src/common ./generated/src/main/jni-cpp-src cp -r ./src/main/jni-cpp-src/common/. ./generated/src/main/jni-cpp-src
cp -r ./src/main/jni-cpp-src/${IMPLEMENTATION_NAME} ./generated/src/main/jni-cpp-src cp -r ./src/main/jni-cpp-src/${IMPLEMENTATION_NAME}/. ./generated/src/main/jni-cpp-src
cp -r ./src/main/jni-java-src ./generated/src/main/jni-java-src cp -r ./src/main/jni-java-src ./generated/src/main/jni-java-src
# Configure cmake # Configure cmake