Move apicheck.mk off SRC_API_DIR.
This directory is getting deleted. Also remove the variable, the other uses are being removed in this cl: I1d4e87e7840e979b83779a2aefe176e7c1ed1527 Bug: 77525052 Test: Verified value of last_released_sdk_version variable. Change-Id: I69b10ad83a8c06d337606df91e8d3b604adfef70
This commit is contained in:
parent
2944c11b1f
commit
5aded2ff26
2 changed files with 10 additions and 8 deletions
|
@ -92,7 +92,6 @@ MAKECMDGOALS := $(strip $(filter-out dist,$(MAKECMDGOALS)))
|
|||
UNAME := $(shell uname -sm)
|
||||
|
||||
SRC_TARGET_DIR := $(TOPDIR)build/target
|
||||
SRC_API_DIR := $(TOPDIR)prebuilts/sdk/api
|
||||
SRC_SYSTEM_API_DIR := $(TOPDIR)prebuilts/sdk/system-api
|
||||
SRC_TEST_API_DIR := $(TOPDIR)prebuilts/sdk/test-api
|
||||
|
||||
|
|
|
@ -25,9 +25,12 @@ ifeq (,$(filter true, $(WITHOUT_CHECK_API) $(TARGET_BUILD_PDK)))
|
|||
# Run the checkapi rules by default.
|
||||
droidcore: checkapi
|
||||
|
||||
last_released_sdk_version := $(lastword $(call numerically_sort, \
|
||||
$(filter-out current, \
|
||||
$(patsubst $(SRC_API_DIR)/%.txt,%, $(wildcard $(SRC_API_DIR)/*.txt)) \
|
||||
last_released_sdk_version := \
|
||||
$(lastword $(call numerically_sort, \
|
||||
$(patsubst \
|
||||
$(HISTORICAL_SDK_VERSIONS_ROOT)/%/public/api/android.txt,\
|
||||
%,\
|
||||
$(wildcard $(HISTORICAL_SDK_VERSIONS_ROOT)/*/public/api/android.txt)\
|
||||
) \
|
||||
))
|
||||
|
||||
|
@ -45,7 +48,7 @@ checkapi : check-public-api
|
|||
# SDK version.
|
||||
$(eval $(call check-api, \
|
||||
checkpublicapi-last, \
|
||||
$(SRC_API_DIR)/$(last_released_sdk_version).txt, \
|
||||
$(HISTORICAL_SDK_VERSIONS_ROOT)/$(last_released_sdk_version)/public/api/android.txt, \
|
||||
$(INTERNAL_PLATFORM_API_FILE), \
|
||||
frameworks/base/api/removed.txt, \
|
||||
$(INTERNAL_PLATFORM_REMOVED_API_FILE), \
|
||||
|
@ -91,7 +94,7 @@ checkapi : check-system-api
|
|||
# SDK version.
|
||||
$(eval $(call check-api, \
|
||||
checksystemapi-last, \
|
||||
$(SRC_SYSTEM_API_DIR)/$(last_released_sdk_version).txt, \
|
||||
$(HISTORICAL_SDK_VERSIONS_ROOT)/$(last_released_sdk_version)/system/api/android.txt, \
|
||||
$(INTERNAL_PLATFORM_SYSTEM_API_FILE), \
|
||||
frameworks/base/api/system-removed.txt, \
|
||||
$(INTERNAL_PLATFORM_SYSTEM_REMOVED_API_FILE), \
|
||||
|
|
Loading…
Reference in a new issue