Merge "Remove wildcards of absolute paths" am: dc5ec0bfd8 am: f08f1ad8f9 am: 272c85aa6c am: 178c7607fd am: c1e2642a1a

Original change: https://android-review.googlesource.com/c/platform/build/+/2584263

Change-Id: I7aec486ccfd61961285d4a6925d526d6f6abade8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2023-05-12 02:51:39 +00:00
committed by Automerger Merge Worker

View File

@@ -84,13 +84,14 @@ endif
ifndef LOCAL_DEX_PREOPT_GENERATE_PROFILE
# If LOCAL_DEX_PREOPT_GENERATE_PROFILE is not defined, default it based on the existence of the
# profile class listing. TODO: Use product specific directory here.
my_classes_directory := $(PRODUCT_DEX_PREOPT_PROFILE_DIR)
LOCAL_DEX_PREOPT_PROFILE := $(my_classes_directory)/$(LOCAL_MODULE).prof
ifdef PRODUCT_DEX_PREOPT_PROFILE_DIR
LOCAL_DEX_PREOPT_PROFILE := $(PRODUCT_DEX_PREOPT_PROFILE_DIR)/$(LOCAL_MODULE).prof
ifneq (,$(wildcard $(LOCAL_DEX_PREOPT_PROFILE)))
my_process_profile := true
my_profile_is_text_listing :=
endif
endif
else
my_process_profile := $(LOCAL_DEX_PREOPT_GENERATE_PROFILE)
my_profile_is_text_listing := true