anbox/external/android-emugl/host/libs/Translator/EGL/Android.mk
2016-09-17 10:48:24 +02:00

46 lines
1.2 KiB
Makefile

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-host-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)