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

Android/Makefile: rebuild libvlcjni when the sources change

parent ae2e69c6
# Sources and objects # Sources and objects
JAVA_SOURCES=vlc-android/src/vlc/android/*.java 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 VLC_APK=vlc-android/bin/VLC-debug.apk
APK_MK=vlc-android/jni/ APK_MK=vlc-android/jni/
LIBVLCJNI=vlc-android/libs/armeabi/ LIBVLCJNI=vlc-android/libs/armeabi/
...@@ -53,7 +54,7 @@ $(APK_MK): ...@@ -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 "\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) printf "include \$$(BUILD_SHARED_LIBRARY)\n" >> $(APK_MK)
@echo "=== Building libvlcjni ===" @echo "=== Building libvlcjni ==="
@cd vlc-android/; \ @cd vlc-android/; \
$(ANDROID_NDK)/ndk-build $(ANDROID_NDK)/ndk-build
...@@ -84,7 +85,7 @@ distclean: clean ...@@ -84,7 +85,7 @@ distclean: clean
rm -f vlc-android/ rm -f vlc-android/
install: install:
@echo "=== Installing APK on remote device ===" @echo "=== Installing APK on a remote device ==="
@echo "Waiting for device to be ready..." && adb wait-for-device @echo "Waiting for a device to be ready..." && adb wait-for-device
@echo "Installing package" && adb install -r $(VLC_APK) @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