androidmedia: Disable plugin if android-sdk isn't found and dynamically search for platform version

This commit is contained in:
Youness Alaoui 2012-10-23 10:12:52 -04:00 committed by Nicolas Dufresne
parent e78143f839
commit aa390e1be4

View file

@ -37,9 +37,10 @@ CLEANFILES = gstahccallback.c
if HAVE_ANDROID_SDK
gstahccallback.c: $(JAVA_SOURCE)
@echo " JAVAC $(JAVA_SOURCE)"
@$(JAVAC) -target 1.6 -source 1.6 -nowarn -classpath $(ANDROID_SDK_DIR)/platforms/android-14/android.jar $(JAVA_SOURCE)
@$(JAVAC) -target 1.6 -source 1.6 -nowarn \
-classpath $(ANDROID_SDK_DIR)/platforms/android-$(ANDROID_PLATFORM)/android.jar $(JAVA_SOURCE)
@echo " DEX $(JAVA_SOURCE:.java=.class)"
@$(ANDROID_SDK_DIR)/platform-tools/dx --dex --output GstAhcCallback.jar $(JAVA_SOURCE:.java=.class)
@$(DX) --dex --output GstAhcCallback.jar $(JAVA_SOURCE:.java=.class)
@echo " GEN $@"
@echo "#include \"gstahccallback.h\"" > $@
@echo "" >> $@