1add_subdirectory(gl-host-common) 2 3# GLES decoder 4add_subdirectory(gles1_dec) 5add_subdirectory(gles2_dec) 6 7# GLES dispatch based on Translator 8add_subdirectory(OpenGLESDispatch) 9 10# GLES translator 11add_subdirectory(glestranslator) 12add_subdirectory(glsnapshot) 13 14add_library(gfxstream-gl-server 15 BufferGl.cpp 16 ColorBufferGl.cpp 17 CompositorGl.cpp 18 DebugGl.cpp 19 DisplayGl.cpp 20 DisplaySurfaceGl.cpp 21 EmulatedEglConfig.cpp 22 EmulatedEglContext.cpp 23 EmulatedEglFenceSync.cpp 24 EmulatedEglImage.cpp 25 EmulatedEglWindowSurface.cpp 26 EmulationGl.cpp 27 GLESVersionDetector.cpp 28 ReadbackWorkerGl.cpp 29 TextureDraw.cpp 30 TextureResize.cpp 31 YUVConverter.cpp) 32 33target_link_libraries( 34 gfxstream-gl-server 35 PUBLIC 36 aemu-base.headers 37 gfxstream_features 38 gfxstream-gl-host-common.headers 39 gfxstream_vulkan_headers 40 gfxstream_egl_headers 41 gles1_dec 42 gles2_dec 43 GLcommon 44 GLSnapshot 45 OpenGLESDispatch) 46 47if(BUILD_STANDALONE) 48 target_link_libraries( 49 gfxstream-gl-server 50 PRIVATE 51 gfxstream-gl-host-common) 52endif() 53 54target_include_directories(gfxstream-gl-server 55 PRIVATE 56 ${GFXSTREAM_REPO_ROOT} 57 ${GFXSTREAM_REPO_ROOT}/gldispatch/include 58 ${GFXSTREAM_REPO_ROOT}/include 59 ${GFXSTREAM_REPO_ROOT}/host 60 ${GFXSTREAM_REPO_ROOT}/host/gl 61 ${GFXSTREAM_REPO_ROOT}/third-party/glm/include) 62