/* * Copyright (C) 2023 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package { // See: http://go/android-license-faq default_applicable_licenses: ["hardware_google_gfxstream_license"], } cc_library_headers { name: "libgfxstream_guest_sync", export_include_dirs: [ ".", ], } cc_library_headers { name: "libOpenglSystemCommonHeaders", defaults: [ "libgfxstream_guest_cc_defaults", ], export_include_dirs: [ ".", ], header_libs: [ "libgfxstream_guest_rendercontrol_encoder_headers", ], export_header_lib_headers: [ "libgfxstream_guest_rendercontrol_encoder_headers", ], } cc_defaults { name: "libOpenglSystemCommonDefaults", defaults: [ "libgfxstream_guest_cc_defaults", "mesa_platform_virtgpu_defaults", ], header_libs: [ "libgfxstream_vulkan_headers", "libgfxstream_guest_graphics_headers", "mesa_gfxstream_guest_iostream", "libhardware_headers", "mesa_gfxstream_aemu_headers", "libnativebase_headers", ], export_header_lib_headers: [ "libgfxstream_guest_graphics_headers", "mesa_gfxstream_guest_iostream", "libhardware_headers", "libnativebase_headers", ], export_static_lib_headers: [ "mesa_gfxstream_guest_android", "mesa_platform_virtgpu", ], shared_libs: [ "lib_renderControl_enc", "libbase", "libdrm", "libcutils", "libGLESv1_enc", "libGLESv2_enc", "liblog", ], export_shared_lib_headers: [ "lib_renderControl_enc", "libGLESv1_enc", "libGLESv2_enc", ], static_libs: [ "mesa_goldfish_address_space", "libringbuffer", "libqemupipe.ranchu", ], cflags: [ "-Wno-unused-variable", "-Wno-unused-parameter", ], srcs: [ "FormatConversions.cpp", "HostConnection.cpp", "ProcessPipe.cpp", "QemuPipeStream.cpp", "ThreadInfo.cpp", "VirtioGpuPipeStream.cpp", ], export_include_dirs: [ ".", ], target: { android: { header_libs: [ "gfxstream_opengl_headers", ], export_header_lib_headers: [ "gfxstream_opengl_headers", ], }, }, } cc_library_shared { name: "libOpenglSystemCommon", defaults: [ "libOpenglSystemCommonDefaults", ], shared_libs: [ "libOpenglCodecCommon", ], static_libs: [ "libgfxstream_androidemu_static", "mesa_gfxstream_guest_android", "mesa_util", "mesa_util_c11", ], target: { android: { shared_libs: [ "libnativewindow", "libsync", ], }, }, } cc_library_static { name: "libgfxstream_guest_system_common", defaults: [ "libOpenglSystemCommonDefaults", ], static_libs: [ "libgfxstream_androidemu_static", "libgfxstream_androidemu_static", "mesa_gfxstream_guest_android", "libOpenglCodecCommon_static", ], target: { android: { shared_libs: [ "libnativewindow", "libsync", ], }, }, }