summaryrefslogtreecommitdiff
Diffstat
-rwxr-xr-xAndroid.mk12
-rwxr-xr-xaml_screen.cpp90
-rwxr-xr-xv4l2_vdin.cpp463
-rwxr-xr-xv4l2_vdin.h83
4 files changed, 603 insertions, 45 deletions
diff --git a/Android.mk b/Android.mk
index 578e967..d59d896 100755
--- a/Android.mk
+++ b/Android.mk
@@ -10,7 +10,17 @@ include $(CLEAR_VARS)
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_SRC_FILES := aml_screen.cpp v4l2_vdin.cpp
-LOCAL_SHARED_LIBRARIES:= libutils liblog
+ifneq (,$(wildcard hardware/amlogic/gralloc))
+ GRALLOC_DIR := hardware/amlogic/gralloc
+else
+ GRALLOC_DIR := hardware/libhardware/modules/gralloc
+endif
+
+LOCAL_C_INCLUDES += frameworks/native/include/utils \
+ frameworks/native/include/android \
+ $(GRALLOC_DIR)
+
+LOCAL_SHARED_LIBRARIES:= libutils liblog libui
LOCAL_MODULE := screen_source.amlogic
LOCAL_CFLAGS:= -DLOG_TAG=\"screen_source\"