diff options
author | Ying Wang <wangying@google.com> | 2015-01-22 20:53:24 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-01-22 20:53:24 +0000 |
commit | 9cfaba309f62ab48edc7cb0afcdd6bbccc402b69 (patch) | |
tree | c9fba24a1108ebab9b25596f85b5ee4a570ee5d4 | |
parent | 41759234f07d349a3ec9b0d3d660eb0086c1988b (diff) | |
parent | febc6b567a909134bdc84a8e6e8c2681a07ca59b (diff) | |
download | build-9cfaba309f62ab48edc7cb0afcdd6bbccc402b69.zip build-9cfaba309f62ab48edc7cb0afcdd6bbccc402b69.tar.gz build-9cfaba309f62ab48edc7cb0afcdd6bbccc402b69.tar.bz2 |
am febc6b56: am f495c125: am 507ea383: Merge "Let apicheck check both the public API and system API." into lmp-mr1-dev
* commit 'febc6b567a909134bdc84a8e6e8c2681a07ca59b':
Let apicheck check both the public API and system API.
-rw-r--r-- | core/apicheck_msg_current.txt | 2 | ||||
-rw-r--r-- | core/tasks/apicheck.mk | 31 |
2 files changed, 21 insertions, 12 deletions
diff --git a/core/apicheck_msg_current.txt b/core/apicheck_msg_current.txt index 9abd381..440e7f8 100644 --- a/core/apicheck_msg_current.txt +++ b/core/apicheck_msg_current.txt @@ -7,7 +7,7 @@ To make these errors go away, you have two choices: errors above. 2) You can update current.txt by executing the following command: - make %UPDATE_API% + make update-api To submit the revised current.txt to the main Android repository, you will need approval. diff --git a/core/tasks/apicheck.mk b/core/tasks/apicheck.mk index fc98f5b..683a075 100644 --- a/core/tasks/apicheck.mk +++ b/core/tasks/apicheck.mk @@ -31,6 +31,11 @@ last_released_sdk_version := $(lastword $(call numerically_sort, \ )\ )) +.PHONY: check-public-api +checkapi : check-public-api + +.PHONY: update-api + # INTERNAL_PLATFORM_API_FILE is the one build by droiddoc. # Note that since INTERNAL_PLATFORM_API_FILE is the byproduct of api-stubs module, # (See frameworks/base/Android.mk) @@ -39,7 +44,7 @@ last_released_sdk_version := $(lastword $(call numerically_sort, \ # Check that the API we're building hasn't broken the last-released # SDK version. $(eval $(call check-api, \ - checkapi-last, \ + checkpublicapi-last, \ $(SRC_API_DIR)/$(last_released_sdk_version).txt, \ $(INTERNAL_PLATFORM_API_FILE), \ frameworks/base/api/removed.txt, \ @@ -48,14 +53,14 @@ $(eval $(call check-api, \ -error 7 -error 8 -error 9 -error 10 -error 11 -error 12 -error 13 -error 14 -error 15 \ -error 16 -error 17 -error 18 , \ cat $(BUILD_SYSTEM)/apicheck_msg_last.txt, \ - checkapi, \ + check-public-api, \ $(call doc-timestamp-for,api-stubs) \ )) # Check that the API we're building hasn't changed from the not-yet-released # SDK version. $(eval $(call check-api, \ - checkapi-current, \ + checkpublicapi-current, \ frameworks/base/api/current.txt, \ $(INTERNAL_PLATFORM_API_FILE), \ frameworks/base/api/removed.txt, \ @@ -64,21 +69,23 @@ $(eval $(call check-api, \ -error 7 -error 8 -error 9 -error 10 -error 11 -error 12 -error 13 -error 14 -error 15 \ -error 16 -error 17 -error 18 -error 19 -error 20 -error 21 -error 23 -error 24 \ -error 25 -error 26 -error 27, \ - sed -e 's/%UPDATE_API%/update-api/g' $(BUILD_SYSTEM)/apicheck_msg_current.txt, \ - checkapi, \ + cat $(BUILD_SYSTEM)/apicheck_msg_current.txt, \ + check-public-api, \ $(call doc-timestamp-for,api-stubs) \ )) -.PHONY: update-api -update-api: $(INTERNAL_PLATFORM_API_FILE) | $(ACP) +.PHONY: update-public-api +update-public-api: $(INTERNAL_PLATFORM_API_FILE) | $(ACP) @echo Copying current.txt $(hide) $(ACP) $(INTERNAL_PLATFORM_API_FILE) frameworks/base/api/current.txt @echo Copying removed.txt $(hide) $(ACP) $(INTERNAL_PLATFORM_REMOVED_API_FILE) frameworks/base/api/removed.txt +update-api : update-public-api #####################Check System API##################### -.PHONY: checksystemapi +.PHONY: check-system-api +checkapi : check-system-api # Check that the System API we're building hasn't broken the last-released # SDK version. @@ -92,7 +99,7 @@ $(eval $(call check-api, \ -error 7 -error 8 -error 9 -error 10 -error 11 -error 12 -error 13 -error 14 -error 15 \ -error 16 -error 17 -error 18 , \ cat $(BUILD_SYSTEM)/apicheck_msg_last.txt, \ - checksystemapi, \ + check-system-api, \ $(call doc-timestamp-for,system-api-stubs) \ )) @@ -108,12 +115,14 @@ $(eval $(call check-api, \ -error 7 -error 8 -error 9 -error 10 -error 11 -error 12 -error 13 -error 14 -error 15 \ -error 16 -error 17 -error 18 -error 19 -error 20 -error 21 -error 23 -error 24 \ -error 25 -error 26 -error 27, \ - sed -e 's/%UPDATE_API%/update-system-api/g' $(BUILD_SYSTEM)/apicheck_msg_current.txt, \ - checksystemapi, \ + cat $(BUILD_SYSTEM)/apicheck_msg_current.txt, \ + check-system-api, \ $(call doc-timestamp-for,system-api-stubs) \ )) .PHONY: update-system-api +update-api : update-system-api + update-system-api: $(INTERNAL_PLATFORM_SYSTEM_API_FILE) | $(ACP) @echo Copying system-current.txt $(hide) $(ACP) $(INTERNAL_PLATFORM_SYSTEM_API_FILE) frameworks/base/api/system-current.txt |