blob: 14a16d5f3cba7e7f3f72a831fe1b2c31b75c32a1 [file] [log] [blame]
# GLES decoder
add_subdirectory(gles1_dec)
add_subdirectory(gles2_dec)
# GLES dispatch based on Translator
add_subdirectory(OpenGLESDispatch)
# GLES translator
add_subdirectory(glestranslator)
add_subdirectory(glsnapshot)
add_library(gfxstream-gl-server
BufferGl.cpp
ColorBufferGl.cpp
CompositorGl.cpp
DebugGl.cpp
DisplayGl.cpp
DisplaySurfaceGl.cpp
EmulatedEglConfig.cpp
EmulatedEglContext.cpp
EmulatedEglFenceSync.cpp
EmulatedEglImage.cpp
EmulatedEglWindowSurface.cpp
EmulationGl.cpp
GLESVersionDetector.cpp
ReadbackWorkerGl.cpp
TextureDraw.cpp
TextureResize.cpp
YUVConverter.cpp)
target_link_libraries(
gfxstream-gl-server
PUBLIC
aemu-base.headers
gfxstream-gl-host-common.headers
gfxstream_vulkan_headers
gfxstream_egl_headers
gles1_dec
gles2_dec
GLSnapshot
OpenGLESDispatch)
if(BUILD_STANDALONE)
target_link_libraries(
gfxstream-gl-server
PRIVATE
gfxstream-gl-host-common)
endif()
target_include_directories(gfxstream-gl-server
PRIVATE
${GFXSTREAM_REPO_ROOT}
${GFXSTREAM_REPO_ROOT}/gldispatch/include
${GFXSTREAM_REPO_ROOT}/include
${GFXSTREAM_REPO_ROOT}/stream-servers
${GFXSTREAM_REPO_ROOT}/stream-servers/gl
${GFXSTREAM_REPO_ROOT}/third-party/glm/include)