diff --git a/libgralloc/Android.mk b/libgralloc/Android.mk index e893259..57010aa 100644 --- a/libgralloc/Android.mk +++ b/libgralloc/Android.mk @@ -52,6 +52,10 @@ endif ifeq ($(TARGET_GRALLOC_USES_ASHMEM),true) LOCAL_CFLAGS += -DUSE_ASHMEM endif +ifeq ($(TARGET_USES_POST_PROCESSING),true) +LOCAL_CFLAGS += -DUSES_POST_PROCESSING +LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/pp/inc +endif include $(BUILD_SHARED_LIBRARY) diff --git a/libhwcomposer/Android.mk b/libhwcomposer/Android.mk index e20a853..f9e34db 100644 --- a/libhwcomposer/Android.mk +++ b/libhwcomposer/Android.mk @@ -34,5 +34,9 @@ endif ifeq ($(TARGET_USE_HDMI_AS_PRIMARY),true) LOCAL_CFLAGS += -DHDMI_AS_PRIMARY endif +ifeq ($(TARGET_USES_POST_PROCESSING),true) +LOCAL_CFLAGS += -DUSES_POST_PROCESSING +LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/pp/inc +endif LOCAL_MODULE_TAGS := optional include $(BUILD_SHARED_LIBRARY)