[Libva] [PATCH 1/4] Android.mk: Conditionally build va-egl implementation

Haitao Huang haitao.huang at intel.com
Mon Aug 20 12:52:42 PDT 2012


fixed build error for va-egl and wrapped it
in conditional flag USE_VA_EGL. EGL implementation has not been tested
currently.

Change-Id: I3b581b2e894fc205e41bb411eba6b8ee1b0da4cc
Signed-off-by: Haitao Huang <haitao.huang at intel.com>
---
 va/Android.mk |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/va/Android.mk b/va/Android.mk
index e94c4b0..cea186e 100755
--- a/va/Android.mk
+++ b/va/Android.mk
@@ -111,14 +111,15 @@ LOCAL_SHARED_LIBRARIES := libva
 
 include $(BUILD_SHARED_LIBRARY)
 
-
+ifeq ($(USE_VA_EGL), true)
 # For libva-egl
 # =====================================================
 
 include $(CLEAR_VARS)
 
-LOCAL_SRC_FILES := \
-	egl/va_egl.c
+LOCAL_SRC_FILES :=    \
+	egl/va_egl.c  \
+	egl/va_egl_impl.c
 
 LOCAL_CFLAGS += \
 	-DANDROID
@@ -129,16 +130,16 @@ LOCAL_C_INCLUDES += \
 
 LOCAL_COPY_HEADERS_TO := libva/va
 
-LOCAL_COPY_HEADERS := egl/va_egl.h egl/va_backend_egl.h
+LOCAL_COPY_HEADERS := va_egl.h egl/va_backend_egl.h
 
 LOCAL_MODULE_TAGS := optional
 LOCAL_MODULE := libva-egl
 
-LOCAL_SHARED_LIBRARIES := libva
+LOCAL_SHARED_LIBRARIES := libva libva-android libEGL
 
 include $(BUILD_SHARED_LIBRARY)
 
-
+endif
 # For libva-tpi
 # =====================================================
 
-- 
1.7.5.4



More information about the Libva mailing list