Merge "Change the naming policy of system_$(VER)"

This commit is contained in:
Treehugger Robot
2018-02-07 06:26:05 +00:00
committed by Gerrit Code Review
2 changed files with 11 additions and 29 deletions

View File

@@ -75,22 +75,12 @@ ifneq ($(LOCAL_SDK_VERSION),)
LOCAL_JAVA_LIBRARIES := core.current.stubs $(LOCAL_JAVA_LIBRARIES) LOCAL_JAVA_LIBRARIES := core.current.stubs $(LOCAL_JAVA_LIBRARIES)
$(full_target): PRIVATE_BOOTCLASSPATH := $(call java-lib-files, core.current.stubs) $(full_target): PRIVATE_BOOTCLASSPATH := $(call java-lib-files, core.current.stubs)
else else
ifneq (,$(call has-system-sdk-version,$(LOCAL_SDK_VERSION))) # core_<ver> is subset of <ver>. Instead of defining a prebuilt lib for core_<ver>,
ifeq (,$(TARGET_BUILD_APPS)) # use the stub for <ver> when building for apps.
LOCAL_JAVA_LIBRARIES := system_sdk_v$(call get-numeric-sdk-version,$(LOCAL_SDK_VERSION)) $(LOCAL_JAVA_LIBRARIES) _version := $(patsubst core_%,%,$(LOCAL_SDK_VERSION))
$(full_target): PRIVATE_BOOTCLASSPATH := $(call java-lib-files, system_sdk_v$(call get-numeric-sdk-version,$(LOCAL_SDK_VERSION))) LOCAL_JAVA_LIBRARIES := sdk_v$(_version) $(LOCAL_JAVA_LIBRARIES)
else $(full_target): PRIVATE_BOOTCLASSPATH := $(call java-lib-files, sdk_v$(_version))
LOCAL_JAVA_LIBRARIES := sdk_v$(LOCAL_SDK_VERSION) $(LOCAL_JAVA_LIBRARIES) _version :=
$(full_target): PRIVATE_BOOTCLASSPATH := $(call java-lib-files, sdk_v$(LOCAL_SDK_VERSION))
endif
else
# core_<ver> is subset of <ver>. Instead of defining a prebuilt lib for core_<ver>,
# use the stub for <ver> when building for apps.
_version := $(patsubst core_%,%,$(LOCAL_SDK_VERSION))
LOCAL_JAVA_LIBRARIES := sdk_v$(_version) $(LOCAL_JAVA_LIBRARIES)
$(full_target): PRIVATE_BOOTCLASSPATH := $(call java-lib-files, sdk_v$(_version))
_version :=
endif
endif endif
else else
LOCAL_JAVA_LIBRARIES := core-oj core-libart ext framework $(LOCAL_JAVA_LIBRARIES) LOCAL_JAVA_LIBRARIES := core-oj core-libart ext framework $(LOCAL_JAVA_LIBRARIES)

View File

@@ -261,19 +261,11 @@ ifndef LOCAL_IS_HOST_MODULE
else ifeq ($(LOCAL_SDK_VERSION)$(TARGET_BUILD_APPS),core_current) else ifeq ($(LOCAL_SDK_VERSION)$(TARGET_BUILD_APPS),core_current)
full_java_bootclasspath_libs := $(call java-lib-header-files,core.current.stubs) full_java_bootclasspath_libs := $(call java-lib-header-files,core.current.stubs)
else else
ifneq (,$(call has-system-sdk-version,$(LOCAL_SDK_VERSION))) # core_<ver> is subset of <ver>. Instead of defining a prebuilt lib for core_<ver>,
ifeq (,$(TARGET_BUILD_APPS)) # use the stub for <ver> when building for apps.
full_java_bootclasspath_libs := $(call java-lib-header-files,system_sdk_v$(call get-numeric-sdk-version,$(LOCAL_SDK_VERSION))) _version := $(patsubst core_%,%,$(LOCAL_SDK_VERSION))
else full_java_bootclasspath_libs := $(call java-lib-header-files,sdk_v$(_version))
full_java_bootclasspath_libs := $(call java-lib-header-files,sdk_v$(LOCAL_SDK_VERSION)) _version :=
endif
else
# core_<ver> is subset of <ver>. Instead of defining a prebuilt lib for core_<ver>,
# use the stub for <ver> when building for apps.
_version := $(patsubst core_%,%,$(LOCAL_SDK_VERSION))
full_java_bootclasspath_libs := $(call java-lib-header-files,sdk_v$(_version))
_version :=
endif
endif # current, system_current, system_${VER}, test_current or core_current endif # current, system_current, system_${VER}, test_current or core_current
endif # LOCAL_SDK_VERSION endif # LOCAL_SDK_VERSION