From d28258f7b71001bea49bea54c9fd66b6bfcf950c Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Wed, 7 Apr 2021 21:51:32 +0200 Subject: [PATCH] Fix missing output directory --- scripts/core/compile_tdjni.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/core/compile_tdjni.sh b/scripts/core/compile_tdjni.sh index 6f9d7b2..5bee78d 100755 --- a/scripts/core/compile_tdjni.sh +++ b/scripts/core/compile_tdjni.sh @@ -36,6 +36,8 @@ if [ -z "${CPU_CORES}" ]; then fi cd ../../ +JAVA_API_PACKAGE_PATH="it/tdlight/jni" +JAVA_LIB_PACKAGE_PATH="it/tdlight/tdnative" # Print details echo "Compiling tdjni..." @@ -46,6 +48,8 @@ echo "Td implementation: ${IMPLEMENTATION_NAME}" echo "Build type: ${BUILD_TYPE}" echo "CPU cores count: ${CPU_CORES}" echo "CMake extra arguments: '${CMAKE_EXTRA_ARGUMENTS}'" +echo "JAVA_API_PACKAGE_PATH: '${JAVA_API_PACKAGE_PATH}'" +echo "JAVA_LIB_PACKAGE_PATH: '${JAVA_LIB_PACKAGE_PATH}'" # Delete old data echo "Deleting old data..." @@ -67,6 +71,10 @@ 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-java-src ./generated/src/main/jni-java-src +# Create missing jni-src folders +echo "Creating missing jni-src folders..." +[ -d ./generated/src/main/jni-java-src/${JAVA_API_PACKAGE_PATH} ] || mkdir -p ./generated/src/main/jni-java-src/${JAVA_API_PACKAGE_PATH} + # Copy executables echo "Copying executables..." if [[ "$OPERATING_SYSTEM_NAME" == "windows" ]]; then