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
31 lines
793 B
Makefile
31 lines
793 B
Makefile
LOCAL_PATH:=$(call my-dir)
|
|
|
|
ifeq ($(HOST_OS), linux)
|
|
|
|
$(call emugl-begin-host-executable,ut_renderer)
|
|
$(call emugl-import,libut_rendercontrol_dec libGLESv1_dec libGLESv2_dec libEGL_host_wrapper)
|
|
|
|
LOCAL_SRC_FILES := ut_renderer.cpp \
|
|
RenderingThread.cpp \
|
|
ReadBuffer.cpp \
|
|
Renderer.cpp \
|
|
RendererContext.cpp \
|
|
RendererSurface.cpp \
|
|
X11Windowing.cpp
|
|
|
|
# define PVR_WAR to support imgtec PVR opengl-ES implementation
|
|
#
|
|
# specifically this MACRO enables code that work arounds a bug
|
|
# in the implementation where glTextureParameter(...,GL_TEXTURE_RECT,...)
|
|
# is called would cause a crash if the texture dimensions have not been
|
|
# defined yet.
|
|
|
|
LOCAL_CFLAGS += -DPVR_WAR
|
|
#LOCAL_CFLAGS += -g -O0
|
|
|
|
LOCAL_LDLIBS += -lpthread -lX11 -lrt
|
|
|
|
$(call emugl-end-module)
|
|
|
|
endif # HOST_OS == linux
|