Home | History | Annotate | Download | only in EGL
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 host_OS_SRCS :=
      4 host_common_LDLIBS :=
      5 
      6 ifeq ($(HOST_OS),linux)
      7     host_OS_SRCS = EglX11Api.cpp
      8     host_common_LDLIBS += -lX11 -lGL -ldl -lpthread
      9 endif
     10 
     11 ifeq ($(HOST_OS),darwin)
     12     host_OS_SRCS = EglMacApi.cpp \
     13                    MacNative.m   \
     14                    MacPixelFormatsAttribs.m
     15 
     16     host_common_LDLIBS += -Wl,-framework,AppKit
     17 endif
     18 
     19 ifeq ($(HOST_OS),windows)
     20     host_OS_SRCS = EglWindowsApi.cpp
     21     host_common_LDLIBS += -lopengl32 -lgdi32
     22 endif
     23 
     24 host_common_SRC_FILES :=      \
     25      $(host_OS_SRCS)          \
     26      ThreadInfo.cpp           \
     27      EglImp.cpp               \
     28      EglConfig.cpp            \
     29      EglContext.cpp           \
     30      EglGlobalInfo.cpp        \
     31      EglValidate.cpp          \
     32      EglSurface.cpp           \
     33      EglWindowSurface.cpp     \
     34      EglPbufferSurface.cpp    \
     35      EglPixmapSurface.cpp     \
     36      EglThreadInfo.cpp        \
     37      EglDisplay.cpp           \
     38      ClientAPIExts.cpp
     39 
     40 ### EGL host implementation ########################
     41 $(call emugl-begin-host-shared-library,libEGL_translator)
     42 $(call emugl-import,libGLcommon)
     43 
     44 LOCAL_LDLIBS += $(host_common_LDLIBS)
     45 LOCAL_SRC_FILES := $(host_common_SRC_FILES)
     46 
     47 $(call emugl-end-module)
     48 
     49 ### EGL host implementation, 64-bit ########################
     50 $(call emugl-begin-host-shared-library,lib64EGL_translator)
     51 $(call emugl-import,lib64GLcommon)
     52 
     53 LOCAL_LDLIBS += $(host_common_LDLIBS) -m64
     54 LOCAL_SRC_FILES := $(host_common_SRC_FILES)
     55 
     56 $(call emugl-end-module)
     57 
     58