1# Copyright 2023 Android Open Source Project 2# SPDX-License-Identifier: MIT 3 4inc_gl_server = include_directories('.') 5inc_gles_translator = include_directories('glestranslator/include') 6inc_gl_snapshot = include_directories('glsnapshot') 7 8# snapshot 9subdir('glsnapshot') 10 11# GLES decoder 12subdir('gles1_dec') 13subdir('gles2_dec') 14 15# GLES translator 16subdir('glestranslator') 17 18# GLES dispatch based on Translator 19subdir('OpenGLESDispatch') 20 21files_lib_gl_server = files( 22 'BufferGl.cpp', 23 'ColorBufferGl.cpp', 24 'CompositorGl.cpp', 25 'DebugGl.cpp', 26 'DisplayGl.cpp', 27 'DisplaySurfaceGl.cpp', 28 'EmulatedEglConfig.cpp', 29 'EmulatedEglContext.cpp', 30 'EmulatedEglFenceSync.cpp', 31 'EmulatedEglImage.cpp', 32 'EmulatedEglWindowSurface.cpp', 33 'EmulationGl.cpp', 34 'GLESVersionDetector.cpp', 35 'ReadbackWorkerGl.cpp', 36 'TextureDraw.cpp', 37 'TextureResize.cpp', 38 'YUVConverter.cpp', 39) 40 41lib_gl_server = static_library( 42 'gl_server', 43 files_lib_gl_server, 44 cpp_args: gfxstream_host_args, 45 include_directories: [inc_gfxstream_include, inc_include, inc_stream_servers, inc_apigen_codec, 46 inc_gl_snapshot, inc_gl_host_common, inc_host_features], 47 link_with: [lib_gles1_dec, lib_gles2_dec, lib_apigen_codec, lib_gl_dispatch, 48 lib_apigen_codec, lib_host_features], 49 dependencies: [aemu_base_dep, aemu_common_dep, aemu_snapshot_dep] 50) 51