From 88721c8555e1c65cdb1fa57f50e588d169e77915 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 11 Oct 2010 16:07:09 +0800 Subject: android: Add Android.mk's. --- src/gralloc/Android.mk | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 src/gralloc/Android.mk (limited to 'src/gralloc') diff --git a/src/gralloc/Android.mk b/src/gralloc/Android.mk new file mode 100644 index 0000000000..4125548735 --- /dev/null +++ b/src/gralloc/Android.mk @@ -0,0 +1,54 @@ +LOCAL_PATH := $(call my-dir) + +common_SRC_FILES := \ + gralloc_gem.c \ + gralloc_kms.c \ + gralloc_mod.c + +common_C_INCLUDES := \ + external/drm \ + external/drm/include/drm + +common_SHARED_LIBRARIES := \ + libdrm \ + liblog \ + libcutils + +ifeq ($(strip $(MESA_BUILD_I915)),true) +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := \ + $(common_SRC_FILES) \ + gralloc_gem_i915.c + +LOCAL_C_INCLUDES := \ + $(common_C_INCLUDES) \ + external/drm/intel + +LOCAL_SHARED_LIBRARIES := \ + $(common_SHARED_LIBRARIES) \ + libdrm_intel \ + libEGL + +LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw +LOCAL_MODULE := gralloc.i915 + +include $(BUILD_SHARED_LIBRARY) +endif # MESA_BUILD_I915 + +ifeq ($(strip $(MESA_BUILD_GALLIUM)),true) +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := \ + $(common_SRC_FILES) \ + gralloc_gem_pipe.c + +LOCAL_C_INCLUDES := \ + $(common_C_INCLUDES) \ + external/mesa/src/gallium/include \ + external/mesa/src/gallium/auxiliary + +LOCAL_MODULE := libmesa_st_gralloc + +include $(BUILD_STATIC_LIBRARY) +endif # MESA_BUILD_GALLIUM -- cgit v1.2.3