Make memtrack build with the VNDK.

When the vndk is enabled (BOARD_VNDK_VERSION=current),
vendor libraries must only link against vendor variants
in the build system. This also means that they receive
restricted sets of headers and that automatic global
headers are restricted.

Test: build memtrack with BOARD_VNDK_VERSION=current
Bug: 69526027
Change-Id: Ie3cb9ffb72931fbb0cc816f5158a649e09f7bb43
This commit is contained in:
Steven Moreland 2018-01-25 14:15:40 -08:00
parent 0a489f6722
commit 8be2ccb1ea
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_PROPRIETARY_MODULE := true
LOCAL_C_INCLUDES += hardware/libhardware/include
LOCAL_HEADER_LIBRARIES := libhardware_headers
LOCAL_CFLAGS := -Wconversion -Wall -Werror -Wno-sign-conversion
LOCAL_CLANG := true
LOCAL_SHARED_LIBRARIES := liblog

View File

@ -17,7 +17,7 @@
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <utils/Log.h>
#include <log/log.h>
#include <hardware/memtrack.h>