Rename the Default* constants in java/config.
These values are used in two out of the many possible sdk_version configurations, and therefore weren't really defaults in any meaningful sense. Giving them more descriptive names makes the code easier to follow. Bug: 157640067 Test: m java Change-Id: I67767b2be72ed3d8cc879280036850096eb65415
This commit is contained in:
@@ -393,7 +393,7 @@ endif
|
|||||||
else
|
else
|
||||||
# For platform build, we can't just raise to the "current" SDK,
|
# For platform build, we can't just raise to the "current" SDK,
|
||||||
# that would break apps that use APIs removed from the current SDK.
|
# that would break apps that use APIs removed from the current SDK.
|
||||||
my_proguard_sdk_raise := $(call java-lib-header-files,$(TARGET_DEFAULT_BOOTCLASSPATH_LIBRARIES) $(TARGET_DEFAULT_JAVA_LIBRARIES))
|
my_proguard_sdk_raise := $(call java-lib-header-files,$(LEGACY_CORE_PLATFORM_BOOTCLASSPATH_LIBRARIES) $(FRAMEWORK_LIBRARIES))
|
||||||
endif
|
endif
|
||||||
ifdef BOARD_SYSTEMSDK_VERSIONS
|
ifdef BOARD_SYSTEMSDK_VERSIONS
|
||||||
ifneq (,$(filter true,$(LOCAL_VENDOR_MODULE) $(LOCAL_ODM_MODULE) $(LOCAL_PROPRIETARY_MODULE)))
|
ifneq (,$(filter true,$(LOCAL_VENDOR_MODULE) $(LOCAL_ODM_MODULE) $(LOCAL_PROPRIETARY_MODULE)))
|
||||||
|
@@ -265,11 +265,11 @@ ifndef LOCAL_IS_HOST_MODULE
|
|||||||
# Most users of LOCAL_NO_STANDARD_LIBRARIES really mean no framework libs,
|
# Most users of LOCAL_NO_STANDARD_LIBRARIES really mean no framework libs,
|
||||||
# and manually add back the core libs. The ones that don't are in soong
|
# and manually add back the core libs. The ones that don't are in soong
|
||||||
# now, so just always assume that they want the default system modules
|
# now, so just always assume that they want the default system modules
|
||||||
my_system_modules := $(DEFAULT_SYSTEM_MODULES)
|
my_system_modules := $(LEGACY_CORE_PLATFORM_SYSTEM_MODULES)
|
||||||
else # LOCAL_NO_STANDARD_LIBRARIES
|
else # LOCAL_NO_STANDARD_LIBRARIES
|
||||||
full_java_bootclasspath_libs := $(call java-lib-header-files,$(TARGET_DEFAULT_BOOTCLASSPATH_LIBRARIES) $(TARGET_DEFAULT_JAVA_LIBRARIES))
|
full_java_bootclasspath_libs := $(call java-lib-header-files,$(LEGACY_CORE_PLATFORM_BOOTCLASSPATH_LIBRARIES) $(FRAMEWORK_LIBRARIES))
|
||||||
LOCAL_JAVA_LIBRARIES := $(filter-out $(TARGET_DEFAULT_BOOTCLASSPATH_LIBRARIES) $(TARGET_DEFAULT_JAVA_LIBRARIES),$(LOCAL_JAVA_LIBRARIES))
|
LOCAL_JAVA_LIBRARIES := $(filter-out $(LEGACY_CORE_PLATFORM_BOOTCLASSPATH_LIBRARIES) $(FRAMEWORK_LIBRARIES),$(LOCAL_JAVA_LIBRARIES))
|
||||||
my_system_modules := $(DEFAULT_SYSTEM_MODULES)
|
my_system_modules := $(LEGACY_CORE_PLATFORM_SYSTEM_MODULES)
|
||||||
endif # LOCAL_NO_STANDARD_LIBRARIES
|
endif # LOCAL_NO_STANDARD_LIBRARIES
|
||||||
|
|
||||||
ifneq (,$(TARGET_BUILD_APPS_USE_PREBUILT_SDK))
|
ifneq (,$(TARGET_BUILD_APPS_USE_PREBUILT_SDK))
|
||||||
@@ -352,10 +352,10 @@ else # LOCAL_IS_HOST_MODULE
|
|||||||
ifeq ($(LOCAL_NO_STANDARD_LIBRARIES),true)
|
ifeq ($(LOCAL_NO_STANDARD_LIBRARIES),true)
|
||||||
empty_bootclasspath := ""
|
empty_bootclasspath := ""
|
||||||
else
|
else
|
||||||
full_java_bootclasspath_libs := $(call java-lib-header-files,$(addsuffix -hostdex,$(TARGET_DEFAULT_BOOTCLASSPATH_LIBRARIES)),true)
|
full_java_bootclasspath_libs := $(call java-lib-header-files,$(addsuffix -hostdex,$(LEGACY_CORE_PLATFORM_BOOTCLASSPATH_LIBRARIES)),true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
my_system_modules := $(DEFAULT_SYSTEM_MODULES)
|
my_system_modules := $(LEGACY_CORE_PLATFORM_SYSTEM_MODULES)
|
||||||
full_shared_java_libs := $(call java-lib-files,$(LOCAL_JAVA_LIBRARIES),true)
|
full_shared_java_libs := $(call java-lib-files,$(LOCAL_JAVA_LIBRARIES),true)
|
||||||
full_shared_java_header_libs := $(call java-lib-header-files,$(LOCAL_JAVA_LIBRARIES),true)
|
full_shared_java_header_libs := $(call java-lib-header-files,$(LOCAL_JAVA_LIBRARIES),true)
|
||||||
else # !USE_CORE_LIB_BOOTCLASSPATH
|
else # !USE_CORE_LIB_BOOTCLASSPATH
|
||||||
|
Reference in New Issue
Block a user