Home | History | Annotate | Download | only in libOpenglRender
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 ### libOpenglRender #################################################
      4 $(call emugl-begin-host-shared-library,libOpenglRender)
      5 
      6 $(call emugl-import,libGLESv1_dec libGLESv2_dec lib_renderControl_dec libOpenglCodecCommon libOpenglOsUtils)
      7 
      8 OS_SRCS:=
      9 
     10 ifeq ($(HOST_OS),linux)
     11     OS_SRCS = NativeLinuxSubWindow.cpp
     12     LOCAL_LDLIBS += -lX11
     13 endif
     14 
     15 ifeq ($(HOST_OS),darwin)
     16     OS_SRCS = NativeMacSubWindow.m
     17     LOCAL_LDLIBS += -Wl,-framework,AppKit
     18 endif
     19 
     20 ifeq ($(HOST_OS),windows)
     21     OS_SRCS = NativeWindowsSubWindow.cpp
     22 endif
     23 
     24 LOCAL_SRC_FILES := \
     25     $(OS_SRCS)      \
     26     render_api.cpp \
     27     ColorBuffer.cpp \
     28     EGLDispatch.cpp \
     29     FBConfig.cpp \
     30     FrameBuffer.cpp \
     31     GLDispatch.cpp \
     32     GL2Dispatch.cpp \
     33     RenderContext.cpp \
     34     WindowSurface.cpp \
     35     RenderControl.cpp \
     36     ThreadInfo.cpp \
     37     RenderThread.cpp \
     38     ReadBuffer.cpp \
     39     RenderServer.cpp
     40 
     41 $(call emugl-export,C_INCLUDES,$(EMUGL_PATH)/host/include)
     42 $(call emugl-export,C_INCLUDES,$(LOCAL_PATH))
     43 
     44 # use Translator's egl/gles headers
     45 LOCAL_C_INCLUDES += $(EMUGL_PATH)/host/libs/Translator/include
     46 
     47 LOCAL_STATIC_LIBRARIES += libutils liblog
     48 
     49 #For gl debbuging
     50 #$(call emugl-export,CFLAGS,-DCHECK_GL_ERROR)
     51 
     52 $(call emugl-end-module)
     53