1/*
2 * Copyright (C) 2023 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package {
18    // See: http://go/android-license-faq
19    default_applicable_licenses: ["hardware_google_gfxstream_license"],
20}
21
22cc_library_headers {
23    name: "libgfxstream_guest_errorlog_headers",
24    host_supported: true,
25    vendor_available: true,
26    export_include_dirs: [
27        ".",
28    ],
29}
30
31cc_library_shared {
32    name: "libOpenglCodecCommon",
33    host_supported: true,
34    vendor: true,
35    defaults: [
36        "libgfxstream_guest_cc_defaults",
37    ],
38    header_libs: [
39        "gfxstream_opengl_headers",
40        "libgfxstream_guest_graphics_headers",
41        "libgfxstream_guest_iostream",
42    ],
43    export_header_lib_headers: [
44        "gfxstream_opengl_headers",
45    ],
46    shared_libs: [
47        "libcutils",
48        "liblog",
49        "libutils",
50    ],
51    export_shared_lib_headers: [
52        "libcutils",
53        "liblog",
54    ],
55    export_static_lib_headers: [
56        "libgfxstream_androidemu_static",
57    ],
58    static_libs: [
59        "libgfxstream_etc",
60        "libgfxstream_androidemu_static",
61        "libqemupipe.ranchu",
62    ],
63    cflags: [
64        "-DLOG_TAG=\"eglCodecCommon\"",
65        "-Wno-unused-private-field",
66    ],
67    srcs: [
68        "ChecksumCalculator.cpp",
69        "EncoderDebug.cpp",
70        "GLClientState.cpp",
71        "GLESTextureUtils.cpp",
72        "GLSharedGroup.cpp",
73        "glUtils.cpp",
74        "IndexRangeCache.cpp",
75    ],
76    export_include_dirs: [
77        "include",
78    ],
79}
80