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_shared {
23    name: "libGLESv1_enc",
24    host_supported: true,
25    vendor: true,
26    defaults: [
27        "libgfxstream_guest_cc_defaults",
28    ],
29    header_libs: [
30        "libgfxstream_guest_graphics_headers",
31        "libgfxstream_guest_iostream",
32    ],
33    shared_libs: [
34        "libandroidemu",
35        "liblog",
36        "libOpenglCodecCommon",
37    ],
38    export_shared_lib_headers: [
39        "libOpenglCodecCommon",
40    ],
41    cflags: [
42        "-DGL_GLEXT_PROTOTYPES",
43        "-DLOG_TAG=\"emuglGLESv1_enc\"",
44    ],
45    srcs: [
46        "GLEncoder.cpp",
47        "GLEncoderUtils.cpp",
48        "gl_client_context.cpp",
49        "gl_enc.cpp",
50        "gl_entry.cpp",
51    ],
52    export_include_dirs: [
53        ".",
54    ],
55}
56