Use exported headers instead of copying
Use LOCAL_C_EXPORT_INCLUDE_DIRS to share exported headers instead of copying them to $OUT/obj/include. Fixes make warnings on multiple rules to copy the headers from the shared and static versions of the library. Change-Id: Ide68ed604a62c9eb693dc4bca892f1781622ff95
This commit is contained in:
parent
1358e2869c
commit
7f68acb135
|
@ -6,9 +6,9 @@ include $(CLEAR_VARS)
|
|||
LOCAL_MODULE := libpackagelistparser
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_SRC_FILES := packagelistparser.c
|
||||
LOCAL_COPY_HEADERS_TO := packagelistparser
|
||||
LOCAL_COPY_HEADERS := packagelistparser.h
|
||||
LOCAL_SHARED_LIBRARIES := liblog
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
||||
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
||||
|
||||
LOCAL_CLANG := true
|
||||
LOCAL_SANITIZE := integer
|
||||
|
@ -22,9 +22,9 @@ include $(CLEAR_VARS)
|
|||
LOCAL_MODULE := libpackagelistparser
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_SRC_FILES := packagelistparser.c
|
||||
LOCAL_COPY_HEADERS_TO := packagelistparser
|
||||
LOCAL_COPY_HEADERS := packagelistparser.h
|
||||
LOCAL_STATIC_LIBRARIES := liblog
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
||||
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
||||
|
||||
LOCAL_CLANG := true
|
||||
LOCAL_SANITIZE := integer
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#define LOG_TAG "packagelistparser"
|
||||
#include <utils/Log.h>
|
||||
|
||||
#include "packagelistparser.h"
|
||||
#include <packagelistparser/packagelistparser.h>
|
||||
|
||||
#define CLOGE(fmt, ...) \
|
||||
do {\
|
||||
|
|
Loading…
Reference in New Issue