From c56a02d9712fd4dddfe43dad4778f4bcce38de15 Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 7 Jun 2018 16:12:58 -0700 Subject: [PATCH] Android.mk: use LOCAL_EXPORT_C_INCLUDES w/public libs dependents can then pickup the include path for webp/ automatically Change-Id: Ie768a93d0054f8ebc1720f16fbb550c0b10ef61d --- Android.mk | 8 ++++---- examples/Android.mk | 5 ----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Android.mk b/Android.mk index 6752f779..5d8c90d1 100644 --- a/Android.mk +++ b/Android.mk @@ -174,7 +174,7 @@ LOCAL_SRC_FILES := \ $(utils_dec_srcs) \ LOCAL_CFLAGS := $(WEBP_CFLAGS) -LOCAL_C_INCLUDES += $(LOCAL_PATH)/src +LOCAL_EXPORT_C_INCLUDES += $(LOCAL_PATH)/src # prefer arm over thumb mode for performance gains LOCAL_ARM_MODE := arm @@ -208,7 +208,7 @@ LOCAL_SRC_FILES := \ $(utils_enc_srcs) \ LOCAL_CFLAGS := $(WEBP_CFLAGS) -LOCAL_C_INCLUDES += $(LOCAL_PATH)/src +LOCAL_EXPORT_C_INCLUDES += $(LOCAL_PATH)/src # prefer arm over thumb mode for performance gains LOCAL_ARM_MODE := arm @@ -231,7 +231,7 @@ include $(CLEAR_VARS) LOCAL_SRC_FILES := $(demux_srcs) LOCAL_CFLAGS := $(WEBP_CFLAGS) -LOCAL_C_INCLUDES += $(LOCAL_PATH)/src +LOCAL_EXPORT_C_INCLUDES += $(LOCAL_PATH)/src # prefer arm over thumb mode for performance gains LOCAL_ARM_MODE := arm @@ -254,7 +254,7 @@ include $(CLEAR_VARS) LOCAL_SRC_FILES := $(mux_srcs) LOCAL_CFLAGS := $(WEBP_CFLAGS) -LOCAL_C_INCLUDES += $(LOCAL_PATH)/src +LOCAL_EXPORT_C_INCLUDES += $(LOCAL_PATH)/src # prefer arm over thumb mode for performance gains LOCAL_ARM_MODE := arm diff --git a/examples/Android.mk b/examples/Android.mk index 486b8b80..13fb3b46 100644 --- a/examples/Android.mk +++ b/examples/Android.mk @@ -26,7 +26,6 @@ LOCAL_SRC_FILES := \ cwebp.c \ LOCAL_CFLAGS := $(WEBP_CFLAGS) -LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src LOCAL_STATIC_LIBRARIES := example_util imageio_util imagedec webpdemux webp LOCAL_MODULE := cwebp @@ -42,7 +41,6 @@ LOCAL_SRC_FILES := \ dwebp.c \ LOCAL_CFLAGS := $(WEBP_CFLAGS) -LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src LOCAL_STATIC_LIBRARIES := example_util imagedec imageenc webpdemux webp LOCAL_MODULE := dwebp @@ -57,7 +55,6 @@ LOCAL_SRC_FILES := \ webpmux.c \ LOCAL_CFLAGS := $(WEBP_CFLAGS) -LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src LOCAL_STATIC_LIBRARIES := example_util imageio_util webpmux webp LOCAL_MODULE := webpmux_example @@ -73,7 +70,6 @@ LOCAL_SRC_FILES := \ img2webp.c \ LOCAL_CFLAGS := $(WEBP_CFLAGS) -LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src LOCAL_STATIC_LIBRARIES := example_util imageio_util imagedec webpmux webpdemux \ webp @@ -90,7 +86,6 @@ LOCAL_SRC_FILES := \ webpinfo.c \ LOCAL_CFLAGS := $(WEBP_CFLAGS) -LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src LOCAL_STATIC_LIBRARIES := example_util imageio_util webp LOCAL_MODULE := webpinfo_example