1 LOCAL_PATH := $(call my-dir) 2 3 ### EGL host implementation ######################## 4 $(call emugl-begin-host-shared-library,libEGL_translator) 5 $(call emugl-import,libGLcommon) 6 7 OS_SRCS:= 8 9 ifeq ($(HOST_OS),linux) 10 OS_SRCS = EglX11Api.cpp 11 LOCAL_LDLIBS += -lX11 -lGL -ldl -lpthread 12 endif 13 14 ifeq ($(HOST_OS),darwin) 15 OS_SRCS = EglMacApi.cpp \ 16 MacNative.m \ 17 MacPixelFormatsAttribs.m 18 19 LOCAL_LDLIBS += -Wl,-framework,AppKit 20 endif 21 22 ifeq ($(HOST_OS),windows) 23 OS_SRCS = EglWindowsApi.cpp 24 LOCAL_LDLIBS += -lopengl32 -lgdi32 25 endif 26 27 LOCAL_SRC_FILES := \ 28 $(OS_SRCS) \ 29 ThreadInfo.cpp \ 30 EglImp.cpp \ 31 EglConfig.cpp \ 32 EglContext.cpp \ 33 EglGlobalInfo.cpp \ 34 EglValidate.cpp \ 35 EglSurface.cpp \ 36 EglWindowSurface.cpp \ 37 EglPbufferSurface.cpp \ 38 EglPixmapSurface.cpp \ 39 EglThreadInfo.cpp \ 40 EglDisplay.cpp \ 41 ClientAPIExts.cpp 42 43 $(call emugl-end-module) 44 45