This patch is a major rework of the build opengl-emulation build scripts. See README for details. In a nutshell, this introduces various functions that considerably simplify the declaration of the 26+ modules in this implementation, by handling auto-generation of sources and module imports/exports. Change-Id: I827522d783c7b6cf5eafd37204a1025c235458cd
59 lines
1.7 KiB
Makefile
59 lines
1.7 KiB
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
### GLESv1 implementation ###########################################
|
|
$(call emugl-begin-shared-library,libGLESv1_CM_emulation)
|
|
$(call emugl-import,libOpenglSystemCommon libGLESv1_enc lib_renderControl_enc)
|
|
|
|
LOCAL_CFLAGS += -DLOG_TAG=\"GLES_emulation\" -DGL_GLEXT_PROTOTYPES
|
|
|
|
LOCAL_SRC_FILES := gl.cpp
|
|
LOCAL_STATIC_LIBRARIES += libqemu
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/egl
|
|
|
|
$(call emugl-end-module)
|
|
|
|
#
|
|
# include $(CLEAR_VARS)
|
|
#
|
|
# # add additional depencies to ensure that the generated code that we depend on
|
|
# # is generated
|
|
# LOCAL_ADDITIONAL_DEPENDENCIES := \
|
|
# $(TARGET_OUT_SHARED_LIBRARIES)/lib_renderControl_enc$(TARGET_SHLIB_SUFFIX) \
|
|
# $(TARGET_OUT_SHARED_LIBRARIES)/libGLESv1_enc$(TARGET_SHLIB_SUFFIX)
|
|
#
|
|
# LOCAL_SRC_FILES := \
|
|
# gl.cpp
|
|
#
|
|
#
|
|
# LOCAL_PRELINK_MODULE := false
|
|
# LOCAL_CFLAGS += -DLOG_TAG=\"GLES_emulation\" -DGL_GLEXT_PROTOTYPES
|
|
# LOCAL_C_INCLUDES += \
|
|
# $(emulatorOpengl)/host/include/libOpenglRender \
|
|
# $(emulatorOpengl)/shared/OpenglCodecCommon \
|
|
# $(emulatorOpengl)/system/OpenglSystemCommon \
|
|
# $(emulatorOpengl)/system/GLESv1_enc \
|
|
# $(emulatorOpengl)/system/renderControl_enc \
|
|
# $(call intermediates-dir-for, SHARED_LIBRARIES, lib_renderControl_enc) \
|
|
# $(call intermediates-dir-for, SHARED_LIBRARIES, libGLESv1_enc)
|
|
#
|
|
# LOCAL_MODULE_TAGS := debug
|
|
# LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/egl
|
|
# LOCAL_MODULE := libGLESv1_CM_emulation
|
|
# LOCAL_MODULE_CLASS := SHARED_LIBRARIES
|
|
#
|
|
#
|
|
# LOCAL_STATIC_LIBRARIES := \
|
|
# libOpenglCodecCommon \
|
|
# libqemu
|
|
#
|
|
# LOCAL_SHARED_LIBRARIES := \
|
|
# libcutils \
|
|
# libutils \
|
|
# libdl \
|
|
# libOpenglSystemCommon \
|
|
# libGLESv1_enc \
|
|
# lib_renderControl_enc
|
|
#
|
|
#
|
|
# include $(BUILD_SHARED_LIBRARY)
|