OSDN Git Service

Temporarily use a separate var for including shared resources
authorAdam Lesinski <adamlesinski@google.com>
Tue, 25 Mar 2014 22:45:34 +0000 (15:45 -0700)
committerAdam Lesinski <adamlesinski@google.com>
Wed, 26 Mar 2014 00:00:35 +0000 (17:00 -0700)
Change-Id: I56636a1d7dfdaa070706f1991f80e03fe2f71069

core/base_rules.mk
core/clear_vars.mk
core/package_internal.mk

index 32e6b73..0b6e46b 100644 (file)
@@ -427,10 +427,10 @@ full_java_lib_deps += $(full_static_java_libs) $(LOCAL_CLASSPATH)
 
 # This is set by packages that are linking to other packages that export
 # shared libraries, allowing them to make use of the code in the linked apk.
-LOCAL_APK_LIBRARIES := $(strip $(LOCAL_APK_LIBRARIES))
-ifdef LOCAL_APK_LIBRARIES
+apk_libraries := $(sort $(LOCAL_APK_LIBRARIES) $(LOCAL_RES_LIBRARIES))
+ifneq ($(apk_libraries),)
   link_apk_libraries := \
-      $(foreach lib,$(LOCAL_APK_LIBRARIES), \
+      $(foreach lib,$(apk_libraries), \
         $(call intermediates-dir-for, \
               APPS,$(lib),,COMMON)/classes.jar)
 
index e9b1c53..d2a0bfd 100644 (file)
@@ -90,6 +90,7 @@ LOCAL_JNI_SHARED_LIBRARIES_ABI:=
 LOCAL_JAR_MANIFEST:=
 LOCAL_INSTRUMENTATION_FOR:=
 LOCAL_APK_LIBRARIES:=
+LOCAL_RES_LIBRARIES:=
 LOCAL_MANIFEST_INSTRUMENTATION_FOR:=
 LOCAL_AIDL_INCLUDES:=
 LOCAL_JARJAR_RULES:=
index 4819a64..6e7e75c 100644 (file)
@@ -289,12 +289,12 @@ framework_res_package_export_deps := \
 endif # LOCAL_SDK_RES_VERSION
 all_library_res_package_exports := \
     $(framework_res_package_export) \
-    $(foreach lib,$(LOCAL_APK_LIBRARIES),\
+    $(foreach lib,$(LOCAL_RES_LIBRARIES),\
         $(call intermediates-dir-for,APPS,$(lib),,COMMON)/package-export.apk)
 
 all_library_res_package_export_deps := \
     $(framework_res_package_export_deps) \
-    $(foreach lib,$(LOCAL_APK_LIBRARIES),\
+    $(foreach lib,$(LOCAL_RES_LIBRARIES),\
         $(call intermediates-dir-for,APPS,$(lib),,COMMON)/src/R.stamp)
 
 $(resource_export_package) $(R_file_stamp): $(all_library_res_package_export_deps)