summaryrefslogtreecommitdiff
path: root/src/gallium/targets
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-10-11 16:07:09 +0800
committerChia-I Wu <olvaffe@gmail.com>2011-03-16 20:18:40 +0800
commit9a3759c3ddeee2ba4b2215074df3d21d24e65c5c (patch)
treef7a50860909cbf540a0f1597b955ee778b32f1dd /src/gallium/targets
parentf547fef2d066607650635136910bbcc781cf6bff (diff)
android: Add Android.mk's.
Diffstat (limited to 'src/gallium/targets')
-rw-r--r--src/gallium/targets/Android.mk111
1 files changed, 111 insertions, 0 deletions
diff --git a/src/gallium/targets/Android.mk b/src/gallium/targets/Android.mk
new file mode 100644
index 0000000000..f37ed1e6a2
--- /dev/null
+++ b/src/gallium/targets/Android.mk
@@ -0,0 +1,111 @@
+# Android.mk for Gallium EGL and gralloc
+
+LOCAL_PATH := $(call my-dir)
+
+# EGL
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+ egl-static/egl.c \
+ egl-static/egl_pipe.c \
+ egl-static/egl_st.c
+
+LOCAL_CFLAGS := \
+ -DFEATURE_ES1=1 \
+ -DFEATURE_ES2=1 \
+ -DGALLIUM_SOFTPIPE \
+ -D_EGL_MAIN=_eglBuiltInDriverGALLIUM \
+ -fvisibility=hidden \
+ -Wno-sign-compare
+
+LOCAL_C_INCLUDES := \
+ external/mesa/include \
+ external/mesa/src/gallium/include \
+ external/mesa/src/gallium/auxiliary \
+ external/mesa/src/gallium/drivers \
+ external/mesa/src/gallium/winsys \
+ external/mesa/src/gallium/state_trackers/vega \
+ external/mesa/src/gallium/state_trackers/egl \
+ external/mesa/src/egl/main \
+ external/mesa/src/mesa
+
+LOCAL_STATIC_LIBRARIES := \
+ libmesa_st_egl \
+ libmesa_winsys_sw \
+ libmesa_pipe_softpipe \
+ libmesa_st_mesa \
+ libmesa_glsl \
+ libmesa_st_mesa \
+ libmesa_talloc \
+ libmesa_gallium
+
+LOCAL_WHOLE_STATIC_LIBRARIES := \
+ libmesa_egl
+
+LOCAL_SHARED_LIBRARIES := \
+ libglapi \
+ libdl \
+ libhardware \
+ liblog \
+ libcutils
+
+ifeq ($(strip $(MESA_BUILD_CLASSIC)),true)
+LOCAL_STATIC_LIBRARIES := \
+ libmesa_classic_egl \
+ $(LOCAL_STATIC_LIBRARIES)
+LOCAL_SHARED_LIBRARIES += libdrm
+endif # MESA_BUILD_CLASSIC
+
+ifeq ($(strip $(MESA_BUILD_I915G)),true)
+LOCAL_CFLAGS += -D_EGL_PIPE_I915
+LOCAL_STATIC_LIBRARIES := \
+ libmesa_winsys_i915 \
+ libmesa_pipe_i915 \
+ $(LOCAL_STATIC_LIBRARIES)
+LOCAL_SHARED_LIBRARIES += \
+ libdrm \
+ libdrm_intel
+endif # MESA_BUILD_I915G
+
+LOCAL_MODULE := libGLES_mesa
+LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/egl
+
+include $(BUILD_SHARED_LIBRARY)
+
+# gralloc (broken!)
+ifeq ($(strip $(MESA_BUILD_VMWGFX)),true)
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := egl/egl_pipe.c
+
+LOCAL_CFLAGS := \
+ -D_EGL_PIPE_VMWGFX=1 \
+ -fvisibility=hidden \
+ -Wno-sign-compare
+
+LOCAL_C_INCLUDES := \
+ external/mesa/src/gallium/include \
+ external/mesa/src/gallium/auxiliary \
+ external/mesa/src/gallium/drivers \
+ external/mesa/src/gallium/winsys
+
+LOCAL_STATIC_LIBRARIES := \
+ libmesa_pipe_svga \
+ libmesa_winsys_svga \
+ libmesa_gallium
+
+LOCAL_WHOLE_STATIC_LIBRARIES := \
+ libmesa_st_gralloc
+
+LOCAL_SHARED_LIBRARIES := \
+ libdl \
+ liblog \
+ libcutils \
+ libdrm \
+ libEGL
+
+LOCAL_MODULE := gralloc.mesa
+LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
+
+include $(BUILD_SHARED_LIBRARY)
+endif # MESA_BUILD_VMWGFX