Commit 88ffd8f0 authored by JPeg's avatar JPeg
Browse files

Android/Makefile: rebuild libvlcjni when the sources change

parent ae2e69c6
# Sources and objects
JAVA_SOURCES=vlc-android/src/vlc/android/*.java
JNI_SOURCES=vlc-android/jni/*.c vlc-android/jni/*.h
VLC_APK=vlc-android/bin/VLC-debug.apk
APK_MK=vlc-android/jni/Android.mk
LIBVLCJNI=vlc-android/libs/armeabi/libvlcjni.so
......@@ -53,7 +54,7 @@ $(APK_MK):
printf "\t-ldl -lz -lm -logg -lvorbisenc -lvorbis -lFLAC -lspeex -ltheora -lavformat -lavcodec -lavcore -lavutil -lpostproc -lswscale -lmpeg2 -lgcc -lpng -ldca -ldvbpsi -ltwolame -lkate -llog -la52\n" >> $(APK_MK); \
printf "include \$$(BUILD_SHARED_LIBRARY)\n" >> $(APK_MK)
$(LIBVLCJNI): $(APK_MK)
$(LIBVLCJNI): $(JNI_SOURCES) $(APK_MK)
@echo "=== Building libvlcjni ==="
@cd vlc-android/; \
$(ANDROID_NDK)/ndk-build
......@@ -84,7 +85,7 @@ distclean: clean
rm -f vlc-android/local.properties
install:
@echo "=== Installing APK on remote device ==="
@echo "Waiting for device to be ready..." && adb wait-for-device
@echo "=== Installing APK on a remote device ==="
@echo "Waiting for a device to be ready..." && adb wait-for-device
@echo "Installing package" && adb install -r $(VLC_APK)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment