Enforce specifying sdk/private for apps.
All apps in master comply with this now, but new offenders are being added daily. This will ensure compliance going forward. Test: vendor/google/build/build_test.bash --dist Bug: 73535841 Exempt-From-Owner-Approval: reviewed in master/aosp, but this blocks aosp Change-Id: Id3fbb502d26d91b64480fec74e241ba77fa0faff Merged-In: Id3fbb502d26d91b64480fec74e241ba77fa0faff
This commit is contained in:
parent
c29ba5a800
commit
49b67af95e
1 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,11 @@
|
|||
# set correctly.
|
||||
# Should be included by java targets that allow specifying LOCAL_SDK_VERSION.
|
||||
|
||||
|
||||
ifeq (,$(JAVA_SDK_ENFORCEMENT_ERROR))
|
||||
JAVA_SDK_ENFORCEMENT_ERROR := APPS
|
||||
endif
|
||||
|
||||
ifeq ($(LOCAL_SDK_VERSION)$(LOCAL_PRIVATE_PLATFORM_APIS),)
|
||||
ifneq ($(JAVA_SDK_ENFORCEMENT_WARNING),)
|
||||
$(warning Java modules must specify LOCAL_SDK_VERSION or LOCAL_PRIVATE_PLATFORM_APIS, but $(LOCAL_MODULE) specifies neither.)
|
||||
|
|
Loading…
Reference in a new issue