Merge "Access ALL_MODULES subvars with my_register_name"
This commit is contained in:
commit
ca6e50fa2c
|
@ -40,7 +40,7 @@ $(call symlink-file,$(my_module_path)/$(my_src_binary_name),$(my_src_binary_name
|
|||
|
||||
# We need this so that the installed files could be picked up based on the
|
||||
# local module name
|
||||
ALL_MODULES.$(LOCAL_MODULE).INSTALLED += $(my_symlink)
|
||||
ALL_MODULES.$(my_register_name).INSTALLED += $(my_symlink)
|
||||
|
||||
# Create the symlink when you run mm/mmm or "make <module_name>"
|
||||
$(LOCAL_MODULE) : $(my_symlink)
|
||||
|
|
|
@ -59,7 +59,7 @@ else ifneq ($(my_jni_shared_libraries),) # not my_embed_jni
|
|||
$($(my_2nd_arch_prefix)TARGET_OUT$(partition_tag)_SHARED_LIBRARIES))
|
||||
my_installed_library := $(addprefix $(my_shared_library_path)/, $(my_jni_filenames))
|
||||
|
||||
ALL_MODULES.$(LOCAL_MODULE).INSTALLED += $(my_installed_library)
|
||||
ALL_MODULES.$(my_register_name).INSTALLED += $(my_installed_library)
|
||||
|
||||
# Create symlink in the app specific lib path
|
||||
# Skip creating this symlink when running the second part of a target sanitization build.
|
||||
|
@ -72,7 +72,7 @@ else ifneq ($(my_jni_shared_libraries),) # not my_embed_jni
|
|||
$(my_symlink_target_dir)/$(lib), \
|
||||
$(my_app_lib_path)/$(lib)) \
|
||||
$(eval $$(LOCAL_INSTALLED_MODULE) : $$(my_app_lib_path)/$$(lib)) \
|
||||
$(eval ALL_MODULES.$$(LOCAL_MODULE).INSTALLED += $$(my_app_lib_path)/$$(lib)))
|
||||
$(eval ALL_MODULES.$(my_register_name).INSTALLED += $$(my_app_lib_path)/$$(lib)))
|
||||
endif
|
||||
|
||||
# Clear jni_shared_libraries to not embed it into the apk.
|
||||
|
@ -100,7 +100,7 @@ ifdef my_prebuilt_jni_libs
|
|||
my_installed_library := $(addprefix $(my_app_lib_path)/, $(notdir $(my_prebuilt_jni_libs)))
|
||||
$(LOCAL_INSTALLED_MODULE) : $(my_installed_library)
|
||||
|
||||
ALL_MODULES.$(LOCAL_MODULE).INSTALLED += $(my_installed_library)
|
||||
ALL_MODULES.$(my_register_name).INSTALLED += $(my_installed_library)
|
||||
endif # my_embed_jni
|
||||
endif # inner my_prebuilt_jni_libs
|
||||
endif # outer my_prebuilt_jni_libs
|
||||
|
|
|
@ -207,7 +207,7 @@ ifdef full_classes_jar
|
|||
# allowing it to use the classes.jar as the "stubs" that would be use to link
|
||||
# against, for the cases where someone needs the jar to link against.
|
||||
$(eval $(call copy-one-file,$(full_classes_jar),$(full_classes_stubs_jar)))
|
||||
ALL_MODULES.$(LOCAL_MODULE).STUBS := $(full_classes_stubs_jar)
|
||||
ALL_MODULES.$(my_register_name).STUBS := $(full_classes_stubs_jar)
|
||||
|
||||
# The layers file allows you to enforce a layering between java packages.
|
||||
# Run build/make/tools/java-layers.py for more details.
|
||||
|
|
|
@ -629,7 +629,7 @@ $(my_bundle_module): $(MERGE_ZIPS) $(SOONG_ZIP) $(ZIP2ZIP)
|
|||
endif # full_classes_jar
|
||||
$(MERGE_ZIPS) $@ $@.parts/*.zip
|
||||
rm -rf $@.parts
|
||||
ALL_MODULES.$(LOCAL_MODULE).BUNDLE := $(my_bundle_module)
|
||||
ALL_MODULES.$(my_register_name).BUNDLE := $(my_bundle_module)
|
||||
|
||||
ifdef TARGET_BUILD_APPS
|
||||
ifdef LOCAL_DPI_VARIANTS
|
||||
|
|
|
@ -167,7 +167,7 @@ endif
|
|||
PACKAGES.$(LOCAL_MODULE).PARTITION := $(actual_partition_tag)
|
||||
|
||||
ifdef LOCAL_SOONG_BUNDLE
|
||||
ALL_MODULES.$(LOCAL_MODULE).BUNDLE := $(LOCAL_SOONG_BUNDLE)
|
||||
ALL_MODULES.$(my_register_name).BUNDLE := $(LOCAL_SOONG_BUNDLE)
|
||||
endif
|
||||
|
||||
ifndef LOCAL_IS_HOST_MODULE
|
||||
|
|
|
@ -133,7 +133,7 @@ ALL_MODULES.$(my_register_name).CLASSES_JAR := $(full_classes_jar)
|
|||
$(my_register_name): $(my_installed)
|
||||
|
||||
ifdef LOCAL_SOONG_AAR
|
||||
ALL_MODULES.$(LOCAL_MODULE).AAR := $(LOCAL_SOONG_AAR)
|
||||
ALL_MODULES.$(my_register_name).AAR := $(LOCAL_SOONG_AAR)
|
||||
endif
|
||||
|
||||
javac-check : $(full_classes_jar)
|
||||
|
|
|
@ -209,7 +209,7 @@ $(built_aar) : $(aar_classes_jar) $(full_android_manifest) $(intermediates.COMMO
|
|||
$(call jar-args-sorted-files-in-directory,$(dir $@)aar)
|
||||
|
||||
# Register the aar file.
|
||||
ALL_MODULES.$(LOCAL_MODULE).AAR := $(built_aar)
|
||||
ALL_MODULES.$(my_register_name).AAR := $(built_aar)
|
||||
endif # need_compile_res
|
||||
|
||||
# Reset internal variables.
|
||||
|
|
Loading…
Reference in New Issue