1LOCAL_PATH := $(call my-dir) 2 3host_OS_SRCS := 4host_common_LDLIBS := 5 6ifeq ($(HOST_OS),linux) 7 host_OS_SRCS = EglX11Api.cpp 8 host_common_LDLIBS += -lX11 -lGL -ldl -lpthread 9endif 10 11ifeq ($(HOST_OS),darwin) 12 host_OS_SRCS = EglMacApi.cpp \ 13 MacNative.m \ 14 MacPixelFormatsAttribs.m 15 16 host_common_LDLIBS += -Wl,-framework,AppKit 17endif 18 19ifeq ($(HOST_OS),windows) 20 host_OS_SRCS = EglWindowsApi.cpp 21 host_common_LDLIBS += -lopengl32 -lgdi32 22endif 23 24host_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 44LOCAL_LDLIBS += $(host_common_LDLIBS) 45LOCAL_SRC_FILES := $(host_common_SRC_FILES) 46 47$(call emugl-end-module) 48 49### EGL host implementation, 64-bit ######################## 50ifdef EMUGL_BUILD_64BITS 51 $(call emugl-begin-host64-shared-library,lib64EGL_translator) 52 $(call emugl-import,lib64GLcommon) 53 54 LOCAL_LDLIBS += $(host_common_LDLIBS) -m64 55 LOCAL_SRC_FILES := $(host_common_SRC_FILES) 56 57 $(call emugl-end-module) 58endif 59