1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "hardware_google_gfxstream_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["hardware_google_gfxstream_license"],
8}
9
10cc_library_headers {
11    name: "gfxstream_gl_host_common_headers",
12    defaults: ["gfxstream_defaults"],
13    export_include_dirs: [
14        "include",
15    ],
16}
17
18cc_library_static {
19    name: "libgfxstream_host_gl_host_common",
20    defaults: ["gfxstream_defaults"],
21    static_libs: [
22        "gfxstream_base",
23        "gfxstream_host_common",
24        "libgfxstream_host_features",
25    ],
26    export_static_lib_headers: [
27        "libgfxstream_host_features",
28    ],
29    header_libs: [
30        "gfxstream_gl_host_common_headers",
31        "gfxstream_opengl_headers",
32    ],
33    export_header_lib_headers: [
34        "gfxstream_gl_host_common_headers",
35    ],
36    srcs: [
37        "opengles.cpp",
38        "opengl/EmuglBackendList.cpp",
39        "opengl/emugl_config.cpp",
40        "opengl/GLProcessPipe.cpp",
41        "opengl/GpuFrameBridge.cpp",
42        "opengl/gpuinfo.cpp",
43        "opengl/logger.cpp",
44        "opengl/misc.cpp",
45        "opengl/OpenglEsPipe.cpp",
46        "opengl/NativeGpuInfo_linux.cpp",
47    ],
48}
49