OSDN Git Service

Fixes ProGuard options.
authorYing Wang <wangying@google.com>
Tue, 8 Dec 2009 02:14:00 +0000 (18:14 -0800)
committerYing Wang <wangying@google.com>
Wed, 9 Dec 2009 22:31:22 +0000 (14:31 -0800)
1. Dedup LOCAL_JAVA_LIBRARIES.
2. Even no resource or asset for a package, we still need to set
package_expected_intermediates_COMMON, which is anyway used by ProGuard.

core/java.mk
core/package.mk

index 19b4d63..ddb8737 100644 (file)
@@ -28,6 +28,7 @@ else
     LOCAL_JAVA_LIBRARIES := core ext framework $(LOCAL_JAVA_LIBRARIES)
   endif
 endif
+LOCAL_JAVA_LIBRARIES := $(sort $(LOCAL_JAVA_LIBRARIES))
 
 LOCAL_BUILT_MODULE_STEM := $(strip $(LOCAL_BUILT_MODULE_STEM))
 ifeq ($(LOCAL_BUILT_MODULE_STEM),)
index 828f4c7..d92a8b8 100644 (file)
@@ -92,6 +92,7 @@ all_resources := $(strip \
 
 all_res_assets := $(strip $(all_assets) $(all_resources))
 
+package_expected_intermediates_COMMON := $(call local-intermediates-dir,COMMON)
 # If no assets or resources were found, clear the directory variables so
 # we don't try to build them.
 ifeq (,$(all_assets))
@@ -104,7 +105,6 @@ else
 # Make sure that R_file_stamp inherits the proper PRIVATE vars.
 # If R.stamp moves, be sure to update the framework makefile,
 # which has intimate knowledge of its location.
-package_expected_intermediates_COMMON := $(call local-intermediates-dir,COMMON)
 R_file_stamp := $(package_expected_intermediates_COMMON)/src/R.stamp
 LOCAL_INTERMEDIATE_TARGETS += $(R_file_stamp)
 endif