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 default_applicable_licenses: ["device_generic_goldfish-opengl_license"], 19} 20 21cc_library_shared { 22 name: "gralloc.goldfish", 23 vendor: true, 24 relative_install_path: "hw", 25 defaults: [ 26 "libgfxstream_guest_cc_defaults", 27 ], 28 shared_libs: [ 29 "libcutils", 30 "libdl", 31 "libdrm", 32 "liblog", 33 "libGLESv1_enc", 34 "lib_renderControl_enc", 35 "libOpenglCodecCommon", 36 "libOpenglSystemCommon", 37 ], 38 static_libs: [ 39 "libGoldfishAddressSpace", 40 "libqemupipe.ranchu", 41 ], 42 cflags: [ 43 "-DVIRTIO_GPU", 44 "-DLOG_TAG=\"gralloc_goldfish\"", 45 "-Wno-missing-field-initializers", 46 "-Wno-gnu-designator" 47 ], 48 srcs: [ 49 "gralloc_old.cpp", 50 ], 51} 52 53cc_library_shared { 54 name: "gralloc.ranchu", 55 vendor: true, 56 relative_install_path: "hw", 57 defaults: [ 58 "libgfxstream_guest_cc_defaults", 59 ], 60 shared_libs: [ 61 "libcutils", 62 "libdl", 63 "libdrm", 64 "liblog", 65 "libGLESv1_enc", 66 "lib_renderControl_enc", 67 "libOpenglCodecCommon", 68 "libOpenglSystemCommon", 69 ], 70 static_libs: [ 71 "libGoldfishAddressSpace", 72 "libqemupipe.ranchu", 73 ], 74 cflags: [ 75 "-DVIRTIO_GPU", 76 "-DLOG_TAG=\"gralloc_ranchu\"", 77 "-Wno-missing-field-initializers", 78 "-Wno-gnu-designator" 79 ], 80 srcs: [ 81 "gralloc_old.cpp", 82 ], 83} 84