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_rendercontrol_encoder_headers",
24    defaults: [
25        "libgfxstream_guest_cc_defaults",
26    ],
27    export_include_dirs: [
28        ".",
29    ],
30}
31
32cc_library_shared {
33    name: "lib_renderControl_enc",
34    defaults: [
35        "libgfxstream_guest_cc_defaults",
36    ],
37    header_libs: [
38        "libgfxstream_guest_graphics_headers",
39        "mesa_gfxstream_guest_iostream",
40    ],
41    export_header_lib_headers: [
42        "libgfxstream_guest_graphics_headers",
43        "mesa_gfxstream_guest_iostream",
44    ],
45    static_libs: [
46        "libgfxstream_androidemu_static",
47    ],
48    shared_libs: [
49        "liblog",
50        "libOpenglCodecCommon",
51    ],
52    export_shared_lib_headers: [
53        "libOpenglCodecCommon",
54    ],
55    cflags: [
56        "-Wno-unused-function",
57    ],
58    srcs: [
59        "renderControl_client_context.cpp",
60        "renderControl_enc.cpp",
61        "renderControl_entry.cpp",
62        "ExtendedRenderControl.cpp",
63    ],
64    export_include_dirs: [
65        ".",
66    ],
67}
68
69cc_library_static {
70    name: "libgfxstream_rcEnc_static",
71    defaults: [
72        "libgfxstream_guest_cc_defaults",
73        "mesa_platform_virtgpu_defaults",
74    ],
75    header_libs: [
76        "libgfxstream_guest_graphics_headers",
77        "mesa_gfxstream_guest_iostream",
78    ],
79    export_header_lib_headers: [
80        "libgfxstream_guest_graphics_headers",
81        "mesa_gfxstream_guest_iostream",
82    ],
83    static_libs: [
84        "libgfxstream_androidemu_static",
85        "mesa_gfxstream_connection_manager",
86    ],
87    shared_libs: [
88        "liblog",
89        "libbase",
90        "libOpenglCodecCommon",
91    ],
92    export_shared_lib_headers: [
93        "libOpenglCodecCommon",
94    ],
95    cflags: [
96        "-Wno-unused-function",
97    ],
98    srcs: [
99        "renderControl_client_context.cpp",
100        "renderControl_enc.cpp",
101        "renderControl_entry.cpp",
102        "ExtendedRenderControl.cpp",
103        "GfxStreamRenderControl.cpp",
104        "GfxStreamRenderControlConnection.cpp",
105    ],
106    export_include_dirs: [
107        ".",
108    ],
109}
110