android_system_core/packagelistparser/Android.mk
Colin Cross 7f68acb135 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
2015-11-04 17:05:24 -08:00

32 lines
757 B
Makefile

LOCAL_PATH:= $(call my-dir)
#########################
include $(CLEAR_VARS)
LOCAL_MODULE := libpackagelistparser
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := packagelistparser.c
LOCAL_SHARED_LIBRARIES := liblog
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
LOCAL_CLANG := true
LOCAL_SANITIZE := integer
include $(BUILD_SHARED_LIBRARY)
#########################
include $(CLEAR_VARS)
LOCAL_MODULE := libpackagelistparser
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := packagelistparser.c
LOCAL_STATIC_LIBRARIES := liblog
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
LOCAL_CLANG := true
LOCAL_SANITIZE := integer
include $(BUILD_STATIC_LIBRARY)