blob: 8156fe50bf900ce2288951a6253ecbcf3e7ad4bc [file] [log] [blame]
LOCAL_PATH := $(call my-dir)
host_OS_SRCS :=
host_common_LDLIBS :=
ifeq ($(BUILD_TARGET_OS),linux)
host_OS_SRCS = EglOsApi_glx.cpp
host_common_LDLIBS += -lGL -lX11 -ldl -lpthread
endif
ifeq ($(BUILD_TARGET_OS),darwin)
host_OS_SRCS = EglOsApi_darwin.cpp \
MacNative.m \
MacPixelFormatsAttribs.m
host_common_LDLIBS += -Wl,-framework,AppKit
endif
ifeq ($(BUILD_TARGET_OS),windows)
host_OS_SRCS = EglOsApi_wgl.cpp
host_common_LDLIBS += -lgdi32
endif
host_common_SRC_FILES := \
$(host_OS_SRCS) \
ThreadInfo.cpp \
EglImp.cpp \
EglConfig.cpp \
EglContext.cpp \
EglGlobalInfo.cpp \
EglValidate.cpp \
EglSurface.cpp \
EglWindowSurface.cpp \
EglPbufferSurface.cpp \
EglThreadInfo.cpp \
EglDisplay.cpp \
ClientAPIExts.cpp
### EGL host implementation ########################
$(call emugl-begin-shared-library,lib$(BUILD_TARGET_SUFFIX)EGL_translator)
$(call emugl-import,libGLcommon)
LOCAL_LDLIBS += $(host_common_LDLIBS)
LOCAL_SRC_FILES := $(host_common_SRC_FILES)
$(call emugl-end-module)