From 0f4dfc4e9d4c2cbae69442e415639476c73478b2 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 2 Feb 2011 13:57:01 +0000 Subject: [PATCH] Android/Java: Disable implicit compilation of dependecies to make the life easier for make. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29187 a1c6a512-1295-4272-9138-f99709370657 --- android/android.make | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/android/android.make b/android/android.make index 53d5d46bbf..ab59888b79 100644 --- a/android/android.make +++ b/android/android.make @@ -61,6 +61,8 @@ RES := $(wildcard $(ANDROID_DIR)/res/*/*) CLEANOBJS += bin gen libs data +JAVAC_OPTS += -implicit:none -classpath $(ANDROID_PLATFORM)/android.jar:$(BUILDDIR)/bin + $(R_JAVA) $(AP_): $(MANIFEST) $(DIRS) $(RES) $(call PRINTS,AAPT $(subst $(BUILDDIR)/,,$@))$(AAPT) package -f -m \ -J $(BUILDDIR)/gen -M $(MANIFEST) -S $(ANDROID_DIR)/res \ @@ -68,13 +70,13 @@ $(R_JAVA) $(AP_): $(MANIFEST) $(DIRS) $(RES) $(BUILDDIR)/bin/$(PACKAGE_PATH)/R.class: $(R_JAVA) $(call PRINTS,JAVAC $(subst $(ROOTDIR)/,,$<))javac -d $(BUILDDIR)/bin \ - -classpath $(ANDROID_PLATFORM)/android.jar:$(BUILDDIR)/bin \ - -sourcepath $(ANDROID_DIR)/gen:$(ANDROID_DIR)/src $< + $(JAVAC_OPTS) \ + -sourcepath $(ANDROID_DIR)/gen $< $(BUILDDIR)/bin/$(PACKAGE_PATH)/%.class: $(ANDROID_DIR)/src/$(PACKAGE_PATH)/%.java $(BUILDDIR)/bin/$(PACKAGE_PATH)/R.class $(call PRINTS,JAVAC $(subst $(ROOTDIR)/,,$<))javac -d $(BUILDDIR)/bin \ - -classpath $(ANDROID_PLATFORM)/android.jar:$(BUILDDIR)/bin \ - -sourcepath $(ANDROID_DIR)/gen:$(ANDROID_DIR)/src $< + $(JAVAC_OPTS) \ + -sourcepath $(ANDROID_DIR)/src $< $(DEX): $(R_OBJ) $(JAVA_OBJ) $(call PRINTS,DX $(subst $(BUILDDIR)/,,$@))$(DX) --dex --output=$@ $(BUILDDIR)/bin