From 7f8be9f69576725f85145a1e29445bb27f86375e Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Thu, 6 Jul 2017 09:45:26 +0900 Subject: [PATCH] Give TARGET_OUT_HEADERS to vendor modules Many vendor modules are using headers that are copied to $(TARGET_OUT_HEADERS)/some/path via LOCAL_COPY_HEADERS. In order to let them use the headers via #include , $(TARGET_OUT_HEADERS) is again added to the system include path. Bug: 63340459 Test: BOARD_VNDK_VERSION=current m -j gives less 'cannot find header' errors. Change-Id: I472e74533b437653c76dc416f7f4527c0e90750d --- core/binary.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/core/binary.mk b/core/binary.mk index 61a8ef6b4..6b2bf71e7 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -523,6 +523,7 @@ ifdef LOCAL_USE_VNDK my_target_global_c_includes := \ $($(LOCAL_2ND_ARCH_VAR_PREFIX)$(my_prefix)PROJECT_INCLUDES) my_target_global_c_system_includes := \ + $(TARGET_OUT_HEADERS) \ $($(LOCAL_2ND_ARCH_VAR_PREFIX)$(my_prefix)PROJECT_SYSTEM_INCLUDES) else ifdef LOCAL_SDK_VERSION my_target_global_c_includes :=