diff --git a/opengl/libs/Android.mk b/opengl/libs/Android.mk index 31bfcd7e7..6c3535594 100644 --- a/opengl/libs/Android.mk +++ b/opengl/libs/Android.mk @@ -4,6 +4,20 @@ LOCAL_PATH:= $(call my-dir) # Build META EGL library # +egl.cfg_config_module := +# OpenGL drivers config file +ifneq ($(BOARD_EGL_CFG),) + +include $(CLEAR_VARS) +LOCAL_MODULE := egl.cfg +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/egl +LOCAL_SRC_FILES := ../../../../$(BOARD_EGL_CFG) +include $(BUILD_PREBUILT) +egl.cfg_config_module := $(LOCAL_MODULE) +endif + include $(CLEAR_VARS) LOCAL_SRC_FILES:= \ @@ -65,24 +79,10 @@ ifneq ($(MAX_EGL_CACHE_SIZE),) LOCAL_CFLAGS += -DMAX_EGL_CACHE_SIZE=$(MAX_EGL_CACHE_SIZE) endif +LOCAL_REQUIRED_MODULES := $(egl.cfg_config_module) +egl.cfg_config_module := + include $(BUILD_SHARED_LIBRARY) -installed_libEGL := $(LOCAL_INSTALLED_MODULE) - -# OpenGL drivers config file -ifneq ($(BOARD_EGL_CFG),) - -include $(CLEAR_VARS) -LOCAL_MODULE := egl.cfg -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := ETC -LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/egl -LOCAL_SRC_FILES := ../../../../$(BOARD_EGL_CFG) -include $(BUILD_PREBUILT) - -# make sure we depend on egl.cfg, so it gets installed -$(installed_libEGL): | egl.cfg - -endif ############################################################################### # Build the wrapper OpenGL ES 1.x library