From 9a3759c3ddeee2ba4b2215074df3d21d24e65c5c 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/Android.mk | 104 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 src/Android.mk (limited to 'src/Android.mk') diff --git a/src/Android.mk b/src/Android.mk new file mode 100644 index 0000000000..7c306dd953 --- /dev/null +++ b/src/Android.mk @@ -0,0 +1,104 @@ +# Either one of, or both of, MESA_BUILD_CLASSIC and MESA_BUILD_GALLIUM must be +# set. When MESA_BUILD_GALLIUM is not set, EGL consists of +# +# libmesa_classic_egl +# libmesa_egl +# +# and the rules for it can be found in egl/drivers/android/Android.mk. +# +# When MESA_BUILD_GALLIUM is set, EGL consists of +# +# libmesa_st_egl +# libmesa_egl +# libmesa_st_mesa +# libmesa_pipe_ +# libmesa_winsys_ +# libmesa_gallium +# +# +# and the rules for it can be found in gallium/targets/Android.mk +# +# When MESA_BUILD_CLASSIC is set, DRI drivers are created. A DRI driver +# consists of +# +# libmesa_classic_mesa +# libmesa_glsl +# +# +# and the rules for it can be found in mesa/drivers/Android.mk. +# +# As for gralloc, the goal is to provide a single module that is able to +# detect and support the hardware. This is not the case yet though. + +LOCAL_PATH := $(call my-dir) + +# DRI drivers +MESA_BUILD_CLASSIC := false +MESA_BUILD_I915C := false +MESA_BUILD_I965C := false + +# Gallium drivers +MESA_BUILD_GALLIUM := false +MESA_BUILD_I915G := false +MESA_BUILD_SWRAST := false + +# gralloc modules +MESA_BUILD_INTEL := false +MESA_BUILD_VMWGFX := false + +MESA_DO_BUILD := false + +ifeq ($(strip $(BOARD_USES_I915C)),true) +MESA_BUILD_CLASSIC := true +MESA_BUILD_I915C := true +# gralloc +MESA_BUILD_INTEL := true + +MESA_DO_BUILD := true +endif + +ifeq ($(strip $(BOARD_USES_I915G)),true) +MESA_BUILD_GALLIUM := true +MESA_BUILD_I915G := true +# gralloc +MESA_BUILD_INTEL := true + +MESA_DO_BUILD := true +endif + +ifeq ($(strip $(BOARD_USES_I965C)),true) +MESA_BUILD_CLASSIC := true +MESA_BUILD_I965C := true +# gralloc +MESA_BUILD_INTEL := true + +MESA_DO_BUILD := true +endif + +ifeq ($(strip $(BOARD_USES_VMWGFX)),true) +MESA_BUILD_GALLIUM := true +MESA_BUILD_SWRAST := true +# gralloc +MESA_BUILD_VMWGFX := true + +MESA_DO_BUILD := true +endif + +ifeq ($(strip $(MESA_DO_BUILD)),true) + +# build the real modules +include $(call all-subdir-makefiles) + +include $(CLEAR_VARS) + +symlink := $(TARGET_OUT_SHARED_LIBRARIES)/hw/gralloc.$(TARGET_PRODUCT)$(TARGET_SHLIB_SUFFIX) +symlink_to := gralloc.mesa$(TARGET_SHLIB_SUFFIX) +$(symlink): PRIVATE_TO := $(symlink_to) +$(symlink): $(TARGET_OUT_SHARED_LIBRARIES)/hw/$(symlink_to) + @echo "Symlink: $@ -> $(PRIVATE_TO)" + @mkdir -p $(dir $@) + @rm -rf $@ + $(hide) ln -sf $(PRIVATE_TO) $@ +ALL_PREBUILT += $(symlink) + +endif # MESA_DO_BUILD -- cgit v1.2.3