Display and control your Android device
Extract sources paths in build_without_gradle.sh
Romain Vimont80ca7b15e5f8
diff --git a/server/build_without_gradle.sh b/server/build_without_gradle.shindex 74bbd8ae..845b0104 100755--- a/server/build_without_gradle.sh+++ b/server/build_without_gradle.sh@@ -50,14 +50,24 @@ cd "$SERVER_DIR/src/main/aidl"android/content/IOnPrimaryClipChangedListener.aidl"$BUILD_TOOLS_DIR/aidl" -o"$GEN_DIR" android/view/IDisplayFoldListener.aidl+SRC=( \+ com/genymobile/scrcpy/*.java \+ com/genymobile/scrcpy/wrappers/*.java \+)++CLASSES=()+for src in "${SRC[@]}"+do+ CLASSES+=("${src%.java}.class")+done+echo "Compiling java sources..."cd ../javajavac -bootclasspath "$ANDROID_JAR" \-cp "$LAMBDA_JAR:$GEN_DIR" \-d "$CLASSES_DIR" \-source 1.8 -target 1.8 \- com/genymobile/scrcpy/*.java \- com/genymobile/scrcpy/wrappers/*.java+ ${SRC[@]}echo "Dexing..."cd "$CLASSES_DIR"@@ -68,8 +78,7 @@ then"$BUILD_TOOLS_DIR/dx" --dex --output "$BUILD_DIR/classes.dex" \android/view/*.class \android/content/*.class \- com/genymobile/scrcpy/*.class \- com/genymobile/scrcpy/wrappers/*.class+ ${CLASSES[@]}echo "Archiving..."cd "$BUILD_DIR"@@ -81,8 +90,7 @@ else--output "$BUILD_DIR/classes.zip" \android/view/*.class \android/content/*.class \- com/genymobile/scrcpy/*.class \- com/genymobile/scrcpy/wrappers/*.class+ ${CLASSES[@]}cd "$BUILD_DIR"mv classes.zip "$SERVER_BINARY"