Merge changes I09bf331f,I5eeef3ed am: f7d1a97c93
am: aae1dca7a9
Change-Id: I652201719c34f67cc2b3cdd0ba586cf984b73684
This commit is contained in:
commit
90df2efd53
2 changed files with 23 additions and 4 deletions
|
@ -1119,8 +1119,11 @@ INTERNAL_PLATFORM_SYSTEM_PRIVATE_DEX_API_FILE := $(TARGET_OUT_COMMON_INTERMEDIAT
|
|||
endif
|
||||
|
||||
# Missing optional uses-libraries so that the platform doesn't create build rules that depend on
|
||||
# them. See setup_one_odex.mk.
|
||||
INTERNAL_PLATFORM_MISSING_USES_LIBRARIES := com.google.android.ble com.google.android.wearable
|
||||
# them.
|
||||
INTERNAL_PLATFORM_MISSING_USES_LIBRARIES := \
|
||||
com.google.android.ble \
|
||||
com.google.android.media.effects \
|
||||
com.google.android.wearable \
|
||||
|
||||
# This is the standard way to name a directory containing prebuilt target
|
||||
# objects. E.g., prebuilt/$(TARGET_PREBUILT_TAG)/libc.so
|
||||
|
|
|
@ -183,6 +183,22 @@ ifdef LOCAL_DEX_PREOPT
|
|||
endif # TARGET_2ND_ARCH
|
||||
endif # LOCAL_MODULE_CLASS
|
||||
|
||||
my_filtered_optional_uses_libraries := $(filter-out $(INTERNAL_PLATFORM_MISSING_USES_LIBRARIES), \
|
||||
$(LOCAL_OPTIONAL_USES_LIBRARIES))
|
||||
|
||||
# dexpreopt needs the paths to the dex jars of these libraries in case
|
||||
# construct_context.sh needs to pass them to dex2oat.
|
||||
my_extra_dexpreopt_libs := \
|
||||
org.apache.http.legacy \
|
||||
android.hidl.base-V1.0-java \
|
||||
android.hidl.manager-V1.0-java \
|
||||
|
||||
my_dexpreopt_libs := $(sort \
|
||||
$(LOCAL_USES_LIBRARIES) \
|
||||
$(my_filtered_optional_uses_libraries) \
|
||||
$(my_extra_dexpreopt_libs) \
|
||||
)
|
||||
|
||||
# Record dex-preopt config.
|
||||
DEXPREOPT.$(LOCAL_MODULE).DEX_PREOPT := $(LOCAL_DEX_PREOPT)
|
||||
DEXPREOPT.$(LOCAL_MODULE).MULTILIB := $(LOCAL_MULTILIB)
|
||||
|
@ -213,7 +229,7 @@ ifdef LOCAL_DEX_PREOPT
|
|||
$(call add_json_list, OptionalUsesLibraries, $(LOCAL_OPTIONAL_USES_LIBRARIES))
|
||||
$(call add_json_list, UsesLibraries, $(LOCAL_USES_LIBRARIES))
|
||||
$(call add_json_map, LibraryPaths)
|
||||
$(foreach lib,$(sort $(LOCAL_USES_LIBRARIES) $(LOCAL_OPTIONAL_USES_LIBRARIES) org.apache.http.legacy android.hidl.base-V1.0-java android.hidl.manager-V1.0-java),\
|
||||
$(foreach lib,$(my_dexpreopt_libs),\
|
||||
$(call add_json_str, $(lib), $(call intermediates-dir-for,JAVA_LIBRARIES,$(lib),,COMMON)/javalib.jar))
|
||||
$(call end_json_map)
|
||||
$(call add_json_list, Archs, $(my_dexpreopt_archs))
|
||||
|
@ -256,7 +272,7 @@ ifdef LOCAL_DEX_PREOPT
|
|||
my_dexpreopt_deps := $(my_dex_jar)
|
||||
my_dexpreopt_deps += $(if $(my_process_profile),$(LOCAL_DEX_PREOPT_PROFILE))
|
||||
my_dexpreopt_deps += \
|
||||
$(foreach lib,$(sort $(LOCAL_USES_LIBRARIES) $(LOCAL_OPTIONAL_USES_LIBRARIES) org.apache.http.legacy android.hidl.base-V1.0-java android.hidl.manager-V1.0-java),\
|
||||
$(foreach lib, $(my_dexpreopt_libs), \
|
||||
$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib),,COMMON)/javalib.jar)
|
||||
my_dexpreopt_deps += $(my_dexpreopt_images)
|
||||
my_dexpreopt_deps += $(DEXPREOPT_BOOTCLASSPATH_DEX_FILES)
|
||||
|
|
Loading…
Reference in a new issue