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 GLSnapshot 44 OpenGLESDispatch) 45 46if(BUILD_STANDALONE) 47 target_link_libraries( 48 gfxstream-gl-server 49 PRIVATE 50 gfxstream-gl-host-common) 51endif() 52 53target_include_directories(gfxstream-gl-server 54 PRIVATE 55 ${GFXSTREAM_REPO_ROOT} 56 ${GFXSTREAM_REPO_ROOT}/gldispatch/include 57 ${GFXSTREAM_REPO_ROOT}/include 58 ${GFXSTREAM_REPO_ROOT}/host 59 ${GFXSTREAM_REPO_ROOT}/host/gl 60 ${GFXSTREAM_REPO_ROOT}/third-party/glm/include) 61