diff options
author | Greg Hartman <ghartman@google.com> | 2018-08-17 12:43:34 -0700 |
---|---|---|
committer | Greg Hartman <ghartman@google.com> | 2018-08-23 17:24:52 -0700 |
commit | 8cf8f6b088cc014921e1a9b3d4ebc93c3b5de8b8 (patch) | |
tree | d4968732d8516f2940cfcb340bacdf7693e0ceb3 /distrib/android-emugl/host/libs/Translator/EGL/Android.mk | |
parent | 182e4691d1c5e724fc60ed94b6de8a3356018cb6 (diff) | |
download | device_generic_opengl-transport-8cf8f6b088cc014921e1a9b3d4ebc93c3b5de8b8.tar.gz device_generic_opengl-transport-8cf8f6b088cc014921e1a9b3d4ebc93c3b5de8b8.tar.bz2 device_generic_opengl-transport-8cf8f6b088cc014921e1a9b3d4ebc93c3b5de8b8.zip |
distrib/android-emugl: Move Android GPU emulation sources here.
This patch is used to add the unmodified sources of the GPU
emulation libraries that are normally under sdk/emulator/opengl/.
These sources were originally built with the platform build system,
but this is no longer the case. Since they are only built through
the emulator's own build system (i.e. android-rebuild.sh), it's
easier to put them under external/qemu/ to ensure that they are
always in sync with the rest of the emulator.
Note that the encoder sources are still in the platform under
device/generic/goldfish/opengl/.
A future patch will update the emulator build system to pick
the sources from here, and another one will remove the sources
from sdk/ after that.
Note: these are the unmodified sources from the following
commit in https://android.googlesource.com/platform/sdk.git :
182e469 emulator/opengl: Fix Windows cross-build.
Change-Id: If2010577ef4af4c6755ab345f424af0b546f9282
Diffstat (limited to 'distrib/android-emugl/host/libs/Translator/EGL/Android.mk')
-rw-r--r-- | distrib/android-emugl/host/libs/Translator/EGL/Android.mk | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/distrib/android-emugl/host/libs/Translator/EGL/Android.mk b/distrib/android-emugl/host/libs/Translator/EGL/Android.mk new file mode 100644 index 000000000..298c5021a --- /dev/null +++ b/distrib/android-emugl/host/libs/Translator/EGL/Android.mk @@ -0,0 +1,56 @@ +LOCAL_PATH := $(call my-dir) + +host_OS_SRCS := +host_common_LDLIBS := + +ifeq ($(HOST_OS),linux) + host_OS_SRCS = EglX11Api.cpp + host_common_LDLIBS += -lX11 -lGL -ldl -lpthread +endif + +ifeq ($(HOST_OS),darwin) + host_OS_SRCS = EglMacApi.cpp \ + MacNative.m \ + MacPixelFormatsAttribs.m + + host_common_LDLIBS += -Wl,-framework,AppKit +endif + +ifeq ($(HOST_OS),windows) + host_OS_SRCS = EglWindowsApi.cpp + host_common_LDLIBS += -lopengl32 -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 \ + EglPixmapSurface.cpp \ + EglThreadInfo.cpp \ + EglDisplay.cpp \ + ClientAPIExts.cpp + +### EGL host implementation ######################## +$(call emugl-begin-host-shared-library,libEGL_translator) +$(call emugl-import,libGLcommon) + +LOCAL_LDLIBS += $(host_common_LDLIBS) +LOCAL_SRC_FILES := $(host_common_SRC_FILES) + +$(call emugl-end-module) + +### EGL host implementation, 64-bit ######################## +$(call emugl-begin-host64-shared-library,lib64EGL_translator) +$(call emugl-import,lib64GLcommon) + +LOCAL_LDLIBS += $(host_common_LDLIBS) +LOCAL_SRC_FILES := $(host_common_SRC_FILES) + +$(call emugl-end-module) |