From b43a52d79d3b9be90b21e080d2295df5d45b511d Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Thu, 13 Jul 2017 15:51:07 +0900 Subject: [PATCH] Don't allow JNI headers for vendors This is already blocked in Soong. Do the same for make. Bug: 63553556 Test: BOARD_VNDK_VERSION=current m -j libSampleAuthJNI cannot be built Change-Id: I04a89b3f9de903a6b0384f13d5a80886344c14b4 --- core/binary.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/binary.mk b/core/binary.mk index 502f79e20..026fdabd2 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -1468,7 +1468,8 @@ my_tracked_src_files := my_c_includes += $(TOPDIR)$(LOCAL_PATH) $(intermediates) $(generated_sources_dir) -ifndef LOCAL_SDK_VERSION +# The platform JNI header is for platform modules only. +ifeq ($(LOCAL_SDK_VERSION)$(LOCAL_USE_VNDK),) my_c_includes += $(JNI_H_INCLUDE) endif