This adds 'ut_renderer' - a host side unit test renderer. ut_renderer is used to take a command stream over a socket connection and render it into an opengl window. The renderer uses the GLESv1_dec decoder library and the ut_rendercontrol api to parse the command stream. The ut_renderer uses an external (plug-in) opengl impelementation. Change-Id: I77794044ca9ca8a75a66a95a248eac384710aafe
53 lines
1.6 KiB
Makefile
53 lines
1.6 KiB
Makefile
|
|
LOCAL_PATH:=$(call my-dir)
|
|
|
|
# ut_renderer test program ###########################
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
ifeq ($(HOST_OS), linux)
|
|
|
|
emulatorOpengl := $(LOCAL_PATH)/../..
|
|
|
|
LOCAL_MODULE := ut_renderer
|
|
LOCAL_MODULE_TAGS := debug
|
|
|
|
# add additional depencies to ensure that the generated code that we depend on
|
|
# is generated
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := \
|
|
$(HOST_OUT_SHARED_LIBRARIES)/libut_rendercontrol_dec$(HOST_SHLIB_SUFFIX) \
|
|
$(HOST_OUT_SHARED_LIBRARIES)/libGLESv1_dec$(HOST_SHLIB_SUFFIX)
|
|
|
|
LOCAL_SRC_FILES := ut_renderer.cpp \
|
|
RenderingThread.cpp \
|
|
ReadBuffer.cpp \
|
|
Renderer.cpp \
|
|
RendererContext.cpp \
|
|
RendererSurface.cpp \
|
|
X11Windowing.cpp \
|
|
TimeUtils.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_C_INCLUDES := $(emulatorOpengl)/system/OpenglCodecCommon \
|
|
$(call intermediates-dir-for, SHARED_LIBRARIES, libut_rendercontrol_dec, HOST) \
|
|
$(call intermediates-dir-for, SHARED_LIBRARIES, libGLESv1_dec, HOST) \
|
|
$(emulatorOpengl)/host/libs/GLESv1_dec \
|
|
$(emulatorOpengl)/system/GLESv1_enc \
|
|
$(emulatorOpengl)/tests/ut_rendercontrol_enc
|
|
|
|
LOCAL_SHARED_LIBRARIES := libut_rendercontrol_dec libGLESv1_dec libEGL_host_wrapper
|
|
LOCAL_STATIC_LIBRARIES := libOpenglCodecCommon
|
|
LOCAL_LDLIBS := -lpthread -lX11 -lrt
|
|
include $(BUILD_HOST_EXECUTABLE)
|
|
|
|
endif # HOST_OS == linux
|