• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2023 Android Open Source Project
2# SPDX-License-Identifier: MIT
3
4files_lib_gl_host_common = files(
5  'opengles.cpp',
6  'opengl/EmuglBackendList.cpp',
7  'opengl/emugl_config.cpp',
8  'opengl/GLProcessPipe.cpp',
9  'opengl/gpuinfo.cpp',
10  'opengl/logger.cpp',
11  'opengl/misc.cpp',
12  'opengl/OpenglEsPipe.cpp',
13)
14
15files_gl_host_common_darwin = files(
16  'opengl/macTouchOpenGL.m',
17  'opengl/NativeGpuInfo_darwin.cpp',
18)
19
20files_gl_host_common_win32 = files(
21  'opengl/NativeGpuInfo_windows.cpp',
22)
23
24files_gl_host_common_linux = files(
25  'opengl/NativeGpuInfo_linux.cpp',
26)
27
28files_gl_host_common_qnx = files(
29  'opengl/NativeGpuInfo_qnx.cpp',
30)
31
32# HACK: For the misc.h file already in AEMU host common
33inc_gl_host_common = include_directories('include')
34
35if host_machine.system() == 'darwin'
36  files_lib_gl_host_common += files_gl_host_common_darwin
37elif host_machine.system() == 'windows'
38  files_lib_gl_host_common += files_gl_host_common_win32
39elif host_machine.system() == 'linux'
40  files_lib_gl_host_common += files_gl_host_common_linux
41elif host_machine.system() == 'qnx'
42  files_lib_gl_host_common += files_gl_host_common_qnx
43endif
44
45lib_gl_host_common = static_library(
46  'gl_host_common',
47  files_lib_gl_host_common,
48  cpp_args: gfxstream_host_args,
49  include_directories: [inc_gfxstream_include, inc_include, inc_gl_host_common, inc_host_features],
50  dependencies: [aemu_base_dep, aemu_common_dep, aemu_snapshot_dep],
51  link_with: [lib_host_features]
52)
53