summaryrefslogtreecommitdiff
authorKasin Lee <kasin.li@amlogic.com>2013-08-28 05:17:19 (GMT)
committer Lawrence Mok <lawrence.mok@amlogic.com>2013-08-28 07:17:39 (GMT)
commitdb07ee177a82544ac94a115389f3a7d459449b1f (patch)
treeb52202c6f916b2a9850dd56bc94b38c43b0dce6c
parentd522255059b7a6a07704ccabe388f2ca2fc4d76f (diff)
downloadhwcomposer-db07ee177a82544ac94a115389f3a7d459449b1f.zip
hwcomposer-db07ee177a82544ac94a115389f3a7d459449b1f.tar.gz
hwcomposer-db07ee177a82544ac94a115389f3a7d459449b1f.tar.bz2
gralloc was moved to new addrass
Diffstat
-rwxr-xr-xAndroid.mk9
-rwxr-xr-xhwcomposer.cpp2
2 files changed, 9 insertions, 2 deletions
diff --git a/Android.mk b/Android.mk
index 1e9e89f..d7933f2 100755
--- a/Android.mk
+++ b/Android.mk
@@ -11,9 +11,16 @@ LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_SHARED_LIBRARIES := liblog libEGL libutils libamavutils libcutils
LOCAL_SRC_FILES := hwcomposer.cpp
+ifneq (,$(wildcard hardware/amlogic/gralloc))
+GRALLOC_DIR := hardware/amlogic/gralloc
+else
+GRALLOC_DIR := hardware/libhardware/modules/gralloc
+endif
+
AMPLAYER_APK_DIR=$(TOP)/packages/amlogic/LibPlayer/
LOCAL_C_INCLUDES +=\
- $(AMPLAYER_APK_DIR)/amavutils/include
+ $(AMPLAYER_APK_DIR)/amavutils/include \
+ $(GRALLOC_DIR) \
LOCAL_MODULE := hwcomposer.amlogic
LOCAL_CFLAGS:= -DLOG_TAG=\"hwcomposer\"
diff --git a/hwcomposer.cpp b/hwcomposer.cpp
index 22da4c7..b37a33b 100755
--- a/hwcomposer.cpp
+++ b/hwcomposer.cpp
@@ -48,7 +48,7 @@
#include <utils/Vector.h>
#include <utils/Timers.h>
// for private_handle_t
-#include "../../libhardware/modules/gralloc/gralloc_priv.h"
+#include <gralloc_priv.h>
#include <Amavutils.h>
#include <system/graphics.h>