OSDN Git Service

Don't remove R class to fix the build.
authorYing Wang <wangying@google.com>
Thu, 15 Dec 2011 23:10:04 +0000 (15:10 -0800)
committerYing Wang <wangying@google.com>
Thu, 15 Dec 2011 23:10:04 +0000 (15:10 -0800)
Unfortunately there is R.java checked in the source tree that gets built
into static library.
So we have to find a way to delete classes from R.java generated by the
build system on the fly.

Change-Id: I2d82d28234cecbf6dd5b02b2dd4f7dbd47e3b626

core/definitions.mk

index f16b4c9..60cd063 100644 (file)
@@ -1424,7 +1424,7 @@ define unzip-jar-files
     unzip -qo $$f -d $(2); \
     (cd $(2) && rm -rf META-INF); \
   done
-  $(hide) find $(2) -name 'R.class' -o -name 'R$$*.class' -o -name 'Manifest.class' -o -name 'Manifest$$*.class' | xargs rm -rf
+  $(hide) find $(2) -name 'R.class' -o -name 'R$$*.class' -o -name 'Manifest.class' -o -name 'Manifest$$*.class' | xargs rm -rf
 endef
 
 # Common definition to invoke javac on the host and target.